2019-03-19 11:34:01 +01:00
|
|
|
# grafana-build-container
|
|
|
|
|
|
2020-05-26 15:45:49 +02:00
|
|
|
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.
|
2019-03-19 11:34:01 +01:00
|
|
|
|
2020-05-26 15:45:49 +02:00
|
|
|
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.
|
2019-03-19 11:34:01 +01:00
|
|
|
|
|
|
|
|
## Makefile targets
|
|
|
|
|
|
2020-10-02 13:02:11 -05:00
|
|
|
- `make run-with-local-source-copy`
|
2019-03-19 11:34:01 +01:00
|
|
|
- Starts the container locally and copies your local sources into the container
|
2020-10-02 13:02:11 -05:00
|
|
|
- `make run-with-local-source-live`
|
2019-03-19 11:34:01 +01:00
|
|
|
- Starts the container (as your user) locally and maps your Grafana project dir into the container
|
2020-10-02 13:02:11 -05:00
|
|
|
- `make update-source`
|
2019-03-19 11:34:01 +01:00
|
|
|
- Updates the sources in the container from your local sources
|
2020-10-02 13:02:11 -05:00
|
|
|
- `make stop`
|
2019-03-19 11:34:01 +01:00
|
|
|
- Kills the container
|
2020-10-02 13:02:11 -05:00
|
|
|
- `make attach`
|
2019-03-19 11:34:01 +01:00
|
|
|
- Opens bash within the running container
|
|
|
|
|
|
2019-10-07 14:17:17 +02:00
|
|
|
## Build/Publish Docker Image
|
|
|
|
|
In order to build and publish the Grafana build Docker image, execute the following:
|
2020-09-03 13:20:28 +02:00
|
|
|
|
|
|
|
|
```
|
2020-09-23 10:55:25 +02:00
|
|
|
# Download MacOSX10.15.sdk.tar.xz from our private GCS bucket into this directory
|
2020-09-03 13:20:28 +02:00
|
|
|
./build-deploy.sh
|
|
|
|
|
```
|