Skip to content

Commit

Permalink
Remove runlabels
Browse files Browse the repository at this point in the history
  • Loading branch information
garryod committed Jan 10, 2023
1 parent 3c3ca25 commit d0991b3
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 10 deletions.
6 changes: 0 additions & 6 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,6 @@ RUN pip install --upgrade .[interactive]

EXPOSE 8888

LABEL uk.ac.diamond.bookshelf.runlabel="podman run --rm --publish 8888:8888 IMAGE"

CMD ["jupyter-lab", "--ip=0.0.0.0", "--allow-root"]

FROM python:${PYTHON_VERSION}-slim as processing
Expand All @@ -26,8 +24,6 @@ RUN pip install --upgrade .[processing]

VOLUME /inputs /outputs

LABEL uk.ac.diamond.bookshelf.runlabel="podman run --rm --volume .:/outputs --volume .:/inputs --security-opt=label=type:container_runtime_t IMAGE"

ENTRYPOINT ["papermill", "notebook.ipynb", "/outputs/notebook.ipynb", "--parameters", "OUTPUT_PREFIX", "/outputs", "--parameters", "INPUT_PREFIX", "/inputs"]

FROM python:${PYTHON_VERSION}-slim as service
Expand All @@ -43,6 +39,4 @@ ENV NOTEBOOK_PATH="notebook.ipynb"

EXPOSE 8000

LABEL uk.ac.diamond.bookshelf.runlabel="podman run --rm --publish 8000:8000 IMAGE"

ENTRYPOINT ["papermill_service"]
7 changes: 3 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,15 +18,14 @@ This will query the GitHub API and catalogue all containers in the DiamondLightS
### Interactive (local)

```
podman container runlabel uk.ac.diamond.bookshelf.runlabel ghcr.io/garryod/bookshelf-template/interactive:latest
podman run --publish 8888:8888 ghcr.io/garryod/bookshelf-template/interactive:latest
```
or
```
module load bookshelf/bookshelf-i18-xrf/latest
bookshelf-i18-xrf-interactive
```


### Interactive (hosted)

1. Go to https://jupyterhub.diamond.ac.uk/hub/home
Expand All @@ -35,7 +34,7 @@ bookshelf-i18-xrf-interactive
### Processing

```
podman container runlabel uk.ac.diamond.bookshelf.runlabel ghcr.io/garryod/bookshelf-template/processing:latest
podman run --volume .:/outputs --volume .:/inputs --security-opt=label=type:container_runtime_t ghcr.io/garryod/bookshelf-template/processing:latest
```
or
```
Expand All @@ -46,5 +45,5 @@ bookshelf-i18-xrf-processing
### Service (local)

```
podman container runlabel uk.ac.diamond.bookshelf.runlabel ghcr.io/garryod/bookshelf-template/service:latest
podman run --publish 8000:8000 ghcr.io/garryod/bookshelf-template/service:latest
```

0 comments on commit d0991b3

Please sign in to comment.