2018-12-21 05:26:31 -06:00
|
|
|
FROM circleci/golang:1.11
|
|
|
|
|
|
|
|
RUN git clone https://github.com/aptly-dev/aptly $GOPATH/src/github.com/aptly-dev/aptly && \
|
|
|
|
cd $GOPATH/src/github.com/aptly-dev/aptly && \
|
|
|
|
# pin aptly to a specific commit after 1.3.0 that contains gpg2 support
|
|
|
|
git reset --hard a64807efdaf5e380bfa878c71bc88eae10d62be1 && \
|
|
|
|
make install
|
|
|
|
|
2018-10-30 09:56:52 -05:00
|
|
|
FROM circleci/python:2.7-stretch
|
|
|
|
|
2018-12-21 05:26:31 -06:00
|
|
|
USER root
|
|
|
|
|
2019-03-19 04:48:41 -05:00
|
|
|
RUN pip install -U awscli crcmod && \
|
2018-12-21 05:26:31 -06:00
|
|
|
curl https://dl.google.com/dl/cloudsdk/channels/rapid/downloads/google-cloud-sdk-222.0.0-linux-x86_64.tar.gz | \
|
|
|
|
tar xvzf - -C /opt && \
|
|
|
|
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 && \
|
|
|
|
ln -s /opt/google-cloud-sdk/bin/gcloud /usr/bin/gcloud
|
2018-12-21 05:26:31 -06:00
|
|
|
|
|
|
|
COPY --from=0 /go/bin/aptly /usr/local/bin/aptly
|
|
|
|
|
|
|
|
USER circleci
|