grafana/packages/grafana-toolkit/docker/grafana-plugin-ci-e2e
Dimitris Sotirakis 8e2ee0a1c8
Chore: Update to Golang 1.17 (#38608)
* Update to golang 1.17

* Further updates

* Run go mod tidy on go 1.17

* Apply suggestions from code review

Co-authored-by: Marcus Efraimsson <marcus.efraimsson@gmail.com>

* Use build-container:1.4.2

Co-authored-by: Marcus Efraimsson <marcus.efraimsson@gmail.com>
2021-08-31 09:19:26 +03:00
..
install Chore: Move from master to main branch (#33693) 2021-05-06 16:29:29 +02:00
scripts Chore: Update to Golang 1.17 (#38608) 2021-08-31 09:19:26 +03:00
test PluginCiE2E: Upgrade base images (#30696) 2021-01-29 10:26:29 +01:00
build.sh area/grafana/toolkit: update e2e docker image (#28335) 2020-10-16 22:02:49 -05:00
common.sh grafana-plugin-ci-e2e: Fix README; bump version (#36716) 2021-07-13 16:59:18 +02:00
Dockerfile Chore: update docker images -- revert to debian stable (#33044) 2021-06-16 12:35:18 -03:00
README.md Plugins: Add Hide OAuth Forward config option (#36306) 2021-08-20 15:53:54 +02:00

Using this docker image

User

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

Node

  • node 14 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 /usr/local/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-e2e

./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.