forked from hyperhq/hypercli
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile.qa
More file actions
42 lines (32 loc) · 1.14 KB
/
Dockerfile.qa
File metadata and controls
42 lines (32 loc) · 1.14 KB
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
33
34
35
36
37
38
39
40
41
42
FROM centos:7.3.1611
#This Dockerfile is used for autotest hypercli
#REF: integration-cli/README.md
##########################################################################
RUN yum install -y\
automake\
gcc\
wget\
time\
git
## Install Go
ENV GO_VERSION 1.8.3
RUN wget http://golangtc.com/static/go/${GO_VERSION}/go${GO_VERSION}.linux-amd64.tar.gz
#RUN wget http://storage.googleapis.com/golang/go${GO_VERSION}.linux-amd64.tar.gz
RUN tar -xzf go${GO_VERSION}.linux-amd64.tar.gz -C /usr/local
## Env
ENV PATH /go/bin:/usr/local/go/bin:$PATH
ENV GOPATH /go:/go/src/github.com/hyperhq/hypercli/integration-cli/vendor:/go/src/github.com/hyperhq/hypercli/vendor
ENV HYPER_CONFIG=/root/.hyper
ENV DOCKER_REMOTE_DAEMON=1
ENV DOCKER_CERT_PATH=fixtures/hyper_ssl
ENV DOCKER_TLS_VERIFY=
ENV DOCKER_HOST="tcp://us-west-1.hyper.sh:443"
## if BRANCH start with '#', then it means PR number, otherwise it means branch name
ENV BRANCH="master"
ENV ACCESS_KEY=
ENV SECRET_KEY=
ENV REGION=
RUN mkdir -p /go/src/github.com/hyperhq
WORKDIR /go/src/github.com/hyperhq
ADD hack/generate-hyper-conf-qa.sh /generate-hyper-conf-qa.sh
ENTRYPOINT ["/generate-hyper-conf-qa.sh"]