mirror of https://github.com/helm/helm
parent
e1321bb86f
commit
efdf5cd4ec
@ -1,4 +1,6 @@
|
||||
.coverage/
|
||||
bin/
|
||||
rootfs/helm
|
||||
rootfs/tiller
|
||||
vendor/
|
||||
_proto/*.pb.go
|
||||
|
@ -0,0 +1,27 @@
|
||||
# RootFS
|
||||
|
||||
This directory stores all files that should be copied to the rootfs of a
|
||||
Docker container. The files should be stored according to the correct
|
||||
directory structure of the destination container. For example:
|
||||
|
||||
```
|
||||
rootfs/bin -> /bin
|
||||
rootfs/usr/local/share -> /usr/local/share
|
||||
```
|
||||
|
||||
## Dockerfile
|
||||
|
||||
A Dockerfile in the rootfs is used to build the image. Where possible,
|
||||
compilation should not be done in this Dockerfile, since we are
|
||||
interested in deploying the smallest possible images.
|
||||
|
||||
Example:
|
||||
|
||||
```Dockerfile
|
||||
FROM alpine:3.2
|
||||
|
||||
COPY . /
|
||||
|
||||
ENTRYPOINT ["/usr/local/bin/boot"]
|
||||
```
|
||||
|
@ -0,0 +1,22 @@
|
||||
MUTABLE_VERSION ?= canary
|
||||
VERSION ?= git-$(shell git rev-parse --short HEAD)
|
||||
|
||||
IMAGE := ${DOCKER_REGISTRY}${IMAGE_PREFIX}/${SHORT_NAME}:${VERSION}
|
||||
MUTABLE_IMAGE := ${DOCKER_REGISTRY}${IMAGE_PREFIX}/${SHORT_NAME}:${MUTABLE_VERSION}
|
||||
|
||||
info:
|
||||
@echo "Build tag: ${VERSION}"
|
||||
@echo "Registry: ${DOCKER_REGISTRY}"
|
||||
@echo "Immutable tag: ${IMAGE}"
|
||||
@echo "Mutable tag: ${MUTABLE_IMAGE}"
|
||||
|
||||
.PHONY: docker-push
|
||||
docker-push: docker-mutable-push docker-immutable-push
|
||||
|
||||
.PHONY: docker-immutable-push
|
||||
docker-immutable-push:
|
||||
docker push ${IMAGE}
|
||||
|
||||
.PHONY: docker-mutable-push
|
||||
docker-mutable-push:
|
||||
docker push ${MUTABLE_IMAGE}
|
Loading…
Reference in new issue