From 674aa6ff4ee6bcde4a38a6bc9d531c7dd26dee78 Mon Sep 17 00:00:00 2001 From: Cordero Core <127983572+uwcdc@users.noreply.github.com> Date: Mon, 3 Jun 2024 18:29:57 +0000 Subject: [PATCH] feat: Add docker image for ANS modeling project --- .github/workflows/build.yml | 2 +- project-ans-modeling/Dockerfile | 6 ++++++ project-ans-modeling/apt.txt | 5 +++++ project-ans-modeling/environment.yml | 18 ++++++++++++++++++ project-ans-modeling/start | 9 +++++++++ tutorial-scipy-2024/start | 10 +--------- 6 files changed, 40 insertions(+), 10 deletions(-) create mode 100644 project-ans-modeling/Dockerfile create mode 100644 project-ans-modeling/apt.txt create mode 100644 project-ans-modeling/environment.yml create mode 100644 project-ans-modeling/start diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 7097953..1cd3e52 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -89,7 +89,7 @@ jobs: strategy: fail-fast: false matrix: - IMAGE: [base-ssec-project,tutorial-scipy-2024] + IMAGE: [base-ssec-project,project-ans-modeling,tutorial-scipy-2024] steps: - name: Checkout Repository uses: actions/checkout@v4 diff --git a/project-ans-modeling/Dockerfile b/project-ans-modeling/Dockerfile new file mode 100644 index 0000000..76190f1 --- /dev/null +++ b/project-ans-modeling/Dockerfile @@ -0,0 +1,6 @@ +# ONBUILD instructions in base-image/Dockerfile are used to +# perform certain actions based on the presence of specific +# files (such as conda-linux-64.lock, start) in this repo. +# Refer to the base-image/Dockerfile for documentation. +ARG SSEC_BASE_IMAGE_TAG=latest +FROM ghcr.io/uw-ssec/base-image:${SSEC_BASE_IMAGE_TAG} \ No newline at end of file diff --git a/project-ans-modeling/apt.txt b/project-ans-modeling/apt.txt new file mode 100644 index 0000000..223ad7a --- /dev/null +++ b/project-ans-modeling/apt.txt @@ -0,0 +1,5 @@ +build-essential +git +ncdu +curl +vim diff --git a/project-ans-modeling/environment.yml b/project-ans-modeling/environment.yml new file mode 100644 index 0000000..b92d48e --- /dev/null +++ b/project-ans-modeling/environment.yml @@ -0,0 +1,18 @@ +name: ans-modeling +channels: + - bioconda + - conda-forge + - defaults +dependencies: + - python>=3.11,<3.12 + - ipykernel + - ipywidgets + - jupyter + - jupyterlab + - jupyterlab-git + - numpy + - pandas + - matplotlib + - pydantic + - conda-lock + - pip \ No newline at end of file diff --git a/project-ans-modeling/start b/project-ans-modeling/start new file mode 100644 index 0000000..1db06ca --- /dev/null +++ b/project-ans-modeling/start @@ -0,0 +1,9 @@ +#!/bin/bash -l + +# ==== ONLY EDIT WITHIN THIS BLOCK ===== + + + +# ==== ONLY EDIT WITHIN THIS BLOCK ===== + +exec "$@" \ No newline at end of file diff --git a/tutorial-scipy-2024/start b/tutorial-scipy-2024/start index 1db06ca..08029ea 100644 --- a/tutorial-scipy-2024/start +++ b/tutorial-scipy-2024/start @@ -1,9 +1 @@ -#!/bin/bash -l - -# ==== ONLY EDIT WITHIN THIS BLOCK ===== - - - -# ==== ONLY EDIT WITHIN THIS BLOCK ===== - -exec "$@" \ No newline at end of file +รง \ No newline at end of file