-
Notifications
You must be signed in to change notification settings - Fork 18
/
Copy pathDockerfile
40 lines (26 loc) · 1.04 KB
/
Dockerfile
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
FROM centos:7
ARG GOVERSION=1.17
RUN yum -y update
RUN yum install -y git gcc make cmake unzip python3-pip python3-devel
RUN yum install -y yum-utils device-mapper-persistent-data lvm2
RUN yum-config-manager --add-repo https://download.docker.com/linux/centos/docker-ce.repo
RUN yum install -y docker-ce-18.09.1
RUN git config --global user.email "[email protected]" \
&& git config --global user.name "Test Tarantool"
VOLUME /var/lib/docker
ENV PORT=2375
ADD wrapdocker /usr/local/bin/wrapdocker
RUN chmod +x /usr/local/bin/wrapdocker
RUN curl -O -L https://dl.google.com/go/go${GOVERSION}.linux-amd64.tar.gz \
&& tar -C /usr/local -xzf /go${GOVERSION}.linux-amd64.tar.gz
ENV PATH=${PATH}:/usr/local/go/bin
ENV GOPATH=/home/go
ENV PATH=$PATH:${GOPATH}/bin
RUN go get -u -d github.com/magefile/mage \
&& cd $GOPATH/src/github.com/magefile/mage \
&& go run bootstrap.go
COPY test/requirements.txt /tmp/test/
RUN pip3 install --user -r /tmp/test/requirements.txt
EXPOSE 2375
ENTRYPOINT [ "/usr/local/bin/wrapdocker" ]
CMD ["/bin/bash" , "-l"]