Skip to content

Commit

Permalink
feat(docker): create a fluxd nightly docker image
Browse files Browse the repository at this point in the history
  • Loading branch information
jsternberg committed Jul 17, 2018
1 parent 523ec81 commit de61a79
Show file tree
Hide file tree
Showing 5 changed files with 28 additions and 1 deletion.
4 changes: 3 additions & 1 deletion .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
8 changes: 8 additions & 0 deletions .goreleaser.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
1 change: 1 addition & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
8 changes: 8 additions & 0 deletions docker/flux/Dockerfile
Original file line number Diff line number Diff line change
@@ -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 changes: 8 additions & 0 deletions docker/flux/entrypoint.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
#!/bin/bash
set -e

if [ "${1:0:1}" = '-' ]; then
set -- fluxd "$@"
fi

exec "$@"

0 comments on commit de61a79

Please sign in to comment.