ci(influxd): add influxd to goreleaser

pull/10616/head
Chris Goller 2018-08-31 12:58:21 -05:00
parent 0ecb5aaefc
commit 46dde34b92
3 changed files with 42 additions and 1 deletions

View File

@ -40,7 +40,26 @@ builds:
main: ./cmd/influx/
ldflags: -s -w -X main.commit={{.Commit}}
binary: influx
- goos:
- linux
- darwin
- windows
goarch:
- amd64
- 386
- arm
- arm64
goarm:
- 6
- 7
ignore:
- goos: darwin
goarch: 386
- goos: windows
goarch: 386
main: ./cmd/influxd/
ldflags: -s -w -X main.commit={{.Commit}}
binary: influxd
archive:
format: tar.gz
@ -70,3 +89,9 @@ dockers:
dockerfile: docker/flux/Dockerfile
extra_files:
- docker/flux/entrypoint.sh
-
binary: influxd
image: quay.io/influxdb/influx
dockerfile: docker/influxd/Dockerfile
extra_files:
- docker/influxd/entrypoint.sh

View File

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

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

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