-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
59 lines (45 loc) · 1.57 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
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
## 1. SETUP ####################################################
# FROM <image>[:<tag>] [AS <name>]
# COPY [--chown=<user>:<group>] <src>... <dest>
# WORKDIR <path/to/workdir>
FROM library/ubuntu:16.04
COPY . /usr/src/aion
WORKDIR /usr/src/aion
## 2. BUILD ####################################################
# RUN <command>
# ENV <key> <value>
# EXPOSE <port> [<port>/<protocol>...]
RUN apt-get update && apt-get install -y \
git \
g++ \
vim \
wget \
cmake \
llvm-4.0 \
lsb-release \
libjsoncpp1 \
libboost1.58-all-dev \
&& rm -rf /var/lib/apt/lists/*
RUN wget -nc --no-check-certificate --no-cookies --header "Cookie: oraclelicense=accept-securebackup-cookie" "http://download.oracle.com/otn-pub/java/jdk/10.0.2+13/19aef61b38124481863b1413dce1855f/jdk-10.0.2_linux-x64_bin.tar.gz"
RUN wget "http://www.us.apache.org/dist/ant/binaries/apache-ant-1.10.5-bin.tar.gz"
RUN tar -xvf jdk-10.0.2_linux-x64_bin.tar.gz
RUN tar -xvf apache-ant-1.10.5-bin.tar.gz
ENV JAVA_HOME=/usr/src/aion/jdk-10.0.2
ENV JAVA_TOOL_OPTIONS=-Dfile.encoding=UTF8
ENV ANT_HOME=/usr/src/aion/apache-ant-1.10.5
ENV PATH="$ANT_HOME/bin:$JAVA_HOME/bin:$PATH"
RUN git clone --recursive https://github.com/aionnetwork/aion
WORKDIR /usr/src/aion/aion
RUN git fetch
RUN git checkout master-pre-merge
WORKDIR /usr/src/aion/aion/aion_fastvm
RUN git checkout master
WORKDIR /usr/src/aion/aion/aion_api
RUN git checkout master
WORKDIR /usr/src/aion/aion
RUN ant
RUN cp -r pack/config .
RUN cp -r pack/rt .
## 3. EXECUTE ##################################################
# CMD <command> <param1> <param2>
CMD ./aion.sh