Skip to content

Commit 541d523

Browse files
committed
[DevOps] Update the training Dockerfile for multi stages building (Debugging...).
1 parent e771b10 commit 541d523

File tree

2 files changed

+10
-11
lines changed

2 files changed

+10
-11
lines changed

devops/dockerfile/multi-stages-build/Dockerfile-Traing-Dev

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,6 @@ RUN pip3 install -r ./fedml/requirements.txt
4040
RUN pip3 install --upgrade gevent
4141

4242

43-
ARG BASE_IMAGE=public.ecr.aws/x6k8q1x9/fedml-device-image:base
4443
FROM ${BASE_IMAGE} AS fedml-training-env-base
4544

4645
ADD ./devops/scripts/runner.sh ./fedml/runner.sh
@@ -70,7 +69,7 @@ RUN pip3 install MNN==1.1.6
7069
WORKDIR /fedml
7170

7271
COPY --from=fedml-training-env-base /fedml/fedml-pip /fedml/fedml-pip
73-
COPY --from=fedml-training-env-base /fedml/fedml-pip/python/fedml ${FEDML_PIP_HOME}
72+
COPY --from=fedml-training-env-base /fedml/fedml-pip/fedml ${FEDML_PIP_HOME}
7473

7574
ENV MODE=normal FEDML_VERSION=${VERSION} ACCOUNT_ID=0 SERVER_DEVICE_ID=0 \
7675
FEDML_PACKAGE_NAME=package FEDML_PACKAGE_URL=s3_url \
@@ -84,7 +83,7 @@ FROM ${BASE_IMAGE} AS fedml-client-agent
8483
WORKDIR /fedml
8584

8685
COPY --from=fedml-training-env-base /fedml/fedml-pip /fedml/fedml-pip
87-
COPY --from=fedml-image-base /fedml/fedml-pip/python/fedml ${FEDML_PIP_HOME}
86+
COPY --from=fedml-training-env-base /fedml/fedml-pip/fedml ${FEDML_PIP_HOME}
8887

8988
ENV ACCOUNT_ID=0 FEDML_VERSION=${VERSION} CLIENT_DEVICE_ID=0 CLIENT_OS_NAME=linux
9089

devops/scripts/push-fedml-docker.sh

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -4,20 +4,20 @@ push_arm_arch_images=$1
44

55
export FEDML_VERSION=`cat python/setup.py |grep version= |awk -F'=' '{print $2}' |awk -F',' '{print $1}'|awk -F'"' '{print $2}'`
66
if [[ $push_arm_arch_images == "" ]]; then
7-
docker push fedml/fedml:latest-torch1.12.1-cuda11.3-cudnn8-devel
8-
docker push fedml/fedml:${FEDML_VERSION}-torch1.12.1-cuda11.3-cudnn8-devel
7+
docker push fedml/fedml:latest-torch1.13.1-cuda11.6-cudnn8-devel
8+
docker push fedml/fedml:${FEDML_VERSION}-torch1.13.1-cuda11.6-cudnn8-devel
99
fi
1010

1111
if [[ $push_arm_arch_images != "" ]]; then
12-
docker push fedml/fedml:latest-torch1.12.1-cuda11.3-cudnn8-devel-arm64
13-
docker push fedml/fedml:${FEDML_VERSION}-torch1.12.1-cuda11.3-cudnn8-devel-arm64
12+
docker push fedml/fedml:latest-arm64-torch1.13.1-cuda11.6-cudnn8-devel
13+
docker push fedml/fedml:${FEDML_VERSION}-arm64-torch1.13.1-cuda11.6-cudnn8-devel-arm64
1414

1515
docker push fedml/fedml:latest-nvidia-jetson-l4t-ml-r35.1.0-py3
1616
docker push fedml/fedml:${FEDML_VERSION}-nvidia-jetson-l4t-ml-r35.1.0-py3
1717

18-
# docker push fedml/fedml:latest-raspberrypi4-32-py37
19-
# docker push fedml/fedml:${FEDML_VERSION}-raspberrypi4-32-py37
18+
# docker push fedml/fedml:latest-raspberrypi4-32-py38
19+
# docker push fedml/fedml:${FEDML_VERSION}-raspberrypi4-32-py38
2020

21-
docker push fedml/fedml:latest-raspberrypi4-64-py37
22-
docker push fedml/fedml:${FEDML_VERSION}-raspberrypi4-64-py37
21+
docker push fedml/fedml:latest-raspberrypi4-64-py38
22+
docker push fedml/fedml:${FEDML_VERSION}-raspberrypi4-64-py38
2323
fi

0 commit comments

Comments
 (0)