add packer

Signed-off-by: Jess Frazelle <acidburn@microsoft.com>
This commit is contained in:
Jess Frazelle 2018-10-12 13:19:24 -04:00
parent d85085e65f
commit 9162d66161
No known key found for this signature in database
GPG Key ID: 18F3685C0022BFF3
2 changed files with 33 additions and 0 deletions

View File

@ -122,6 +122,7 @@ zeit/now-cli
nzbget/nzbget nzbget/nzbget
bitly/oauth2_proxy bitly/oauth2_proxy
facebook/osquery facebook/osquery
hashicorp/packer
Tautulli/Tautulli Tautulli/Tautulli
perkeep/perkeep perkeep/perkeep
powershell/powershell powershell/powershell

32
packer/Dockerfile Normal file
View File

@ -0,0 +1,32 @@
FROM golang:alpine as builder
MAINTAINER Jessica Frazelle <jess@linux.com>
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" ]