This repository has been archived by the owner on Mar 20, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 121
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Update 3rd party notices
- Loading branch information
Showing
6 changed files
with
224 additions
and
169 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
Large diffs are not rendered by default.
Oops, something went wrong.
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,24 +1,27 @@ | ||
# Dockerfile for Azure/batch-shipyard (cli) | ||
|
||
FROM alpine:3.10 | ||
FROM python:3.9.4-alpine3.13 | ||
MAINTAINER Fred Park <https://github.com/Azure/batch-shipyard> | ||
|
||
ARG GIT_BRANCH | ||
ARG GIT_COMMIT | ||
|
||
RUN apk update \ | ||
&& apk add --update --no-cache \ | ||
musl build-base python3 python3-dev openssl-dev libffi-dev \ | ||
ca-certificates openssl openssh-client rsync git bash \ | ||
musl build-base openssl-dev libffi-dev rust cargo ca-certificates git \ | ||
openssl openssh-client rsync bash \ | ||
&& python3 -m ensurepip --upgrade \ | ||
&& pip3 install --no-cache-dir --upgrade pip setuptools setuptools-rust wheel \ | ||
&& git clone -b $GIT_BRANCH --single-branch https://github.com/Azure/batch-shipyard.git /opt/batch-shipyard \ | ||
&& cd /opt/batch-shipyard \ | ||
&& git checkout $GIT_COMMIT \ | ||
&& rm -rf .git .github .vsts \ | ||
&& rm -f .git* .travis.yml *.yml install* \ | ||
&& python3 -m pip install --no-cache-dir --upgrade pip \ | ||
&& pip3 install --no-cache-dir -r requirements.txt \ | ||
&& python3 -m compileall -f /opt/batch-shipyard/shipyard.py /opt/batch-shipyard/convoy \ | ||
&& apk del --purge build-base python3-dev openssl-dev libffi-dev git \ | ||
&& pip3 uninstall -y setuptools-rust wheel \ | ||
&& apk del --purge build-base patch openssl-dev libffi-dev rust cargo git \ | ||
&& rm /var/cache/apk/* | ||
&& rm -rf /root/.cache /root/.cargo | ||
|
||
ENTRYPOINT ["/opt/batch-shipyard/shipyard.py"] |
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
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,21 +1,24 @@ | ||
# Singularity for Azure/batch-shipyard (cli) | ||
|
||
Bootstrap: library | ||
From: alpine:3.9 | ||
From: alpine:3.13 | ||
|
||
%post | ||
apk update | ||
apk add --update --no-cache \ | ||
musl build-base python3 python3-dev openssl-dev libffi-dev \ | ||
ca-certificates openssl openssh-client rsync git bash | ||
musl build-base openssl-dev libffi-dev rust cargo ca-certificates git | ||
python3 -m ensurepip --upgrade | ||
pip3 install --no-cache-dir --upgrade pip setuptools setuptools-rust wheel | ||
git clone -b master --single-branch --depth 5 https://github.com/Azure/batch-shipyard.git /opt/batch-shipyard | ||
cd /opt/batch-shipyard | ||
rm -rf .git .github .vsts | ||
rm -f .git* .travis.yml *.yml install* | ||
pip3 install --no-cache-dir -r requirements.txt | ||
python3 -m compileall -f /opt/batch-shipyard/shipyard.py /opt/batch-shipyard/convoy | ||
apk del --purge build-base python3-dev openssl-dev libffi-dev git | ||
pip3 uninstall -y setuptools-rust wheel | ||
apk del --purge build-base patch openssl-dev libffi-dev rust cargo git | ||
rm /var/cache/apk/* | ||
rm -rf /root/.cache /root/.cargo | ||
|
||
%runscript | ||
exec /opt/batch-shipyard/shipyard.py "$@" |