Skip to content

Commit

Permalink
fix building prepare img error: pip3 install setuptools
Browse files Browse the repository at this point in the history
  • Loading branch information
hzliangbin committed Jun 18, 2020
1 parent f9cecc2 commit f25e4b4
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion make/photon/prepare/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -8,11 +8,12 @@ RUN mkdir -p /harbor_make

RUN tdnf install -y python3 \
&& tdnf install -y python3-pip
RUN pip3 install --upgrade setuptools
RUN pip3 install pipenv==2018.11.26

COPY make/photon/prepare /usr/src/app
RUN set -ex && pipenv install --deploy --system

ENTRYPOINT [ "python3", "main.py" ]

VOLUME ["/harbor_make"]
VOLUME ["/harbor_make"]
2 changes: 1 addition & 1 deletion make/prepare
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ docker run --rm -v $input_dir:/input:z \
-v $config_dir:/config:z \
-v $secret_dir:/secret:z \
-v /:/hostfs:z \
goharbor/prepare:dev $@
goharbor/prepare:v1.9.3 $@

echo "Clean up the input dir"
# Clean up input dir
Expand Down

0 comments on commit f25e4b4

Please sign in to comment.