-
Notifications
You must be signed in to change notification settings - Fork 2
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 #13 from esgf-nimbus/update-containers
Update containers
- Loading branch information
Showing
27 changed files
with
352 additions
and
150 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
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
4 changes: 2 additions & 2 deletions
4
dockerfiles/minimal-notebook-gpu/Dockerfile → dockerfiles/climate-notebook-gpu/Dockerfile
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
2 changes: 1 addition & 1 deletion
2
dockerfiles/minimal-notebook-gpu/Makefile → dockerfiles/climate-notebook-gpu/Makefile
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,6 +1,6 @@ | ||
.DEFAULT_GOAL = build | ||
|
||
VERSION = 0.1.6 | ||
VERSION = 0.1.0 | ||
|
||
run: ARGS = -p 8888:8888 | ||
|
||
|
File renamed without changes.
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,2 @@ | ||
# Changelog | ||
|
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 |
---|---|---|
@@ -0,0 +1,39 @@ | ||
ARG TAG=0.1.19 | ||
FROM python:3.10 as intake-es-builder | ||
|
||
COPY intake_es /intake_es | ||
|
||
WORKDIR /intake_es | ||
|
||
RUN pip install setuptools build && \ | ||
python -m build | ||
|
||
FROM ghcr.io/esgf-nimbus/minimal-notebook:${TAG} | ||
|
||
LABEL org.opencontainers.image.source="https://github.com/esgf-nimbus/nimbus" | ||
LABEL org.opencontainers.image.url="https://github.com/esgf-nimbus/nimbus/blob/main/dockerfiles/climate-notebook/Dockerfile" | ||
|
||
USER root | ||
|
||
COPY base.yaml /base.yaml | ||
|
||
RUN --mount=type=cache,target=/opt/conda/pkgs \ | ||
mamba env update -n base -f /base.yaml && \ | ||
rm /base.yaml && \ | ||
pip install ecoport && \ | ||
python -m ecoport -f /base.yaml | ||
|
||
COPY --from=intake-es-builder /intake_es/dist /build | ||
|
||
RUN python -m pip install /build/*.tar.gz && \ | ||
rm -rf /build | ||
|
||
COPY scripts /scripts | ||
COPY notebooks /notebooks | ||
COPY changelog.md /changelog.md | ||
|
||
RUN source /scripts/render-intro.sh | ||
|
||
USER $NB_USER | ||
|
||
ENTRYPOINT ["/scripts/entrypoint.sh"] |
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,14 @@ | ||
.DEFAULT_GOAL = build | ||
|
||
VERSION = 0.1.0 | ||
|
||
run: ARGS = -p 8888:8888 -v $(PWD)/../dask-gateway/conda-envs:/conda-envs | ||
|
||
build: POST_BUILD = make export-env | ||
|
||
.PHONY: export-env | ||
export-env: ENTRYPOINT = /bin/bash | ||
export-env: COMMAND = -c "cp /base.yaml /conda-envs/" | ||
export-env: run | ||
|
||
include ../Makefile |
Oops, something went wrong.