Skip to content

Commit

Permalink
Merge pull request #21 from stfc/cil-image
Browse files Browse the repository at this point in the history
  • Loading branch information
casperdcl authored Jul 27, 2023
2 parents 47ddfcf + 7683e87 commit 17ed35e
Show file tree
Hide file tree
Showing 3 changed files with 23 additions and 2 deletions.
8 changes: 6 additions & 2 deletions .github/workflows/build_images.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ jobs:
id: metadata
run: |
echo "images=$(
find -name Dockerfile -print0 | xargs -0 -II dirname "I" | sed 's#./##g' | jq -Rsc 'split("\n")[:-1]'
find -name Dockerfile | sed -r 's#\./(.+)/Dockerfile#\1#g' | jq -Rsc 'split("\n")[:-1]'
)" >> $GITHUB_OUTPUT
echo "sha_short=$(git rev-parse --short HEAD)" >> $GITHUB_OUTPUT
outputs:
Expand All @@ -31,7 +31,7 @@ jobs:
steps:
- uses: actions/checkout@v3
- uses: docker/setup-buildx-action@v2
- name: Login to DockerHub
- name: Login to DockerHub # increase pull rate limit
uses: docker/login-action@v2
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
Expand Down Expand Up @@ -61,3 +61,7 @@ jobs:
- name: Inform of tagged name
if: ${{ github.ref != 'refs/heads/master' }}
run: echo "::notice title=published::harbor.stfc.ac.uk/stfc-cloud-staging/${{ matrix.image }}:${{ needs.setup.outputs.sha }}"
finished: # convenient single job name to apply branch protection to
needs: build
runs-on: ubuntu-latest
steps: [{run: true}]
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@

## CI and Automated Builds

[![CI](https://img.shields.io/github/actions/workflow/status/stfc/cloud-docker-images/build_images.yaml?logo=docker)](https://github.com/stfc/cloud-docker-images/actions/workflows/build_images.yaml?query=branch%3Amaster)

Images are built:

- On Pull Requests
Expand Down
15 changes: 15 additions & 0 deletions jupyter-cil-notebook/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
# sources:
# - https://github.com/jupyter/docker-stacks
# - https://github.com/TomographicImaging/CIL#installation-of-cil
# TODO: use `ubuntu-22.04` once `cil` adds `python=3.11` support
FROM jupyter/tensorflow-notebook:ubuntu-20.04

RUN mamba install -y -c conda-forge -c intel -c ccpi \
cil=23.0.1 astra-toolbox tigre ccpi-regulariser tomophantom "ipywidgets<8" \
jupyter-server-proxy \
&& mamba clean -a -y -f \
&& fix-permissions "${CONDA_DIR}" \
&& fix-permissions "/home/${NB_USER}"

# Note, the trailing slash is important!
ENV TENSORBOARD_PROXY_URL=/user-redirect/proxy/6006/

0 comments on commit 17ed35e

Please sign in to comment.