grafana/scripts/build/ci-build
Ashley Harrison ed030f9c21
Chore: Set min node version in package.json to 16 (#41423)
* Update package.json

* Update build-container version

* Sign drone

* Update developer-guide

* kick drone

Co-authored-by: dsotirakis <sotirakis.dim@gmail.com>
Co-authored-by: Dimitris Sotirakis <dimitrios.sotirakis@grafana.com>
Co-authored-by: kay delaney <kay@grafana.com>
2021-11-10 14:23:10 +00:00
..
.gitignore Chore: Upgrade golangci-lint (#27719) 2020-09-23 10:55:25 +02:00
bootstrap.sh Build: Introduce shellcheck (#18081) 2019-07-23 13:12:33 +03:00
build-deploy.sh Chore: Set min node version in package.json to 16 (#41423) 2021-11-10 14:23:10 +00:00
Dockerfile Chore: Set min node version in package.json to 16 (#41423) 2021-11-10 14:23:10 +00:00
Makefile Build container: Base build image on Debian Stretch (#24967) 2020-05-26 15:45:49 +02:00
README.md Prettier: Fix all markdown files and add markdown files to CI verify step (#39776) 2021-09-29 14:34:40 +02:00

grafana-build-container

These are the sources for the Docker image that we use for the Grafana build containers. The image source itself is in Dockerfile, but there are supporting scripts such as the Makefile, for building images.

The image is based on Debian Stretch, since we want an older Linux distribution (Stretch has long-term support into 2022) to build binaries that are as portable as possible.

Makefile targets

  • make run-with-local-source-copy
    • Starts the container locally and copies your local sources into the container
  • make run-with-local-source-live
    • Starts the container (as your user) locally and maps your Grafana project dir into the container
  • make update-source
    • Updates the sources in the container from your local sources
  • make stop
    • Kills the container
  • make attach
    • Opens bash within the running container

Build/Publish Docker Image

In order to build and publish the Grafana build Docker image, execute the following:

# Download MacOSX10.15.sdk.tar.xz from our private GCS bucket into this directory
./build-deploy.sh