update terraform and consul

Signed-off-by: Jess Frazelle <acidburn@jessfraz.com>
This commit is contained in:
Jess Frazelle
2019-05-25 17:23:46 -04:00
parent e3b110208d
commit c554b399ab
2 changed files with 21 additions and 3 deletions

View File

@@ -5,7 +5,9 @@ ENV PATH /go/bin:/usr/local/go/bin:$PATH
ENV GOPATH /go ENV GOPATH /go
RUN apt-get update && apt-get install -y \ RUN apt-get update && apt-get install -y \
apt-transport-https \
ca-certificates \ ca-certificates \
curl \
gcc \ gcc \
git \ git \
make \ make \
@@ -14,7 +16,20 @@ RUN apt-get update && apt-get install -y \
--no-install-recommends \ --no-install-recommends \
&& rm -rf /var/lib/apt/lists/* && rm -rf /var/lib/apt/lists/*
ENV CONSUL_VERSION v1.4.3 # Add yarn to apt repos.
RUN curl -sS 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
# Setup node install.
RUN curl -sL https://deb.nodesource.com/setup_10.x | bash -
RUN apt-get update && apt-get install -y \
nodejs \
yarn \
--no-install-recommends \
&& rm -rf /var/lib/apt/lists/*
ENV CONSUL_VERSION v1.5.1
RUN go get github.com/hashicorp/consul RUN go get github.com/hashicorp/consul
@@ -27,8 +42,9 @@ RUN gem install \
bundler \ bundler \
--no-ri --no-rdoc --no-ri --no-rdoc
RUN cd ui \ RUN cd ui-v2 \
&& make dist && yarn install \
&& make
RUN TERM=xterm XC_ARCH="amd64" XC_OS="linux" LD_FLAGS=" -extldflags -static" make tools static-assets bin \ RUN TERM=xterm XC_ARCH="amd64" XC_OS="linux" LD_FLAGS=" -extldflags -static" make tools static-assets bin \
&& mv bin/consul /usr/bin/consul && mv bin/consul /usr/bin/consul

View File

@@ -7,8 +7,10 @@ ENV GOPATH /go
RUN apk add --no-cache \ RUN apk add --no-cache \
bash \ bash \
ca-certificates \ ca-certificates \
gcc \
git \ git \
make \ make \
musl-dev \
zip zip
ENV TERRAFORM_VERSION v0.12.0 ENV TERRAFORM_VERSION v0.12.0