-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathDockerfile
62 lines (55 loc) · 2.79 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
60
61
62
FROM alpine:3.7
LABEL title="openkore" \
maintainer="Carlos Milán Figueredo" \
email="[email protected]" \
version="{{TAG}}" \
url1="https://calnus.com" \
url2="http://www.hispamsx.org" \
bbs="telnet://bbs.hispamsx.org" \
twitter="@cmilanf" \
thanksto1="Alberto Marcos González" \
thanksto2="Álvaro Marcos González" \
thanksto3="Beatriz Sebastián Peña"
LABEL OK_IP="IP address of the Ragnarok Online server" \
OK_USERNAME="Account username" \
OK_PWD="Account password" \
OK_CHAR="Character slot. Default: 1" \
OK_USERNAMEMAXSUFFIX="Maximum number of suffixes to generate with the username." \
MYSQL_HOST="Hostname of the MySQL database. Ex: calnus-beta.mysql.database.azure.com." \
MYSQL_DB="Name of the MySQL database." \
MYSQL_USER="Database username for authentication." \
MYSQL_PWD="Password for authenticating with database. WARNING: it will be visible from Azure Portal."
RUN mkdir -p /opt/openkore \
&& apk update \
&& apk add --no-cache git build-base g++ perl perl-dev perl-time-hires perl-compress-raw-zlib \
readline readline-dev ncurses-libs ncurses-terminfo-base ncurses-dev python2 curl curl-dev \
nano dos2unix mysql-client bind-tools \
&& git clone https://github.com/openkore/openkore.git /opt/openkore \
&& ln -s /usr/lib/libncurses.so /usr/lib/libtermcap.so \
&& ln -s /usr/lib/libncurses.a /usr/lib/libtermcap.a \
&& cd /opt/openkore/ \
&& make \
&& mv /opt/openkore/tables/servers.txt /opt/openkore/tables/servers.txt.bak \
&& mkdir /opt/openkore/control/class/ \
&& mkdir -p /opt/openkore/plugins/azureCognitive/Azure/
RUN apk add --no-cache wget perl-lwp-protocol-https perl-json perl-digest-hmac perl-xml-libxml \
&& curl -L https://cpanmin.us | perl - -M https://cpan.metacpan.org -n REST::Client
COPY config/acolyte.txt /opt/openkore/control/class/acolyte.txt
COPY config/archer.txt /opt/openkore/control/class/archer.txt
COPY config/knight.txt /opt/openkore/control/class/knight.txt
COPY config/mage.txt /opt/openkore/control/class/mage.txt
COPY config/monk.txt /opt/openkore/control/class/monk.txt
COPY config/priest.txt /opt/openkore/control/class/priest.txt
COPY config/sage.txt /opt/openkore/control/class/sage.txt
COPY config/swordman.txt /opt/openkore/control/class/swordman.txt
COPY config/wizard.txt /opt/openkore/control/class/wizard.txt
COPY config/base.txt /opt/openkore/control/class/base.txt
COPY config/base-end.txt /opt/openkore/control/class/base-end.txt
COPY plugin/AzureCognitive.pl /opt/openkore/plugins/azureCognitive/
COPY plugin/Azure/StorageQueue.pm /opt/openkore/plugins/azureCognitive/Azure/
COPY recvpackets.txt /opt/openkore/tables/
COPY servers.txt /opt/openkore/tables/
COPY docker-entrypoint.sh /usr/local/bin/
ENTRYPOINT ["/usr/local/bin/docker-entrypoint.sh"]
WORKDIR /opt/openkore
CMD ["/opt/openkore/openkore.pl"]