feat(docker): create a fluxd nightly docker image

pull/10616/head
Jonathan A. Sternberg 2018-07-17 14:03:40 -05:00
parent 523ec81d5b
commit de61a79483
5 changed files with 28 additions and 1 deletions

View File

@ -21,7 +21,9 @@ jobs:
working_directory: /go/src/github.com/influxdata/platform
steps:
- checkout
- run: make nightly
- run: |
docker login -u "$QUAY_USER" -p $QUAY_PASS quay.io
make nightly
workflows:

View File

@ -62,3 +62,11 @@ s3:
bucket: dl.influxdata.com
region: us-east-1
folder: "flux/nightlies/"
dockers:
-
binary: fluxd
image: quay.io/influxdb/flux
dockerfile: docker/flux/Dockerfile
extra_files:
- docker/flux/entrypoint.sh

View File

@ -107,6 +107,7 @@ bench: all
nightly: bin/$(GOOS)/goreleaser all
PATH=./bin/$(GOOS):${PATH} goreleaser --snapshot --rm-dist
docker push quay.io/influxdb/flux:nightly
# Recursively clean all subdirs
clean: $(SUBDIRS)

8
docker/flux/Dockerfile Normal file
View File

@ -0,0 +1,8 @@
FROM debian:stable-slim
COPY fluxd /usr/bin/fluxd
EXPOSE 8093
COPY entrypoint.sh /entrypoint.sh
ENTRYPOINT ["/entrypoint.sh"]
CMD ["fluxd"]

8
docker/flux/entrypoint.sh Executable file
View File

@ -0,0 +1,8 @@
#!/bin/bash
set -e
if [ "${1:0:1}" = '-' ]; then
set -- fluxd "$@"
fi
exec "$@"