Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix Jupyterlab docker build #1001

Merged
merged 15 commits into from
Jan 20, 2022
13 changes: 10 additions & 3 deletions .github/workflows/image.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -74,11 +74,18 @@ jobs:
type=ref,event=tag
type=sha

- name: Add symlink to cookiecutter dir and tree
run: |
cd ./qhub/template
ln -s ./\{\{\ cookiecutter.repo_directory\ \}\} cookiecutter
sudo apt-get install tree
tree ./cookiecutter/image

- name: Build docker
uses: docker/build-push-action@v2
with:
context: "./qhub/template/{{ cookiecutter.repo_directory }}/image"
file: "./qhub/template/{{ cookiecutter.repo_directory }}/image/Dockerfile.${{ matrix.dockerfile }}"
context: ./qhub/template/cookiecutter/image
file: "./qhub/template/cookiecutter/image/Dockerfile.${{ matrix.dockerfile }}"
tags: |
${{ steps.meta.outputs.tags }}
ghcr.io/${{ steps.meta.outputs.tags }}
Expand All @@ -89,6 +96,6 @@ jobs:
- name: Lint Dockerfiles
uses: jbergstroem/hadolint-gh-action@v1
with:
dockerfile: ./qhub/template/\{\{\ cookiecutter.repo_directory\ \}\}/image/Dockerfile.${{ matrix.dockerfile }}
dockerfile: ./qhub/template/cookiecutter/image/Dockerfile.${{ matrix.dockerfile }}
output_format: tty
error_level: 0
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,8 @@ cp /opt/jupyterlab/overrides.json /opt/conda/share/jupyter/lab/settings
mkdir -p /opt/code_server
cd /opt/code_server
# Fetch the snapshot of https://code-server.dev/install.sh as of the time of writing
curl -fsSL https://raw.githubusercontent.com/cdr/code-server/003dc0feeb5d437be1d6a4565fec7808b5aac69b/install.sh > install.sh
expected_sum=4f66ead4b4ed2be7c746f1eaf6672f3e0cddad66924d9b6c513d108d68a0127c
curl -fsSL https://raw.githubusercontent.com/coder/code-server/ec3d9974b3494e6055c8e65e1fb0e4bc665429a7/install.sh > install.sh
expected_sum=4e1199a09f0777580aa2d8651f620d984ab99a45121cbd154c300a0280de751d

if [[ ! $(sha256sum install.sh) == "${expected_sum} install.sh" ]];then
echo Unexpected hash from code-server install script
Expand Down