Public Repository

Last pushed: a year ago
Short Description
golang + glide build environment uses ubuntu 14.04 + glide 0.10.2
Full Description
FROM ubuntu:14.04

#to build this dockerfile first ensure that it is named "Dockerfile"
#make sure that a directory "resources" that contains the file "go-wrapper" is also present in the same directory as "Dockerfile"
#docker build -t {Your dockerhub username}/{dockerhub repo name}:{tag} .

#wonga18$ docker run -v /Users/wonga18/go/src/github.com/akiraw/libstorage/:/go/src/github.com/emccode/libstorage/ -w=/go/src/github.com/emccode/libstorage/ akiraw95/ubuntugoglide

RUN apt-get update && apt-get install -y --no-install-recommends software-properties-common
RUN add-apt-repository ppa:masterminds/glide

# gcc for cgo
RUN apt-get update && apt-get install -y --no-install-recommends \
        git \
        curl \
        g++ \
        gcc \
        libc6-dev \
        make \
        glide \
    && rm -rf /var/lib/apt/lists/*

ENV GOLANG_VERSION 1.6.2
ENV GOLANG_DOWNLOAD_URL https://golang.org/dl/go$GOLANG_VERSION.linux-amd64.tar.gz
ENV GOLANG_DOWNLOAD_SHA256 e40c36ae71756198478624ed1bb4ce17597b3c19d243f3f0899bb5740d56212a

RUN curl -fsSL "$GOLANG_DOWNLOAD_URL" -o golang.tar.gz \
    && echo "$GOLANG_DOWNLOAD_SHA256  golang.tar.gz" | sha256sum -c - \
    && tar -C /usr/local -xzf golang.tar.gz \
    && rm golang.tar.gz

ENV GOPATH /go
ENV PATH $GOPATH/bin:/usr/local/go/bin:$PATH

RUN mkdir -p "$GOPATH/src" "$GOPATH/bin" && chmod -R 777 "$GOPATH"
WORKDIR $GOPATH

ADD docker_resources/go-wrapper /usr/local/bin/

CMD ["/bin/bash", "-c", "make clean; make"]
Docker Pull Command
Owner
akiraw95

Comments (0)