2020-11-17 06:11:43 -06:00
|
|
|
FROM cimg/go:1.15.5
|
2018-12-21 05:26:31 -06:00
|
|
|
|
2020-04-08 07:13:05 -05:00
|
|
|
RUN git clone https://github.com/aptly-dev/aptly $GOPATH/src/github.com/aptly-dev/aptly
|
|
|
|
RUN cd $GOPATH/src/github.com/aptly-dev/aptly && \
|
2018-12-21 05:26:31 -06:00
|
|
|
# pin aptly to a specific commit after 1.3.0 that contains gpg2 support
|
|
|
|
git reset --hard a64807efdaf5e380bfa878c71bc88eae10d62be1 && \
|
|
|
|
make install
|
|
|
|
|
2020-03-16 09:37:44 -05:00
|
|
|
FROM circleci/python:2.7-stretch-node
|
2018-10-30 09:56:52 -05:00
|
|
|
|
2018-12-21 05:26:31 -06:00
|
|
|
USER root
|
|
|
|
|
2020-11-18 01:40:41 -06:00
|
|
|
ARG GOOGLE_SDK_VERSION=319.0.0
|
|
|
|
ARG GOOGLE_SDK_CHECKSUM=28048af8fe83a1c80a37258d4e6c00edf22bc93edf570fb9bb6a42cca726d4c5
|
2020-09-08 08:06:32 -05:00
|
|
|
|
2020-11-18 01:40:41 -06:00
|
|
|
RUN apt-get install -yq python3-pip && pip3 install -U awscli crcmod && \
|
2020-09-08 08:06:32 -05:00
|
|
|
curl -fLO https://dl.google.com/dl/cloudsdk/channels/rapid/downloads/google-cloud-sdk-${GOOGLE_SDK_VERSION}-linux-x86_64.tar.gz && \
|
|
|
|
echo "${GOOGLE_SDK_CHECKSUM} google-cloud-sdk-${GOOGLE_SDK_VERSION}-linux-x86_64.tar.gz" | sha256sum --check --status && \
|
|
|
|
tar xzf google-cloud-sdk-${GOOGLE_SDK_VERSION}-linux-x86_64.tar.gz -C /opt && \
|
|
|
|
rm google-cloud-sdk-${GOOGLE_SDK_VERSION}-linux-x86_64.tar.gz && \
|
2018-12-21 05:26:31 -06:00
|
|
|
apt update && \
|
|
|
|
apt install -y createrepo expect && \
|
|
|
|
apt-get autoremove -y && \
|
2019-01-17 04:56:19 -06:00
|
|
|
rm -rf /var/lib/apt/lists/* && \
|
|
|
|
ln -s /opt/google-cloud-sdk/bin/gsutil /usr/bin/gsutil && \
|
2019-04-03 08:24:34 -05:00
|
|
|
ln -s /opt/google-cloud-sdk/bin/gcloud /usr/bin/gcloud && \
|
|
|
|
mkdir -p /deb-repo /rpm-repo && \
|
|
|
|
chown circleci:circleci /deb-repo /rpm-repo
|
2018-12-21 05:26:31 -06:00
|
|
|
|
2020-04-08 07:13:05 -05:00
|
|
|
COPY --from=0 /home/circleci/go/bin/aptly /usr/local/bin/aptly
|
2018-12-21 05:26:31 -06:00
|
|
|
|
|
|
|
USER circleci
|