-
Notifications
You must be signed in to change notification settings - Fork 33
Expand file tree
/
Copy pathDockerfile.centos
More file actions
29 lines (23 loc) · 949 Bytes
/
Dockerfile.centos
File metadata and controls
29 lines (23 loc) · 949 Bytes
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
# build docker image
# > docker build -t cybermiles/travis:centos -f Dockerfile.centos .
# initialize:
# > docker run --rm -v $HOME/.travis:/travis cybermiles/travis:centos node init --home /travis
# node start:
# > docker run --rm -v $HOME/.travis:/travis -p 26657:26657 -p 8545:8545 cybermiles/travis:centos node start --home /travis
FROM cybermiles/travis-build:centos
# libeni
WORKDIR /app/lib
ENV ENI_LIBRARY_PATH=/app/lib
ENV LD_LIBRARY_PATH=/app/lib
RUN mkdir -p libeni \
&& wget https://github.com/CyberMiles/libeni/releases/download/v1.3.7/libeni-1.3.7_centos-7.tgz -P libeni \
&& tar zxvf libeni/*.tgz -C libeni \
&& cp libeni/*/lib/* . && rm -rf libeni
# travis
WORKDIR /go/src/github.com/CyberMiles/travis
# copy travis source code from local
ADD . .
RUN ENI_LIB=$ENI_LIBRARY_PATH make build && cp build/travis /app/ && cd /app && sha256sum travis > travis.sha256
WORKDIR /app
EXPOSE 8545 26656 26657
ENTRYPOINT ["./travis"]