forked from javaronok/rdb-docker
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
39 lines (32 loc) · 1.38 KB
/
Copy pathDockerfile
File metadata and controls
39 lines (32 loc) · 1.38 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
FROM centos:6.6
MAINTAINER Dmitriy Gorchakov "dmitry.gorchakov@red-soft.ru"
ARG RELEASE=3.0.3
ARG BUILD=88
ARG ARCH=x86_64
ARG RELEASE_URL=http://builds.red-soft.biz/release_hub/rdb30/$RELEASE.$BUILD/download/red-database:linux-$ARCH:$RELEASE.$BUILD:tar.gz
WORKDIR /
RUN yum install -y libtommath libicu tar \
&& mkdir -p /tmp/RedDatabase \
&& mkdir -p /opt/RedDatabase \
&& echo "URL: $RELEASE_URL" \
&& curl -s -L -o /tmp/rdb.tar.gz -O "$RELEASE_URL" \
&& tar -xf /tmp/rdb.tar.gz -C /tmp/RedDatabase \
&& rm -rf /tmp/rdb.tar.gz \
&& cp -r /tmp/RedDatabase/RedDatabase-$RELEASE.$BUILD-$ARCH/. /opt/RedDatabase \
&& rm -rf /tmp/RedDatabase \
&& touch /opt/RedDatabase/firebird.log \
&& sed -i -e 's/^#RemoteFileOpenAbility.*0$/RemoteFileOpenAbility = 1/' /opt/RedDatabase/firebird.conf \
&& sed -i -e 's/^#UserManager = Srp$/UserManager = Legacy_UserManager/' /opt/RedDatabase/firebird.conf \
&& sed -i -e 's/^#WireCrypt = .*/WireCrypt = Disabled/' /opt/RedDatabase/firebird.conf \
&& sed -i -e '/^#AuthClient.*#Windows clients$/a\AuthClient = Legacy_Auth, Srp, WinSspi' /opt/RedDatabase/firebird.conf
ADD SYSDBA.password /opt/RedDatabase
ADD docker-entrypoint.sh /
ADD alias.py /
VOLUME /data
ENV SERVER_MODE=Super
ENV AUTH_SERVER=Legacy_Auth
ENV REMOTE_AUX_PORT=6001
EXPOSE 3050/tcp
EXPOSE 6000-7000/tcp
ENTRYPOINT ["/docker-entrypoint.sh"]
CMD ["tail -f /opt/RedDatabase/firebird.log"]