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
0ff54d25
Commit
0ff54d25
authored
Aug 02, 2018
by
Leonard Gram
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
build: makes it easier to build a local docker container.
parent
b61ac546
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
12 additions
and
4 deletions
+12
-4
.gitignore
+1
-0
Makefile
+6
-0
packaging/docker/Dockerfile
+5
-4
No files found.
.gitignore
View file @
0ff54d25
...
...
@@ -58,6 +58,7 @@ debug.test
/examples/*/dist
/packaging/**/*.rpm
/packaging/**/*.deb
/packaging/**/*.tar.gz
# Ignore OSX indexing
.DS_Store
...
...
Makefile
View file @
0ff54d25
...
...
@@ -24,6 +24,12 @@ build-js:
build
:
build-go build-js
build-docker-dev
:
@
echo
"
\0
33[92mInfo:
\0
33[0m the frontend code is expected to be built already."
go run build.go
-goos
linux
-pkg-arch
amd64
${
OPT
}
build package-only latest
cp dist/grafana-latest.linux-x64.tar.gz packaging/docker
cd
packaging/docker
&&
docker build
--tag
grafana/grafana:dev .
test-go
:
go
test
-v
./pkg/...
...
...
packaging/docker/Dockerfile
View file @
0ff54d25
...
...
@@ -12,14 +12,15 @@ 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_PROVISIONING="/etc/grafana/provisioning"
RUN
apt-get update
&&
apt-get install
-qq
-y
tar
libfontconfig ca-certificates
&&
\
apt-get autoremove
-y
&&
\
rm
-rf
/var/lib/apt/lists/
*
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"
&&
\
RUN
mkdir
-p
"
$GF_PATHS_HOME
/.aws"
&&
\
tar
xfvz /tmp/grafana.tar.gz
--strip-components
=
1
-C
"
$GF_PATHS_HOME
"
&&
\
rm /tmp/grafana.tar.gz
&&
\
apt-get autoremove
-y
&&
\
rm
-rf
/var/lib/apt/lists/
*
&&
\
groupadd
-r
-g
$GF_GID
grafana
&&
\
useradd
-r
-u
$GF_UID
-g
grafana grafana
&&
\
mkdir
-p
"
$GF_PATHS_PROVISIONING
/datasources"
\
...
...
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