forked from hashicorp/vault
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Provide dockerfile to test this version
- Loading branch information
1 parent
3e8d04a
commit c412b44
Showing
1 changed file
with
49 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,49 @@ | ||
FROM debian:buster | ||
|
||
RUN apt-get update -y && apt-get install --no-install-recommends -y -q \ | ||
curl \ | ||
zip \ | ||
build-essential \ | ||
gcc-multilib \ | ||
g++-multilib \ | ||
ca-certificates \ | ||
git mercurial bzr \ | ||
gnupg \ | ||
libltdl-dev \ | ||
libltdl7 | ||
RUN apt-get --allow-releaseinfo-change update | ||
RUN curl -sL https://dl-ssl.google.com/linux/linux_signing_key.pub | apt-key add - | ||
RUN echo "deb http://dl.google.com/linux/chrome/deb/ stable main" | tee /etc/apt/sources.list.d/google-chrome.list | ||
RUN apt-get update | ||
RUN apt-get -y install google-chrome-stable | ||
RUN curl -sL https://deb.nodesource.com/setup_10.x | bash - | ||
RUN curl -sL https://dl.yarnpkg.com/debian/pubkey.gpg | apt-key add - | ||
RUN echo "deb https://dl.yarnpkg.com/debian/ stable main" | tee /etc/apt/sources.list.d/yarn.list | ||
|
||
RUN apt-get update -y && apt-get install -y -q nodejs yarn | ||
|
||
RUN rm -rf /var/lib/apt/lists/* | ||
|
||
ENV XC_ARCH="amd64" | ||
ENV XC_OS="linux darwin windows" | ||
ENV XC_OSARCH="linux/amd64 darwin/amd64 windows/amd64" | ||
ENV GOVERSION 1.15.13 | ||
RUN mkdir /goroot && mkdir /gopath | ||
RUN curl https://storage.googleapis.com/golang/go${GOVERSION}.linux-amd64.tar.gz \ | ||
| tar xvzf - -C /goroot --strip-components=1 | ||
|
||
ENV GOPATH /gopath | ||
ENV GOROOT /goroot | ||
ENV PATH $GOROOT/bin:$GOPATH/bin:$PATH | ||
ENV CI true | ||
|
||
RUN go get golang.org/x/tools/cmd/goimports | ||
RUN go get github.com/mitchellh/gox | ||
RUN go get github.com/hashicorp/go-bindata | ||
RUN go get github.com/hashicorp/go-bindata/go-bindata | ||
RUN go get github.com/elazarl/go-bindata-assetfs | ||
RUN go get github.com/elazarl/go-bindata-assetfs/go-bindata-assetfs | ||
|
||
RUN mkdir -p /gopath/src/github.com/hashicorp/vault | ||
WORKDIR /gopath/src/github.com/hashicorp/vault | ||
CMD make dev test-ember |