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
99a9dbb0
Commit
99a9dbb0
authored
Jul 30, 2018
by
Leonard Gram
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
build: complete docker build for master and releases.
parent
424aa6e5
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
96 additions
and
15 deletions
+96
-15
.circleci/config.yml
+33
-13
packaging/docker/README.md
+46
-0
packaging/docker/build-deploy.sh
+1
-2
packaging/docker/custom/Dockerfile
+16
-0
No files found.
.circleci/config.yml
View file @
99a9dbb0
...
...
@@ -192,7 +192,19 @@ jobs:
-
setup_remote_docker
-
run
:
docker info
-
run
:
cp dist/grafana-latest.linux-x64.tar.gz packaging/docker
-
run
:
cd packaging/docker && ./build-deploy.sh "grafana-docker-${CIRCLE_SHA1}"
-
run
:
cd packaging/docker && ./build-deploy.sh "master-${CIRCLE_SHA1}"
grafana-docker-release
:
docker
:
-
image
:
docker:stable-git
steps
:
-
checkout
-
attach_workspace
:
at
:
.
-
setup_remote_docker
-
run
:
docker info
-
run
:
cp dist/grafana-latest.linux-x64.tar.gz packaging/docker
-
run
:
cd packaging/docker && ./build-deploy.sh "${CIRCLE_TAG}"
build-enterprise
:
docker
:
...
...
@@ -306,6 +318,16 @@ workflows:
-
mysql-integration-test
-
postgres-integration-test
filters
:
*filter-only-master
-
grafana-docker-master
:
requires
:
-
build-all
-
test-backend
-
test-frontend
-
codespell
-
gometalinter
-
mysql-integration-test
-
postgres-integration-test
filters
:
*filter-only-master
-
deploy-enterprise-master
:
requires
:
-
build-all
...
...
@@ -344,6 +366,16 @@ workflows:
-
mysql-integration-test
-
postgres-integration-test
filters
:
*filter-only-release
-
grafana-docker-release
:
requires
:
-
build-all
-
test-backend
-
test-frontend
-
codespell
-
gometalinter
-
mysql-integration-test
-
postgres-integration-test
filters
:
*filter-only-release
build-branches-and-prs
:
jobs
:
...
...
@@ -361,15 +393,3 @@ workflows:
filters
:
*filter-not-release-or-master
-
postgres-integration-test
:
filters
:
*filter-not-release-or-master
-
grafana-docker-master
:
requires
:
-
build
-
test-backend
-
test-frontend
-
codespell
-
gometalinter
-
mysql-integration-test
-
postgres-integration-test
filters
:
branches
:
only
:
grafana-docker
packaging/docker/README.md
0 → 100644
View file @
99a9dbb0
# Grafana Docker image
[
![CircleCI
](
https://circleci.com/gh/grafana/grafana-docker.svg?style=svg
)
](https://circleci.com/gh/grafana/grafana-docker)
## Running your Grafana container
Start your container binding the external port
`3000`
.
```
bash
docker run
-d
--name
=
grafana
-p
3000:3000 grafana/grafana
```
Try it out, default admin user is admin/admin.
## How to use the container
Further documentation can be found at http://docs.grafana.org/installation/docker/
## Changelog
### v5.1.5, v5.2.0-beta2
*
Fix: config keys ending with _FILE are not respected
[
#170
](
https://github.com/grafana/grafana-docker/issues/170
)
### v5.2.0-beta1
*
Support for Docker Secrets
### v5.1.0
*
Major restructuring of the container
*
Usage of
`chown`
removed
*
File permissions incompatibility with previous versions
*
user id changed from 104 to 472
*
group id changed from 107 to 472
*
Runs as the grafana user by default (instead of root)
*
All default volumes removed
### v4.2.0
*
Plugins are now installed into ${GF_PATHS_PLUGINS}
*
Building the container now requires a full url to the deb package instead of just version
*
Fixes bug caused by installing multiple plugins
### v4.0.0-beta2
*
Plugins dir (
`/var/lib/grafana/plugins`
) is no longer a separate volume
### v3.1.1
*
Make it possible to install specific plugin version https://github.com/grafana/grafana-docker/issues/59#issuecomment-260584026
\ No newline at end of file
packaging/docker/build-deploy.sh
View file @
99a9dbb0
...
...
@@ -4,8 +4,7 @@ _grafana_version=$1
./build.sh
"
$_grafana_version
"
docker login
-u
"
$DOCKER_USER
"
-p
"
$DOCKER_PASS
"
#./push_to_docker_hub.sh "$_grafana_version"
echo
"Would have deployed
$_grafana_version
"
./push_to_docker_hub.sh
"
$_grafana_version
"
if
echo
"
$_grafana_version
"
|
grep
-q
"^master-"
;
then
apk add
--no-cache
curl
...
...
packaging/docker/custom/Dockerfile
0 → 100644
View file @
99a9dbb0
ARG
GRAFANA_VERSION="latest"
FROM
grafana/grafana:${GRAFANA_VERSION}
USER
grafana
ARG
GF_INSTALL_PLUGINS=""
RUN if
[
!
-z
"
${
GF_INSTALL_PLUGINS
}
"
]
;
then
\
OLDIFS=$IFS; \
IFS=','; \
for plugin in ${GF_INSTALL_PLUGINS}; do \
IFS=$OLDIFS; \
grafana-cli --pluginsDir "$GF_PATHS_PLUGINS" plugins install ${plugin}; \
done; \
fi
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