Skip to content

Commit 480ae04

Browse files
committed
Updated workflows, moved scripts.
1 parent 6aefed9 commit 480ae04

10 files changed

+13
-9
lines changed

.github/workflows/docker-jupyter-hub.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -82,8 +82,8 @@ jobs:
8282

8383
- name: Build and push Docker Jupyter Hub image
8484
run: |
85-
docker build --platform linux/${{ matrix.platform }} -t cogstacksystems/jupyter-hub:${{ env.RELEASE_VERSION }}-linux/${{ matrix.platform }} -f Dockerfile_hub --build-arg CPU_ARCHITECTURE=${{ matrix.platform }} .
86-
docker push cogstacksystems/jupyter-hub:${{ env.RELEASE_VERSION }}-linux/${{ matrix.platform }}
85+
docker build --platform linux/${{ matrix.platform }} -t cogstacksystems/jupyter-hub:${{ env.RELEASE_VERSION }}-${{ matrix.platform }} -f Dockerfile_hub --build-arg CPU_ARCHITECTURE=${{ matrix.platform }} .
86+
docker push cogstacksystems/jupyter-hub:${{ env.RELEASE_VERSION }}-${{ matrix.platform }}
8787
8888
- name: Image digest
8989
run: echo ${{ steps.docker_build.outputs.digest }}

.github/workflows/docker-jupyter-singleuser-gpu.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,7 @@ jobs:
9292
file : "./Dockerfile_singleuser_gpu"
9393
allow: network.host
9494
github-token: ${{ github.token }}
95-
tags: cogstacksystems/jupyter-singleuser-gpu:${{ env.RELEASE_VERSION }}-linux/amd64
95+
tags: cogstacksystems/jupyter-singleuser-gpu:${{ env.RELEASE_VERSION }}-amd64
9696
push: true
9797

9898
- name: Image digest

.github/workflows/docker-jupyter-singleuser.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -91,8 +91,8 @@ jobs:
9191

9292
- name: Build and push Docker Jupyter singleuser image
9393
run: |
94-
docker build --platform linux/${{ matrix.platform }} -t cogstacksystems/jupyter-singleuser:${{ env.RELEASE_VERSION }}-linux/${{ matrix.platform }} -f Dockerfile_singleuser --build-arg CPU_ARCHITECTURE=${{ matrix.platform }} .
95-
docker push cogstacksystems/jupyter-singleuser:${{ env.RELEASE_VERSION }}-linux/${{ matrix.platform }}
94+
docker build --platform linux/${{ matrix.platform }} -t cogstacksystems/jupyter-singleuser:${{ env.RELEASE_VERSION }}-${{ matrix.platform }} -f Dockerfile_singleuser --build-arg CPU_ARCHITECTURE=${{ matrix.platform }} .
95+
docker push cogstacksystems/jupyter-singleuser:${{ env.RELEASE_VERSION }}-${{ matrix.platform }}
9696
9797
- name: Image digest
9898
run: echo ${{ steps.docker_build.outputs.digest }}

.gitignore

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,5 +18,8 @@ docs/build/*
1818
**__pycache__
1919

2020
# env files with passwords or local paths
21-
*.env
21+
**.env
22+
env**
23+
24+
# cert files
2225
security**

Dockerfile_singleuser

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -186,7 +186,7 @@ RUN pip3 cache purge
186186
#######################################################################################################
187187

188188
# install R and other dependencies
189-
COPY r_kernel_install.sh /etc/jupyterhub/
189+
COPY ./scripts/r_kernel_install.sh /etc/jupyterhub/
190190
# RUN Rscript /etc/jupyterhub/r_kernel_install.sh
191191

192192
# create jupyterhub shared folder

Dockerfile_singleuser_gpu

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -219,7 +219,7 @@ RUN pip3 cache purge
219219
#######################################################################################################
220220

221221
# install R and other dependencies
222-
COPY r_kernel_install.sh /etc/jupyterhub/
222+
COPY ./scripts/r_kernel_install.sh /etc/jupyterhub/
223223
RUN Rscript /etc/jupyterhub/r_kernel_install.sh
224224

225225
# create jupyterhub shared folder

env/general.env

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,5 @@
22

33
# This is used to explicitly inform systems that run on Apple silicon to emulate this architecture
44
# Remove if this causes issues on any other platform
5-
DOCKER_DEFAULT_PLATFORM=linux/amd64
5+
CPU_ARCHITECTURE=amd64
6+
DOCKER_DEFAULT_PLATFORM=linux/${CPU_ARCHITECTURE:-amd64}
File renamed without changes.
File renamed without changes.

0 commit comments

Comments
 (0)