mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
build: adds aptly and createrepo to deploy tools.
This commit is contained in:
parent
31066aebb4
commit
a98c75121f
@ -1,5 +1,25 @@
|
|||||||
|
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
|
||||||
|
|
||||||
FROM circleci/python:2.7-stretch
|
FROM circleci/python:2.7-stretch
|
||||||
|
|
||||||
RUN sudo pip install awscli && \
|
ENV PATH=$PATH:/opt/google-cloud-sdk/bin
|
||||||
curl https://dl.google.com/dl/cloudsdk/channels/rapid/downloads/google-cloud-sdk-222.0.0-linux-x86_64.tar.gz | \
|
|
||||||
sudo tar xvzf - -C /opt
|
USER root
|
||||||
|
|
||||||
|
RUN pip install awscli && \
|
||||||
|
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 && \
|
||||||
|
rm -rf /var/lib/apt/lists/*
|
||||||
|
|
||||||
|
COPY --from=0 /go/bin/aptly /usr/local/bin/aptly
|
||||||
|
|
||||||
|
USER circleci
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
|
||||||
_version="1.0.0"
|
_version="1.1.0"
|
||||||
_tag="grafana/grafana-ci-deploy:${_version}"
|
_tag="grafana/grafana-ci-deploy:${_version}"
|
||||||
|
|
||||||
docker build -t $_tag .
|
docker build -t $_tag .
|
||||||
|
Loading…
Reference in New Issue
Block a user