Created
July 3, 2018 02:31
-
-
Save colemickens/829afeaa585c76b0b6d00bfe50f7a100 to your computer and use it in GitHub Desktop.
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
FROM ubuntu:latest | |
# upfront deps for a bunch of crap | |
RUN apt-get -qy update | |
RUN apt-get -qy install wget curl make git gpg python-pip python | |
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 | |
RUN apt-get -qy update | |
RUN apt-get -qy install yarn | |
# install godeb + golang | |
RUN mkdir '/tmp/godeb' | |
RUN wget 'https://godeb.s3.amazonaws.com/godeb-amd64.tar.gz' -O '/tmp/godeb/godeb-amd64.tar.gz' | |
RUN tar xvzf '/tmp/godeb/godeb-amd64.tar.gz' -C '/tmp/godeb' | |
RUN /tmp/godeb/godeb install | |
# install rust | |
RUN apt-get -qy install file | |
RUN curl https://sh.rustup.rs -sSf > /tmp/rustup.sh | |
RUN chmod +x /tmp/rustup.sh | |
RUN /tmp/rustup.sh -y | |
# rustfmt | |
ENV PATH=$PATH:/root/.cargo/bin | |
RUN rustup component add rustfmt-preview | |
# pulumi | |
RUN pip install pipenv | |
ENV GOPATH=/tmp/pk | |
ENV PATH=$PATH:/tmp/pk/bin | |
RUN go get 'github.com/golang/dep/cmd/dep' | |
RUN go get 'github.com/alecthomas/gometalinter' | |
RUN mkdir -p '$GOPATH/src/github.com/pulumi/' | |
RUN git clone 'https://github.com/pulumi/pulumi' "$GOPATH/src/github.com/pulumi/pulumi" | |
RUN cd "$GOPATH/src/github.com/pulumi/pulumi" && dep ensure && make ensure | |
RUN cd "$GOPATH/src/github.com/pulumi/pulumi" && make | |
RUN cd "$GOPATH/src/github.com/pulumi/pulumi" && make install | |
RUN git clone 'https://github.com/pulumi/pulumi-kubernetes' "$GOPATH/src/github.com/pulumi/pulumi-kubernetes" | |
RUN bash -c "\ | |
cd /tmp/pk/src/github.com/pulumi/pulumi-kubernetes/; \ | |
git fetch origin +refs/pull/85/merge; \ | |
git checkout FETCH_HEAD" | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment