Dockerfile 1.0 KB

1234567891011121314151617181920212223242526
  1. FROM centos:7.7.1908
  2. ENV LANG="en_US.UTF-8"
  3. VOLUME /data
  4. ENTRYPOINT ["/docker-entrypoint.sh"]
  5. EXPOSE 3050
  6. HEALTHCHECK --start-period=30s --interval=15s --timeout=5s --retries=2 CMD /healthcheck.sh
  7. RUN set -x && \
  8. yum install -y epel-release && \
  9. 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 && \
  10. yum install -y firebird-3.0.6.33328 icu && \
  11. mkdir -p /var/run/firebird && \
  12. chown firebird. /var/run/firebird && \
  13. chown firebird. /data && \
  14. yum clean all && \
  15. ln -fs /usr/share/zoneinfo/Europe/Moscow /etc/localtime
  16. COPY firebird.conf /etc/firebird/firebird.conf
  17. COPY docker-entrypoint.sh /docker-entrypoint.sh
  18. COPY healthcheck.sh /healthcheck.sh
  19. COPY libcluster.so /usr/lib64/firebird/plugins/
  20. COPY cluster.conf /usr/lib64/firebird/plugins/
  21. COPY libcrypto.so /usr/lib64/firebird/plugins/udr
  22. RUN set -x && \
  23. chmod +x /docker-entrypoint.sh && \
  24. chmod +x /healthcheck.sh
  25. CMD ["/usr/sbin/fbguard"]