diff --git a/latest-versions.sh b/latest-versions.sh index 9f8e3fb..4ad8495 100755 --- a/latest-versions.sh +++ b/latest-versions.sh @@ -122,6 +122,7 @@ zeit/now-cli nzbget/nzbget bitly/oauth2_proxy facebook/osquery +hashicorp/packer Tautulli/Tautulli perkeep/perkeep powershell/powershell diff --git a/packer/Dockerfile b/packer/Dockerfile new file mode 100644 index 0000000..235573f --- /dev/null +++ b/packer/Dockerfile @@ -0,0 +1,32 @@ +FROM golang:alpine as builder +MAINTAINER Jessica Frazelle + +ENV PATH /go/bin:/usr/local/go/bin:$PATH +ENV GOPATH /go + +RUN apk add --no-cache \ + bash \ + ca-certificates \ + gcc \ + git \ + make \ + zip + +ENV PACKER_VERSION v1.3.1 + +RUN go get github.com/hashicorp/packer + +WORKDIR /go/src/github.com/hashicorp/packer + +RUN git checkout "${PACKER_VERSION}" + +RUN XC_ARCH="amd64" XC_OS="linux" LD_FLAGS=" -extldflags -static" make releasebin \ + && mv bin/packer /usr/bin/packer + +FROM alpine:latest + +COPY --from=builder /usr/bin/packer /usr/bin/packer +COPY --from=builder /etc/ssl/certs/ /etc/ssl/certs + +ENTRYPOINT [ "packer" ] +CMD [ "--help" ]