Skip to content
This repository was archived by the owner on Jan 26, 2026. It is now read-only.

Commit ea1b277

Browse files
committed
conda env
1 parent f559e07 commit ea1b277

File tree

3 files changed

+7
-5
lines changed

3 files changed

+7
-5
lines changed

.github/workflows/ci.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ jobs:
1515
fail-fast: false
1616
steps:
1717
- name: Setup
18-
run: conda activate ddpt
18+
run: . activate ddpt
1919
- name: Checkout ddptensor
2020
uses: actions/checkout@v2
2121
- name: Build dpptensor

docker/Dockerfile

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9,13 +9,14 @@ RUN export DEBIAN_FRONTEND=noninteractive \
99
&& rm -rf /var/lib/apt/lists/*
1010

1111
ENV MINICONDA=Miniconda3-latest-Linux-x86_64.sh
12+
COPY conda-env.yml /tmp/conda-env.yml
1213
RUN wget -q --no-check-certificate https://repo.anaconda.com/miniconda/$MINICONDA \
1314
&& chmod a+rwx $MINICONDA \
1415
&& ./$MINICONDA -b \
1516
&& rm ./$MINICONDA \
16-
&& /root/miniconda3/bin/conda update -n base -c defaults conda
17+
&& /root/miniconda3/bin/conda update -y -n base -c defaults conda \
18+
&& /root/miniconda3/bin/conda env create -n ddpt -f /tmp/conda-env.yml \
19+
&& /root/miniconda3/bin/conda clean -y -a \
20+
&& /root/miniconda3/bin/conda init bash
1721

1822
ENV PATH=${PATH}:/root/miniconda3/bin
19-
20-
SHELL ["/bin/bash", "--login", "-c"]
21-
ENTRYPOINT ["/bin/bash", "--login", "-c"]

docker/Makefile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
IMAGE = amr-registry-pre.caas.intel.com/tpi/ddpt:latest
22

33
all:
4+
cp ../conda-env.yml .
45
docker build --build-arg http_proxy=${http_proxy} --build-arg https_proxy=${https_proxy} --tag ${IMAGE} .
56
docker push ${IMAGE}

0 commit comments

Comments
 (0)