|
@@ -1,26 +1,29 @@
|
|
FROM centos:7.7.1908
|
|
FROM centos:7.7.1908
|
|
ENV LANG="en_US.UTF-8"
|
|
ENV LANG="en_US.UTF-8"
|
|
VOLUME /data
|
|
VOLUME /data
|
|
-ENTRYPOINT ["/docker-entrypoint.sh"]
|
|
|
|
|
|
+ENTRYPOINT ["/entrypoint.sh"]
|
|
EXPOSE 3050
|
|
EXPOSE 3050
|
|
-HEALTHCHECK --start-period=30s --interval=15s --timeout=5s --retries=2 CMD /healthcheck.sh
|
|
|
|
|
|
+ARG APIKEY='AKCp8hyEoKgEqw7KkGsRGbVmyUdKeJupBHNYgShDHok1nqqNzx1zvoKq8QpZT9hUjp6rh3k37'
|
|
|
|
+
|
|
RUN set -x && \
|
|
RUN set -x && \
|
|
yum install -y epel-release && \
|
|
yum install -y epel-release && \
|
|
- curl https://copr.fedorainfracloud.org/coprs/makowski/firebird/repo/epel-7/makowski-firebird-epel-7.repo > /etc/yum.repos.d/makowski-firebird-epel-7.repo && \
|
|
|
|
|
|
+ curl https://copr.fedorainfracloud.org/coprs/makowski/firebird/repo/epel-7/makowski-firebird-epel-7.repo \
|
|
|
|
+ > /etc/yum.repos.d/makowski-firebird-epel-7.repo && \
|
|
yum install -y firebird-3.0.6.33328 icu && \
|
|
yum install -y firebird-3.0.6.33328 icu && \
|
|
|
|
+ curl -u provision:${APIKEY} "https://jcr.infoclinica.ru/artifactory/resources/fb3/libcrypto.so" \
|
|
|
|
+ --output /usr/lib64/firebird/plugins/udr/libcrypto.so && \
|
|
|
|
+ curl -u provision:${APIKEY} "https://jcr.infoclinica.ru/artifactory/resources/fb3/libcluster.so" \
|
|
|
|
+ --output /usr/lib64/firebird/plugins/libcrypto.so && \
|
|
mkdir -p /var/run/firebird && \
|
|
mkdir -p /var/run/firebird && \
|
|
chown firebird. /var/run/firebird && \
|
|
chown firebird. /var/run/firebird && \
|
|
chown firebird. /data && \
|
|
chown firebird. /data && \
|
|
- yum clean all && \
|
|
|
|
- ln -fs /usr/share/zoneinfo/Europe/Moscow /etc/localtime
|
|
|
|
-COPY firebird.conf /etc/firebird/firebird.conf
|
|
|
|
-COPY docker-entrypoint.sh /docker-entrypoint.sh
|
|
|
|
|
|
+ yum clean all
|
|
|
|
+
|
|
|
|
+
|
|
|
|
+COPY entrypoint.sh /entrypoint.sh
|
|
COPY healthcheck.sh /healthcheck.sh
|
|
COPY healthcheck.sh /healthcheck.sh
|
|
-COPY libcluster.so /usr/lib64/firebird/plugins/
|
|
|
|
-COPY cluster.conf /usr/lib64/firebird/plugins/
|
|
|
|
-COPY libcrypto.so /usr/lib64/firebird/plugins/udr
|
|
|
|
|
|
+
|
|
RUN set -x && \
|
|
RUN set -x && \
|
|
- chmod +x /docker-entrypoint.sh && \
|
|
|
|
|
|
+ chmod +x /entrypoint.sh && \
|
|
chmod +x /healthcheck.sh
|
|
chmod +x /healthcheck.sh
|
|
CMD ["/usr/sbin/fbguard"]
|
|
CMD ["/usr/sbin/fbguard"]
|
|
-
|
|
|