Skip to content

Commit

Permalink
Implement full-stack image from base-with-services and lab.
Browse files Browse the repository at this point in the history
  • Loading branch information
csadorf committed Sep 13, 2022
1 parent 7a99f0b commit 84a9fb5
Show file tree
Hide file tree
Showing 2 changed files with 31 additions and 1 deletion.
15 changes: 14 additions & 1 deletion docker-bake.hcl
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ function "tags" {
}

group "default" {
targets = ["base", "base-with-services", "lab"]
targets = ["base", "base-with-services", "lab", "full-stack"]
}

target "base-meta" {
Expand All @@ -47,6 +47,10 @@ target "lab-meta" {
tags = tags("lab")
}

target "full-stack-meta" {
tags = tags("full-stack")
}

target "base" {
inherits = ["base-meta"]
context = "stack/base"
Expand Down Expand Up @@ -79,3 +83,12 @@ target "lab" {
"AIIDALAB_HOME_VERSION" = "v22.08.0"
}
}
target "full-stack" {
inherits = ["full-stack-meta"]
context = "stack/full-stack"
contexts = {
base-with-services = "target:base-with-services"
lab = "target:lab"
}
platforms = "${PLATFORMS}"
}
17 changes: 17 additions & 0 deletions stack/full-stack/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
# syntax=docker/dockerfile:1
FROM base-with-services as base

FROM lab

USER root

COPY --from=base /opt/config-quick-setup.yaml /opt/
COPY --from=base "${CONDA_DIR}/envs/aiida-core-services" "${CONDA_DIR}/envs/aiida-core-services"
COPY --from=base /usr/local/bin/before-notebook.d /usr/local/bin/before-notebook.d

RUN fix-permissions "${CONDA_DIR}"
RUN fix-permissions "/home/${NB_USER}/.aiida"

USER ${NB_USER}

WORKDIR "/home/${NB_USER}"

0 comments on commit 84a9fb5

Please sign in to comment.