grafana/packages/grafana-toolkit/docker/grafana-plugin-ci-alpine
Arve Knudsen c2c1ec7d0f
Chore: Move from master to main branch (#33693)
* Chore: Move from master branch to main

Signed-off-by: Arve Knudsen <arve.knudsen@gmail.com>

* CI: Upgrade build pipeline tool to v2

Signed-off-by: Arve Knudsen <arve.knudsen@gmail.com>
2021-05-06 16:29:29 +02:00
..
install/bin Chore: Move from master to main branch (#33693) 2021-05-06 16:29:29 +02:00
scripts Update scripts and Dockerfiles to use Go 1.16.1 (#31881) 2021-03-11 12:55:04 +02:00
test Chore: Rename plugin CI image as grafana/grafana-plugin-ci:latest-alpine (#26106) 2020-07-07 19:16:22 +02:00
build.sh CI: Add Google Cloud SDK to plugin CI Docker images (#27444) 2020-09-08 15:06:32 +02:00
common.sh Chore: Upgrade golangci-lint (#31330) 2021-02-18 19:24:04 +01:00
Dockerfile CI: Upgrade Dockerfiles wrt. Go, Node, Debian (#31407) 2021-02-24 08:52:48 +01:00
README.md CI: Add Google Cloud SDK to plugin CI Docker images (#27444) 2020-09-08 15:06:32 +02:00

Using this docker image

Uploaded to dockerhub as grafana/grafana-plugin-ci:latest-alpine

Based off of circleci/node:12-browsers

User

The user will be circleci The home directory will be /home/circleci

Node

  • node 12 is installed
  • yarn is installed globally
  • npm is installed globally

Go

  • Go is installed in /usr/local/bin/go
  • golangci-lint is installed in /usr/local/bin/golangci-lint
  • mage is installed in /home/circleci/go/bin/mage

All of the above directories are in the path, so there is no need to specify fully qualified paths.

Grafana

  • Installed in /home/circleci/src/grafana
  • yarn install has been run

Integration/Release Testing

There are 4 previous versions pre-downloaded to /usr/local/grafana. These versions are:

  1. 6.6.2
  2. 6.5.3
  3. 6.4.5
  4. 6.3.7

To test, your CircleCI config will need a run section with something similar to the following

- run:
        name: Setup Grafana (local install)
        command: |
          sudo dpkg -i /usr/local/grafana/deb/grafana_6.6.2_amd64.deb
          sudo cp ci/grafana-test-env/custom.ini /usr/share/grafana/conf/custom.ini
          sudo cp ci/grafana-test-env/custom.ini /etc/grafana/grafana.ini
          sudo service grafana-server start
          grafana-cli --version

Building

To build, cd to <srcroot>/packages/grafana-toolkit/docker/grafana-plugin-ci-alpine

./build.sh

Developing/Testing

To test, you should have docker-compose installed.

cd test
./start.sh

You will be in /home/circleci/test with the buildscripts installed to the local directory. Do your edits/run tests. When saving, your edits will be available in the container immediately.