Merge pull request #762 from influxdata/feature/influxd-docker
ci(influxd): add influxd to goreleaserpull/10616/head
commit
3140dd0f6b
|
@ -40,7 +40,26 @@ builds:
|
||||||
main: ./cmd/influx/
|
main: ./cmd/influx/
|
||||||
ldflags: -s -w -X main.commit={{.Commit}}
|
ldflags: -s -w -X main.commit={{.Commit}}
|
||||||
binary: influx
|
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:
|
archive:
|
||||||
format: tar.gz
|
format: tar.gz
|
||||||
|
@ -70,3 +89,9 @@ dockers:
|
||||||
dockerfile: docker/flux/Dockerfile
|
dockerfile: docker/flux/Dockerfile
|
||||||
extra_files:
|
extra_files:
|
||||||
- docker/flux/entrypoint.sh
|
- docker/flux/entrypoint.sh
|
||||||
|
-
|
||||||
|
binary: influxd
|
||||||
|
image: quay.io/influxdb/influx
|
||||||
|
dockerfile: docker/influxd/Dockerfile
|
||||||
|
extra_files:
|
||||||
|
- docker/influxd/entrypoint.sh
|
||||||
|
|
|
@ -422,63 +422,51 @@
|
||||||
revision = "53e6ce116135b80d037921a7fdd5138cf32d7a8a"
|
revision = "53e6ce116135b80d037921a7fdd5138cf32d7a8a"
|
||||||
|
|
||||||
[[projects]]
|
[[projects]]
|
||||||
digest = "1:806381a928989b6d1dc01474d67a9d4df266172eadc976d46cb51633d0d0998e"
|
digest = "1:6f95db9a2709519edc486a797638bcc34b58641fa57337d4e7ab26b0ea22cf9c"
|
||||||
name = "github.com/goreleaser/archive"
|
|
||||||
packages = [
|
|
||||||
".",
|
|
||||||
"tar",
|
|
||||||
"zip",
|
|
||||||
]
|
|
||||||
pruneopts = "UT"
|
|
||||||
revision = "f83c3f651b008c42ee5d316770ebf54f383ffe13"
|
|
||||||
version = "v1.1.2"
|
|
||||||
|
|
||||||
[[projects]]
|
|
||||||
digest = "1:7b23aa84cb488f83b9a1519b1fbc19b43976dd5c47e7afa82e919f73f4cc0c40"
|
|
||||||
name = "github.com/goreleaser/goreleaser"
|
name = "github.com/goreleaser/goreleaser"
|
||||||
packages = [
|
packages = [
|
||||||
".",
|
".",
|
||||||
"build",
|
|
||||||
"checksum",
|
|
||||||
"config",
|
|
||||||
"context",
|
|
||||||
"internal/artifact",
|
"internal/artifact",
|
||||||
"internal/builders/golang",
|
"internal/builders/golang",
|
||||||
"internal/client",
|
"internal/client",
|
||||||
"internal/deprecate",
|
|
||||||
"internal/git",
|
"internal/git",
|
||||||
"internal/http",
|
"internal/http",
|
||||||
"internal/linux",
|
"internal/linux",
|
||||||
|
"internal/pipeline",
|
||||||
|
"internal/pipeline/archive",
|
||||||
|
"internal/pipeline/artifactory",
|
||||||
|
"internal/pipeline/before",
|
||||||
|
"internal/pipeline/brew",
|
||||||
|
"internal/pipeline/build",
|
||||||
|
"internal/pipeline/changelog",
|
||||||
|
"internal/pipeline/checksums",
|
||||||
|
"internal/pipeline/defaults",
|
||||||
|
"internal/pipeline/dist",
|
||||||
|
"internal/pipeline/docker",
|
||||||
|
"internal/pipeline/effectiveconfig",
|
||||||
|
"internal/pipeline/env",
|
||||||
|
"internal/pipeline/git",
|
||||||
|
"internal/pipeline/nfpm",
|
||||||
|
"internal/pipeline/project",
|
||||||
|
"internal/pipeline/put",
|
||||||
|
"internal/pipeline/release",
|
||||||
|
"internal/pipeline/s3",
|
||||||
|
"internal/pipeline/scoop",
|
||||||
|
"internal/pipeline/sign",
|
||||||
|
"internal/pipeline/snapcraft",
|
||||||
|
"internal/pipeline/snapshot",
|
||||||
"internal/semerrgroup",
|
"internal/semerrgroup",
|
||||||
"internal/tmpl",
|
"internal/tmpl",
|
||||||
"pipeline",
|
"pkg/archive",
|
||||||
"pipeline/archive",
|
"pkg/archive/tar",
|
||||||
"pipeline/artifactory",
|
"pkg/archive/zip",
|
||||||
"pipeline/before",
|
"pkg/build",
|
||||||
"pipeline/brew",
|
"pkg/config",
|
||||||
"pipeline/build",
|
"pkg/context",
|
||||||
"pipeline/changelog",
|
|
||||||
"pipeline/checksums",
|
|
||||||
"pipeline/defaults",
|
|
||||||
"pipeline/dist",
|
|
||||||
"pipeline/docker",
|
|
||||||
"pipeline/effectiveconfig",
|
|
||||||
"pipeline/env",
|
|
||||||
"pipeline/fpm",
|
|
||||||
"pipeline/git",
|
|
||||||
"pipeline/nfpm",
|
|
||||||
"pipeline/project",
|
|
||||||
"pipeline/put",
|
|
||||||
"pipeline/release",
|
|
||||||
"pipeline/s3",
|
|
||||||
"pipeline/scoop",
|
|
||||||
"pipeline/sign",
|
|
||||||
"pipeline/snapcraft",
|
|
||||||
"pipeline/snapshot",
|
|
||||||
]
|
]
|
||||||
pruneopts = "UT"
|
pruneopts = "UT"
|
||||||
revision = "170e6c6b25b0f3375ebf409651e38874b1199d2e"
|
revision = "93a0055d036200749a25b5a3454737b0de6af2d3"
|
||||||
version = "v0.81.0"
|
version = "v0.84.0"
|
||||||
|
|
||||||
[[projects]]
|
[[projects]]
|
||||||
digest = "1:555e46bfe479a0c08e69f57cbce309be0c5fb2f8bc203dc0be6132758a8dd158"
|
digest = "1:555e46bfe479a0c08e69f57cbce309be0c5fb2f8bc203dc0be6132758a8dd158"
|
||||||
|
|
|
@ -37,7 +37,7 @@ required = [
|
||||||
|
|
||||||
[[constraint]]
|
[[constraint]]
|
||||||
name = "github.com/goreleaser/goreleaser"
|
name = "github.com/goreleaser/goreleaser"
|
||||||
version = "0.81.0"
|
version = "0.84.0"
|
||||||
|
|
||||||
[[constraint]]
|
[[constraint]]
|
||||||
name = "github.com/kevinburke/go-bindata"
|
name = "github.com/kevinburke/go-bindata"
|
||||||
|
|
1
Makefile
1
Makefile
|
@ -135,6 +135,7 @@ bench: vendor
|
||||||
nightly: bin/$(GOOS)/goreleaser all
|
nightly: bin/$(GOOS)/goreleaser all
|
||||||
PATH=./bin/$(GOOS):${PATH} goreleaser --snapshot --rm-dist
|
PATH=./bin/$(GOOS):${PATH} goreleaser --snapshot --rm-dist
|
||||||
docker push quay.io/influxdb/flux:nightly
|
docker push quay.io/influxdb/flux:nightly
|
||||||
|
docker push quay.io/influxdb/influx:nightly
|
||||||
|
|
||||||
# Recursively clean all subdirs
|
# Recursively clean all subdirs
|
||||||
clean: $(SUBDIRS)
|
clean: $(SUBDIRS)
|
||||||
|
|
|
@ -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"]
|
|
@ -0,0 +1,8 @@
|
||||||
|
#!/bin/bash
|
||||||
|
set -e
|
||||||
|
|
||||||
|
if [ "${1:0:1}" = '-' ]; then
|
||||||
|
set -- influxd "$@"
|
||||||
|
fi
|
||||||
|
|
||||||
|
exec "$@"
|
Loading…
Reference in New Issue