Skip to content

Instantly share code, notes, and snippets.

@jbq
Created January 12, 2018 11:06
Show Gist options
  • Save jbq/d39f6a7f72695f9774c3b138794b775d to your computer and use it in GitHub Desktop.
Save jbq/d39f6a7f72695f9774c3b138794b775d to your computer and use it in GitHub Desktop.
Build saml2aws in a Dockerfile (useless)
RUN apt-get update && apt-get install -y unzip
ARG GO_FILE=go1.9.linux-amd64.tar.gz
RUN cd /tmp; curl -O https://storage.googleapis.com/golang/$GO_FILE
RUN cd /tmp; tar -xvf $GO_FILE; mv go /usr/local; rm -f $GO_FILE
ENV PATH $PATH:/usr/local/go/bin:/go/bin
ENV GOROOT /usr/local/go
ENV GOPATH /go
ARG BASEDIR=$GOPATH/src/github.com/versent
RUN mkdir -p $BASEDIR; cd $BASEDIR; git clone https://github.com/Versent/saml2aws.git
RUN cd $BASEDIR/saml2aws; make deps
RUN cd $BASEDIR/saml2aws; make install
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment