-
Notifications
You must be signed in to change notification settings - Fork 1
/
Dockerfile.local
33 lines (26 loc) · 1.06 KB
/
Dockerfile.local
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
##
# Usage: docker build -f Dockerfile.local -t ppc64_gc .
FROM ppc64le/ubuntu:16.04
RUN apt-get update && apt-get -y install git gcc curl bzip2
# !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
# 1 . Copy your go directory (containing go/src)
# to this directory. Since the docker build process
# runs as root, symlinking is not allowed.
# rsync -rl /home/christy/work/src/github.com/golang/go .
# - OR -
# 2. copy this Dockerfile.local and the go-linux-ppc64le-bootstrap.tbz to your
# go env, and change the following from 'go' to '.'
ENV LOCAL_GO_SRC_PATH go
# !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
# Build from your local go source
WORKDIR /tmp
COPY go-linux-ppc64le-bootstrap.tbz /tmp/
RUN tar -xvf go-linux-ppc64le-bootstrap.tbz
ENV GOROOT_BOOTSTRAP /tmp/go-linux-ppc64le-bootstrap
RUN mkdir -p /go/src/go.googlesource.com
COPY $LOCAL_GO_SRC_PATH /go/src/go.googlesource.com/go
WORKDIR /go/src/go.googlesource.com/go/src/
RUN ./make.bash
RUN rm -rf /tmp/go-linux-ppc64le-bootstrap*
ENV GOBIN /go/src/go.googlesource.com/go/bin
ENV PATH /go/src/go.googlesource.com/go/bin:$PATH