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
e3a90721
Commit
e3a90721
authored
Jul 28, 2018
by
Leonard Gram
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
build: builds docker image from local grafna tgz.
parent
bfe41d3c
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
7 additions
and
4 deletions
+7
-4
.circleci/config.yml
+1
-0
packaging/docker/Dockerfile
+6
-3
packaging/docker/build.sh
+0
-1
No files found.
.circleci/config.yml
View file @
e3a90721
...
@@ -190,6 +190,7 @@ jobs:
...
@@ -190,6 +190,7 @@ jobs:
-
setup_remote_docker
-
setup_remote_docker
-
run
:
docker info
-
run
:
docker info
-
run
:
echo $GRAFANA_VERSION
-
run
:
echo $GRAFANA_VERSION
-
run
:
cp dist/grafana-latest.linux-x64.tar.gz packaging/docker
-
run
:
cd packaging/docker && ./build.sh ${GRAFANA_VERSION}
-
run
:
cd packaging/docker && ./build.sh ${GRAFANA_VERSION}
build-enterprise
:
build-enterprise
:
...
...
packaging/docker/Dockerfile
View file @
e3a90721
FROM
debian:stretch-slim
FROM
debian:stretch-slim
ARG
GRAFANA_
URL="https://s3-us-west-2.amazonaws.com/grafana-releases/master/
grafana-latest.linux-x64.tar.gz"
ARG
GRAFANA_
TGZ="
grafana-latest.linux-x64.tar.gz"
ARG
GF_UID="472"
ARG
GF_UID="472"
ARG
GF_GID="472"
ARG
GF_GID="472"
...
@@ -12,9 +12,12 @@ ENV PATH=/usr/share/grafana/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bi
...
@@ -12,9 +12,12 @@ ENV PATH=/usr/share/grafana/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bi
GF_PATHS_PLUGINS="/var/lib/grafana/plugins" \
GF_PATHS_PLUGINS="/var/lib/grafana/plugins" \
GF_PATHS_PROVISIONING="/etc/grafana/provisioning"
GF_PATHS_PROVISIONING="/etc/grafana/provisioning"
RUN
apt-get update
&&
apt-get install
-qq
-y
tar
libfontconfig curl ca-certificates
&&
\
COPY
${GRAFANA_TGZ} /tmp/grafana.tar.gz
RUN
apt-get update
&&
apt-get install
-qq
-y
tar
libfontconfig ca-certificates
&&
\
mkdir
-p
"
$GF_PATHS_HOME
/.aws"
&&
\
mkdir
-p
"
$GF_PATHS_HOME
/.aws"
&&
\
curl
"
$GRAFANA_URL
"
|
tar
xfvz -
--strip-components
=
1
-C
"
$GF_PATHS_HOME
"
&&
\
tar
xfvz /tmp/grafana.tar.gz
--strip-components
=
1
-C
"
$GF_PATHS_HOME
"
&&
\
rm /tmp/grafana.tar.gz
&&
\
apt-get autoremove
-y
&&
\
apt-get autoremove
-y
&&
\
rm
-rf
/var/lib/apt/lists/
*
&&
\
rm
-rf
/var/lib/apt/lists/
*
&&
\
groupadd
-r
-g
$GF_GID
grafana
&&
\
groupadd
-r
-g
$GF_GID
grafana
&&
\
...
...
packaging/docker/build.sh
View file @
e3a90721
...
@@ -10,7 +10,6 @@ echo ${_grafana_version}
...
@@ -10,7 +10,6 @@ echo ${_grafana_version}
if
[
"
$_grafana_version
"
!=
""
]
;
then
if
[
"
$_grafana_version
"
!=
""
]
;
then
echo
"Building version
${
_grafana_version
}
"
echo
"Building version
${
_grafana_version
}
"
docker build
\
docker build
\
--build-arg
GRAFANA_URL
=
"https://s3-us-west-2.amazonaws.com/grafana-releases/release/grafana-
${
_grafana_version
}
.linux-amd64.tar.gz"
\
--tag
"
${
_docker_repo
}
:
${
_grafana_version
}
"
\
--tag
"
${
_docker_repo
}
:
${
_grafana_version
}
"
\
--no-cache
=
true
.
--no-cache
=
true
.
docker tag
${
_docker_repo
}
:
${
_grafana_version
}
${
_docker_repo
}
:latest
docker tag
${
_docker_repo
}
:
${
_grafana_version
}
${
_docker_repo
}
:latest
...
...
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