Skip to content

Latest commit

 

History

History
33 lines (25 loc) · 951 Bytes

BUILD_FROM_SOURCE_README.md

File metadata and controls

33 lines (25 loc) · 951 Bytes

Build Instructions

The upstream tag this release is branched from is v0.7.1

Create Environment Variables

export DOCKER_REPO=<Docker Repository>
export DOCKER_NAMESPACE=<Docker Namespace>
export DOCKER_TAG=<Docker Tag>

Build and Push Images

By default, Rancher uses the latest tag on the Git branch as the image tag, so create the tag and run make:

git tag ${DOCKER_TAG}
make

Alternatively you can skip creating the tag and simply pass an environment variable to make:

TAG=${DOCKER_TAG} make

Once the build completes successfully, tag and push the images:

docker tag rancher/fleet:${DOCKER_TAG} ${DOCKER_REPO}/${DOCKER_NAMESPACE}/fleet:${DOCKER_TAG}
docker tag rancher/fleet-agent:${DOCKER_TAG} ${DOCKER_REPO}/${DOCKER_NAMESPACE}/fleet-agent:${DOCKER_TAG}
docker push ${DOCKER_REPO}/${DOCKER_NAMESPACE}/fleet:${DOCKER_TAG}
docker push ${DOCKER_REPO}/${DOCKER_NAMESPACE}/fleet-agent:${DOCKER_TAG}