Commit 822db952 authored by Razzi's avatar Razzi
Browse files

[wip] Skip docker layering to include git in final image

parent 8aa59e77
Pipeline #2308 passed with stages
...@@ -28,11 +28,11 @@ RUN /srv/miniconda/bin/pip install git+https://gitlab.wikimedia.org/repos/data-e ...@@ -28,11 +28,11 @@ RUN /srv/miniconda/bin/pip install git+https://gitlab.wikimedia.org/repos/data-e
# This conda env can be used to run workflow_utils related commands, # This conda env can be used to run workflow_utils related commands,
# especially conda-dist for automating packing of other projects # especially conda-dist for automating packing of other projects
# into conda envs. # into conda envs.
FROM docker-registry.wikimedia.org/wikimedia-buster AS workflow_utils_env # FROM docker-registry.wikimedia.org/wikimedia-buster AS workflow_utils_env
# Copy /srv/conda_env from the previous stage. # Copy /srv/conda_env from the previous stage.
# In this way we keep only the final conda env # In this way we keep only the final conda env
# without any of the build step leftovers. # without any of the build step leftovers.
COPY --from=workflow_utils_install /srv/miniconda /srv/miniconda # COPY --from=workflow_utils_install /srv/miniconda /srv/miniconda
# workflow_utils conda-dist ENTRYPOINT. # workflow_utils conda-dist ENTRYPOINT.
...@@ -40,7 +40,7 @@ COPY --from=workflow_utils_install /srv/miniconda /srv/miniconda ...@@ -40,7 +40,7 @@ COPY --from=workflow_utils_install /srv/miniconda /srv/miniconda
# docker run --mount type=bind,source=$(pwd)/test_project,target=/srv/project workflow_utils:conda_dist # docker run --mount type=bind,source=$(pwd)/test_project,target=/srv/project workflow_utils:conda_dist
# mount source should be the path to your project dir, which should be mounted at /srv/project # mount source should be the path to your project dir, which should be mounted at /srv/project
# in the container. # in the container.
FROM workflow_utils_env as workflow_utils_conda_dist # FROM workflow_utils_env as workflow_utils_conda_dist
# This is needed for conda-dist to find conda CLI. # This is needed for conda-dist to find conda CLI.
ENV CONDA_EXE=/srv/miniconda/condabin/conda ENV CONDA_EXE=/srv/miniconda/condabin/conda
SHELL ["/bin/bash", "-c"] SHELL ["/bin/bash", "-c"]
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment