Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
N
nexpie-grafana-theme
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Registry
Registry
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Kornkitt Poolsup
nexpie-grafana-theme
Commits
a98c7512
Commit
a98c7512
authored
Dec 21, 2018
by
Leonard Gram
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
build: adds aptly and createrepo to deploy tools.
parent
31066aeb
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
24 additions
and
4 deletions
+24
-4
scripts/build/ci-deploy/Dockerfile
+23
-3
scripts/build/ci-deploy/build-deploy.sh
+1
-1
No files found.
scripts/build/ci-deploy/Dockerfile
View file @
a98c7512
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
RUN
sudo
pip install awscli
&&
\
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
ENV
PATH=$PATH:/opt/google-cloud-sdk/bin
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
scripts/build/ci-deploy/build-deploy.sh
View file @
a98c7512
#!/bin/bash
_version
=
"1.
0
.0"
_version
=
"1.
1
.0"
_tag
=
"grafana/grafana-ci-deploy:
${
_version
}
"
docker build
-t
$_tag
.
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment