-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #88 from brown-ccv/base_packages
Base packages in dev/templates were updated and tested in mpa2065.
- Loading branch information
Showing
19 changed files
with
276 additions
and
98 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,52 @@ | ||
name: tag-image-basepackages | ||
on: [workflow_dispatch] | ||
|
||
env: | ||
CLASS: basepackages | ||
TARGET: r_julia | ||
SQLITE: false | ||
PYTHON_VERSION: "3.9.17" | ||
|
||
jobs: | ||
build: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/[email protected] | ||
|
||
- name: Set Up GCloud | ||
uses: google-github-actions/[email protected] | ||
with: | ||
project_id: ${{ secrets.GCP_PROJECT_ID_JH_DOCKER }} | ||
service_account_key: ${{ secrets.GCP_SA_KEY_JH_DOCKER }} | ||
export_default_credentials: true | ||
|
||
- name: Create Julia Environment Files | ||
if: env.TARGET == 'r_julia' | ||
run: | | ||
sudo --preserve-env=CLASS docker-compose up julia_build | ||
- name: Upload Julia Env Files to Google Storage Bucket | ||
if: env.TARGET == 'r_julia' | ||
run: | | ||
gsutil cp -r requirements/classes/basepackages/julia_env gs://jupyterhub-environment-files/recurring-/basepackages/past/${GITHUB_SHA}/julia | ||
gsutil cp -r requirements/classes/basepackages/julia_env gs://jupyterhub-environment-files/recurring-/basepackages/latest/julia | ||
- name: Configure Docker | ||
run: gcloud auth configure-docker | ||
|
||
- name: Build and Push JH Image | ||
run: | | ||
COMPOSE_DOCKER_CLI_BUILD=1 DOCKER_BUILDKIT=1 docker-compose up jh_image | ||
docker tag jupyterhub-docker-images_jh_image:latest gcr.io/jupyterhub-docker-images/basepackages:${GITHUB_REF##*/} | ||
docker tag jupyterhub-docker-images_jh_image:latest gcr.io/jupyterhub-docker-images/basepackages:${GITHUB_SHA} | ||
docker tag jupyterhub-docker-images_jh_image:latest gcr.io/jupyterhub-docker-images/basepackages:latest | ||
docker tag jupyterhub-docker-images_jh_image:latest gcr.io/jupyterhub-docker-images/basepackages:recurring- | ||
docker push gcr.io/jupyterhub-docker-images/basepackages:latest | ||
docker push gcr.io/jupyterhub-docker-images/basepackages:recurring- | ||
docker push gcr.io/jupyterhub-docker-images/basepackages:${GITHUB_REF##*/} | ||
docker push gcr.io/jupyterhub-docker-images/basepackages:${GITHUB_SHA} | ||
- name: Upload Conda Env Files to Google Storage Bucket | ||
run: | | ||
gsutil cp -r requirements/out gs://jupyterhub-environment-files/recurring-/basepackages/past/${GITHUB_SHA}/conda | ||
gsutil cp -r requirements/out gs://jupyterhub-environment-files/recurring-/basepackages/latest/conda |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,46 @@ | ||
name: build-image-basepackages | ||
on: | ||
push: | ||
paths: | ||
- 'requirements/classes/basepackages/**' | ||
- 'Dockerfile' | ||
- 'docker-compose.yml' | ||
- 'scripts/**' | ||
- '.github/workflows/basepackages.yml' | ||
|
||
env: | ||
CLASS: basepackages | ||
TARGET: r_julia | ||
SQLITE: false | ||
PYTHON_VERSION: "3.9.17" | ||
|
||
jobs: | ||
build: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/[email protected] | ||
|
||
- name: Set Up GCloud | ||
uses: google-github-actions/[email protected] | ||
with: | ||
project_id: ${{ secrets.GCP_PROJECT_ID_JH_DOCKER }} | ||
service_account_key: ${{ secrets.GCP_SA_KEY_JH_DOCKER }} | ||
export_default_credentials: true | ||
|
||
- name: Create Julia Environment Files | ||
if: env.TARGET == 'r_julia' | ||
run: | | ||
sudo --preserve-env=CLASS docker-compose up julia_build | ||
- name: Configure Docker | ||
run: gcloud auth configure-docker | ||
- uses: satackey/[email protected] | ||
# Ignore the failure of a step and avoid terminating the job. | ||
continue-on-error: true | ||
- name: Build and Push JH Image | ||
run: | | ||
COMPOSE_DOCKER_CLI_BUILD=1 DOCKER_BUILDKIT=1 docker-compose up jh_image | ||
docker tag jupyterhub-docker-images_jh_image:latest gcr.io/jupyterhub-docker-images/basepackages:${GITHUB_REF##*/} | ||
docker tag jupyterhub-docker-images_jh_image:latest gcr.io/jupyterhub-docker-images/basepackages:latest | ||
docker push gcr.io/jupyterhub-docker-images/basepackages:latest | ||
docker push gcr.io/jupyterhub-docker-images/basepackages:${GITHUB_REF##*/} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -5,29 +5,31 @@ env: | |
CLASS: mpa2065 | ||
TARGET: r_julia | ||
SQLITE: true | ||
PYTHON_VERSION: "3.10" | ||
PYTHON_VERSION: "3.9.17" | ||
|
||
jobs: | ||
build: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- uses: actions/checkout@v3.5.3 | ||
|
||
- name: Set Up GCloud | ||
uses: google-github-actions/[email protected].0 | ||
uses: google-github-actions/[email protected].2 | ||
with: | ||
project_id: ${{ secrets.GCP_PROJECT_ID_JH_DOCKER }} | ||
service_account_key: ${{ secrets.GCP_SA_KEY_JH_DOCKER }} | ||
export_default_credentials: true | ||
|
||
- name: Create Julia Environment Files | ||
if: env.TARGET == 'r_julia' | ||
run: | | ||
sudo --preserve-env=CLASS docker-compose up julia_build | ||
- name: Upload Julia Env Files to Google Storage Bucket | ||
if: env.TARGET == 'r_julia' | ||
run: | | ||
gsutil cp -r requirements/classes/mpa2065/julia_env gs://jupyterhub-environment-files/fall-2022/mpa2065/past/${GITHUB_SHA}/julia | ||
gsutil cp -r requirements/classes/mpa2065/julia_env gs://jupyterhub-environment-files/fall-2022/mpa2065/latest/julia | ||
gsutil cp -r requirements/classes/mpa2065/julia_env gs://jupyterhub-environment-files/fall-2023/mpa2065/past/${GITHUB_SHA}/julia | ||
gsutil cp -r requirements/classes/mpa2065/julia_env gs://jupyterhub-environment-files/fall-2023/mpa2065/latest/julia | ||
- name: Configure Docker | ||
run: gcloud auth configure-docker | ||
|
@@ -38,13 +40,13 @@ jobs: | |
docker tag jupyterhub-docker-images_jh_image:latest gcr.io/jupyterhub-docker-images/mpa2065:${GITHUB_REF##*/} | ||
docker tag jupyterhub-docker-images_jh_image:latest gcr.io/jupyterhub-docker-images/mpa2065:${GITHUB_SHA} | ||
docker tag jupyterhub-docker-images_jh_image:latest gcr.io/jupyterhub-docker-images/mpa2065:latest | ||
docker tag jupyterhub-docker-images_jh_image:latest gcr.io/jupyterhub-docker-images/mpa2065:fall-2022 | ||
docker tag jupyterhub-docker-images_jh_image:latest gcr.io/jupyterhub-docker-images/mpa2065:fall-2023 | ||
docker push gcr.io/jupyterhub-docker-images/mpa2065:latest | ||
docker push gcr.io/jupyterhub-docker-images/mpa2065:fall-2022 | ||
docker push gcr.io/jupyterhub-docker-images/mpa2065:fall-2023 | ||
docker push gcr.io/jupyterhub-docker-images/mpa2065:${GITHUB_REF##*/} | ||
docker push gcr.io/jupyterhub-docker-images/mpa2065:${GITHUB_SHA} | ||
- name: Upload Conda Env Files to Google Storage Bucket | ||
run: | | ||
gsutil cp -r requirements/out gs://jupyterhub-environment-files/fall-2022/mpa2065/past/${GITHUB_SHA}/conda | ||
gsutil cp -r requirements/out gs://jupyterhub-environment-files/fall-2022/mpa2065/latest/conda | ||
gsutil cp -r requirements/out gs://jupyterhub-environment-files/fall-2023/mpa2065/past/${GITHUB_SHA}/conda | ||
gsutil cp -r requirements/out gs://jupyterhub-environment-files/fall-2023/mpa2065/latest/conda |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -13,35 +13,31 @@ env: | |
CLASS: mpa2065 | ||
TARGET: r_julia | ||
SQLITE: true | ||
PYTHON_VERSION: "3.10" | ||
PYTHON_VERSION: "3.9.17" | ||
|
||
jobs: | ||
build: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v2 | ||
|
||
- name: Create Julia Environment Files | ||
run: | | ||
sudo --preserve-env=CLASS docker-compose up julia_build | ||
- name: Upload Julia Env Files | ||
uses: actions/upload-artifact@v2 | ||
with: | ||
name: julia-environment-files | ||
path: requirements/classes/${{ env.CLASS }}/julia_env | ||
- uses: actions/[email protected] | ||
|
||
- name: Set Up GCloud | ||
uses: google-github-actions/[email protected].0 | ||
uses: google-github-actions/[email protected].2 | ||
with: | ||
project_id: ${{ secrets.GCP_PROJECT_ID_JH_DOCKER }} | ||
service_account_key: ${{ secrets.GCP_SA_KEY_JH_DOCKER }} | ||
export_default_credentials: true | ||
|
||
- name: Create Julia Environment Files | ||
if: env.TARGET == 'r_julia' | ||
run: | | ||
sudo --preserve-env=CLASS docker-compose up julia_build | ||
- name: Configure Docker | ||
run: gcloud auth configure-docker | ||
- uses: satackey/[email protected] | ||
# Ignore the failure of a step and avoid terminating the job. | ||
continue-on-error: true | ||
# - uses: satackey/[email protected] | ||
# # Ignore the failure of a step and avoid terminating the job. | ||
# continue-on-error: true | ||
- name: Build and Push JH Image | ||
run: | | ||
COMPOSE_DOCKER_CLI_BUILD=1 DOCKER_BUILDKIT=1 docker-compose up jh_image | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
FROM ubuntu:20.04 | ||
FROM ubuntu:22.04 | ||
|
||
LABEL maintainer "Paul Stey <[email protected]>" | ||
LABEL image jh_sandbox | ||
|
@@ -21,9 +21,9 @@ RUN usermod -aG sudo ccv | |
USER ccv | ||
|
||
RUN cd /home/ccv \ | ||
&& wget https://repo.anaconda.com/archive/Anaconda3-2020.02-Linux-x86_64.sh \ | ||
&& bash Anaconda3-2020.02-Linux-x86_64.sh -b \ | ||
&& rm Anaconda3-2020.02-Linux-x86_64.sh | ||
&& wget https://repo.anaconda.com/archive/Anaconda3-2023.07-2-Linux-x86_64.sh \ | ||
&& bash Anaconda3-2023.07-2-Linux-x86_64.sh -b \ | ||
&& rm Anaconda3-2023.07-2-Linux-x86_64.sh | ||
|
||
ENV PATH="/home/ccv/anaconda3/bin:${PATH}" | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -11,10 +11,10 @@ jobs: | |
build: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- uses: actions/checkout@v3.5.3 | ||
|
||
- name: Set Up GCloud | ||
uses: google-github-actions/[email protected].0 | ||
uses: google-github-actions/[email protected].2 | ||
with: | ||
project_id: ${{ secrets.GCP_PROJECT_ID_JH_DOCKER }} | ||
service_account_key: ${{ secrets.GCP_SA_KEY_JH_DOCKER }} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -7,6 +7,7 @@ on: | |
- 'docker-compose.yml' | ||
- 'scripts/**' | ||
- '.github/workflows/${CLASS}.yml' | ||
workflow_dispatch: | ||
|
||
env: | ||
CLASS: ${CLASS} | ||
|
@@ -18,10 +19,10 @@ jobs: | |
build: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- uses: actions/checkout@v3.5.3 | ||
|
||
- name: Set Up GCloud | ||
uses: google-github-actions/[email protected].0 | ||
uses: google-github-actions/[email protected].2 | ||
with: | ||
project_id: ${{ secrets.GCP_PROJECT_ID_JH_DOCKER }} | ||
service_account_key: ${{ secrets.GCP_SA_KEY_JH_DOCKER }} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.