-
Notifications
You must be signed in to change notification settings - Fork 37
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Feature #2005 updates to create v5.1 conda environments that use debi…
…an10 and Python 3.10.4 (#2043)
- Loading branch information
1 parent
200843b
commit 07824ce
Showing
25 changed files
with
433 additions
and
198 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,21 @@ | ||
# Dockerfile to create conda environments used for use case tests | ||
|
||
ARG BASE_ENV=metplus_base.v5 | ||
FROM dtcenter/metplus-envs:${BASE_ENV} | ||
ARG METPLUS_ENV_VERSION | ||
ARG BASE_ENV=metplus_base | ||
FROM dtcenter/metplus-envs:${BASE_ENV}.${METPLUS_ENV_VERSION} | ||
|
||
ENV PATH=$PATH:/usr/local/conda/bin | ||
|
||
ARG ENV_NAME | ||
WORKDIR /scripts | ||
COPY scripts/${ENV_NAME}_env.sh . | ||
|
||
ARG BASE_ENV=metplus_base.v5 | ||
RUN conda update -y -n base -c defaults conda \ | ||
&& ./${ENV_NAME}_env.sh ${BASE_ENV} | ||
ARG METPLUS_ENV_VERSION | ||
ARG ENV_NAME | ||
RUN conda update -y -n base -c conda-forge conda \ | ||
&& ./${ENV_NAME}_env.sh ${METPLUS_ENV_VERSION} | ||
|
||
RUN conda list --name ${ENV_NAME}.v5 > /usr/local/envs/${ENV_NAME}.v5/environments.yml | ||
ARG METPLUS_ENV_VERSION | ||
ARG ENV_NAME | ||
RUN conda list --name ${ENV_NAME}.${METPLUS_ENV_VERSION} > \ | ||
/usr/local/conda/envs/${ENV_NAME}.${METPLUS_ENV_VERSION}/environments.yml |
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,29 @@ | ||
# Dockerfile to create conda environments used for use case tests | ||
|
||
ARG METPLUS_ENV_VERSION | ||
ARG BASE_ENV=metplus_base | ||
FROM dtcenter/metplus-envs:${BASE_ENV}.${METPLUS_ENV_VERSION} | ||
|
||
ENV PATH=$PATH:/usr/local/conda/bin | ||
|
||
ARG ENV_NAME | ||
WORKDIR /scripts | ||
COPY scripts/${ENV_NAME}_env.sh . | ||
|
||
ARG ENV_NAME | ||
ARG METPLUS_ENV_VERSION | ||
RUN conda update -y -n base -c conda-forge conda \ | ||
&& ./${ENV_NAME}_env.sh ${METPLUS_ENV_VERSION} | ||
|
||
ARG METPLUS_ENV_VERSION | ||
ARG ENV_NAME | ||
RUN conda list --name ${ENV_NAME}.${METPLUS_ENV_VERSION} > \ | ||
/usr/local/conda/envs/${ENV_NAME}.${METPLUS_ENV_VERSION}/environments.yml | ||
|
||
ARG METPLUS_ENV_VERSION | ||
ARG ENV_NAME | ||
RUN apt update && apt -y upgrade \ | ||
&& apt install -y curl \ | ||
&& rm -f cartopy_feature_download.py \ | ||
&& curl https://raw.githubusercontent.com/SciTools/cartopy/master/tools/cartopy_feature_download.py > cartopy_feature_download.py \ | ||
&& /usr/local/conda/envs/${ENV_NAME}.${METPLUS_ENV_VERSION}/bin/python3 cartopy_feature_download.py cultural physical |
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,9 @@ | ||
# Dockerfile to install conda | ||
|
||
ARG DEBIAN_VERSION=10 | ||
FROM debian:${DEBIAN_VERSION}-slim | ||
|
||
RUN apt update && apt install -y curl \ | ||
&& curl https://repo.anaconda.com/miniconda/Miniconda3-py310_22.11.1-1-Linux-x86_64.sh > /miniconda.sh \ | ||
&& bash /miniconda.sh -b -p /usr/local/conda \ | ||
&& /usr/local/conda/bin/conda update -y -n base -c conda-forge conda |
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,11 +1,13 @@ | ||
# Dockerfile to create conda environments used for use case tests | ||
|
||
ARG METPLUS_ENV_VERSION | ||
ARG BASE_ENV=metplus_base | ||
FROM dtcenter/metplus-envs:${BASE_ENV} | ||
FROM dtcenter/metplus-envs:${BASE_ENV}.${METPLUS_ENV_VERSION} | ||
|
||
ARG ENV_NAME | ||
WORKDIR /scripts | ||
COPY scripts/${ENV_NAME}_env.sh . | ||
|
||
ARG BASE_ENV=metplus_base | ||
RUN ./${ENV_NAME}_env.sh ${BASE_ENV} | ||
ARG METPLUS_ENV_VERSION | ||
ARG ENV_NAME | ||
RUN ./${ENV_NAME}_env.sh ${METPLUS_ENV_VERSION} |
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 |
---|---|---|
@@ -1,12 +1,17 @@ | ||
# Dockerfile to create conda environment used for use cases | ||
# that don't require any additional packages | ||
|
||
FROM conda/miniconda3-centos7 | ||
ARG METPLUS_ENV_VERSION | ||
FROM dtcenter/metplus-envs:conda.${METPLUS_ENV_VERSION} | ||
|
||
ENV PATH=$PATH:/usr/local/conda/bin | ||
|
||
WORKDIR /scripts | ||
COPY scripts/metplus_base_env.sh . | ||
|
||
RUN conda update -y -n base -c defaults conda \ | ||
&& ./metplus_base_env.sh | ||
ARG METPLUS_ENV_VERSION | ||
RUN conda update -y -n base -c conda-forge conda \ | ||
&& ./metplus_base_env.sh ${METPLUS_ENV_VERSION} | ||
|
||
RUN conda list --name metplus_base.v5 > /usr/local/envs/metplus_base.v5/environments.yml | ||
ARG METPLUS_ENV_VERSION | ||
RUN conda list --name metplus_base.${METPLUS_ENV_VERSION} > /usr/local/conda/envs/metplus_base.${METPLUS_ENV_VERSION}/environments.yml |
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
Oops, something went wrong.