chore: update to the new version, update the README.md instructions
parent
6ee6eab199
commit
aa22195c27
|
@ -1,15 +1,31 @@
|
|||
## Builds
|
||||
# Builds
|
||||
|
||||
Builds are run from a docker build image that is configured with the node and go we support.
|
||||
Our circle.yml uses this docker container to build, test and create release packages.
|
||||
|
||||
### Updating new node/go versions
|
||||
After updating the Dockerfile_build run
|
||||
## Updating new node/go versions
|
||||
|
||||
`docker build -t quay.io/influxdb/builder:chronograf-$(date "+%Y%m%d") -f Dockerfile_build .`
|
||||
Prereqs -- have python3.
|
||||
|
||||
and push to quay with:
|
||||
`docker push quay.io/influxdb/builder:chronograf-$(date "+%Y%m%d")`
|
||||
### Step 1: Build New Docker Image and Save It to Quay
|
||||
|
||||
### Update circle
|
||||
Update DOCKER_TAG in .circleci/config.yml to the new container.
|
||||
Having logged to quay.io with push permissions run:
|
||||
|
||||
```sh
|
||||
cd $CHRONOGRAF_REPOSITORY_ROOT
|
||||
./etc/scripts/docker/build.sh
|
||||
```
|
||||
|
||||
### OPTIONAL Step 2: Check the build image
|
||||
|
||||
Run the image with:
|
||||
|
||||
```sh
|
||||
export DOCKER_TAG="chronograf-$(date +%Y%m%d)"
|
||||
./etc/scripts/docker/run.sh
|
||||
```
|
||||
|
||||
### Step 3: Update script and circle
|
||||
|
||||
1. Check default tag in `etc/docker/run.sh`, replace with new one.
|
||||
2. Check DOCKER_TAG in .circleci/config.yml to the new container.
|
||||
|
|
|
@ -1,8 +1,8 @@
|
|||
#!/bin/bash
|
||||
set -x
|
||||
docker_tag="chronograf-$(date +%Y%m%d)"
|
||||
DOCKER_TAG="chronograf-$(date +%Y%m%d)"
|
||||
|
||||
docker build --rm=false -f etc/Dockerfile_build -t builder:$docker_tag .
|
||||
docker tag builder:$docker_tag quay.io/influxdb/builder:$docker_tag
|
||||
docker build --rm=false -f etc/Dockerfile_build -t builder:$DOCKER_TAG .
|
||||
docker tag builder:$DOCKER_TAG quay.io/influxdb/builder:$DOCKER_TAG
|
||||
|
||||
docker push quay.io/influxdb/builder:$docker_tag
|
||||
docker push quay.io/influxdb/builder:$DOCKER_TAG
|
||||
|
|
|
@ -14,7 +14,7 @@ test -z $SSH_KEY_PATH && SSH_KEY_PATH="$HOME/.ssh/id_rsa"
|
|||
echo "Using SSH key located at: $SSH_KEY_PATH"
|
||||
|
||||
# Default docker tag if not specified
|
||||
test -z "$DOCKER_TAG" && DOCKER_TAG="chronograf-20210828"
|
||||
test -z "$DOCKER_TAG" && DOCKER_TAG="chronograf-20220323"
|
||||
|
||||
docker run \
|
||||
-e AWS_ACCESS_KEY_ID \
|
||||
|
|
Loading…
Reference in New Issue