mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
build: complete docker build for master and releases.
This commit is contained in:
parent
424aa6e564
commit
99a9dbb04f
@ -192,7 +192,19 @@ jobs:
|
|||||||
- setup_remote_docker
|
- setup_remote_docker
|
||||||
- run: docker info
|
- run: docker info
|
||||||
- run: cp dist/grafana-latest.linux-x64.tar.gz packaging/docker
|
- 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:
|
build-enterprise:
|
||||||
docker:
|
docker:
|
||||||
@ -306,6 +318,16 @@ workflows:
|
|||||||
- mysql-integration-test
|
- mysql-integration-test
|
||||||
- postgres-integration-test
|
- postgres-integration-test
|
||||||
filters: *filter-only-master
|
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:
|
- deploy-enterprise-master:
|
||||||
requires:
|
requires:
|
||||||
- build-all
|
- build-all
|
||||||
@ -344,6 +366,16 @@ workflows:
|
|||||||
- mysql-integration-test
|
- mysql-integration-test
|
||||||
- postgres-integration-test
|
- postgres-integration-test
|
||||||
filters: *filter-only-release
|
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:
|
build-branches-and-prs:
|
||||||
jobs:
|
jobs:
|
||||||
@ -361,15 +393,3 @@ workflows:
|
|||||||
filters: *filter-not-release-or-master
|
filters: *filter-not-release-or-master
|
||||||
- postgres-integration-test:
|
- postgres-integration-test:
|
||||||
filters: *filter-not-release-or-master
|
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
|
|
||||||
|
45
packaging/docker/README.md
Normal file
45
packaging/docker/README.md
Normal file
@ -0,0 +1,45 @@
|
|||||||
|
# Grafana Docker image
|
||||||
|
|
||||||
|
[](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
|
@ -4,8 +4,7 @@ _grafana_version=$1
|
|||||||
./build.sh "$_grafana_version"
|
./build.sh "$_grafana_version"
|
||||||
docker login -u "$DOCKER_USER" -p "$DOCKER_PASS"
|
docker login -u "$DOCKER_USER" -p "$DOCKER_PASS"
|
||||||
|
|
||||||
#./push_to_docker_hub.sh "$_grafana_version"
|
./push_to_docker_hub.sh "$_grafana_version"
|
||||||
echo "Would have deployed $_grafana_version"
|
|
||||||
|
|
||||||
if echo "$_grafana_version" | grep -q "^master-"; then
|
if echo "$_grafana_version" | grep -q "^master-"; then
|
||||||
apk add --no-cache curl
|
apk add --no-cache curl
|
||||||
|
16
packaging/docker/custom/Dockerfile
Normal file
16
packaging/docker/custom/Dockerfile
Normal file
@ -0,0 +1,16 @@
|
|||||||
|
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
|
Loading…
Reference in New Issue
Block a user