Dockerfile 1.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869
  1. FROM registry.access.redhat.com/ubi8/ubi as base-ubi-8
  2. LABEL description="Hue Project https://github.com/cloudera/hue"
  3. # Set the environment variable
  4. ENV NAME="basehue"
  5. # Required libraries for running Hue
  6. RUN set -eux; \
  7. yum install -y \
  8. bzip2-devel \
  9. curl \
  10. cyrus-sasl \
  11. cyrus-sasl-devel \
  12. cyrus-sasl-gssapi \
  13. cyrus-sasl-plain \
  14. gettext \
  15. gmp \
  16. java-1.8.0-openjdk-devel \
  17. krb5-devel \
  18. krb5-libs \
  19. krb5-workstation \
  20. libffi-devel \
  21. libxml2-devel \
  22. libxslt-devel \
  23. ncurses-devel \
  24. nmap-ncat \
  25. procps-ng \
  26. python38 \
  27. python38-devel \
  28. rsync \
  29. openldap-devel \
  30. openssl \
  31. openssl-devel \
  32. sqlite-devel \
  33. sudo \
  34. which \
  35. xmlsec1 \
  36. xmlsec1-openssl \
  37. zlib-devel
  38. # Install redis
  39. RUN set -eux; \
  40. dnf install -y gcc make && \
  41. curl -O http://download.redis.io/redis-stable.tar.gz && \
  42. tar xzf redis-stable.tar.gz && \
  43. cd redis-stable && \
  44. make && \
  45. make install && \
  46. cd .. && \
  47. rm -rf redis-stable redis-stable.tar.gz && \
  48. dnf clean all && \
  49. rm -rf /var/cache/yum
  50. RUN set -eux; \
  51. /usr/bin/pip3.8 install supervisor \
  52. && curl -s https://files.pythonhosted.org/packages/45/78/4621eb7085162bc4d2252ad92af1cc5ccacbd417a50e2ee74426331aad18/psycopg2_binary-2.9.3-cp38-cp38-musllinux_1_1_x86_64.whl -o /tmp/psycopg2_binary-2.9.3-cp38-cp38-musllinux_1_1_x86_64.whl \
  53. && dnf install -y https://download.postgresql.org/pub/repos/yum/reporpms/EL-8-x86_64/pgdg-redhat-repo-latest.noarch.rpm \
  54. && yum install -y postgresql15 \
  55. && curl -sL https://rpm.nodesource.com/setup_14.x | bash - \
  56. && yum install -y nodejs \
  57. && yum clean all -y \
  58. && rm -rf /var/cache/yum
  59. # kubernetes pod health check
  60. COPY healthz.sh /
  61. RUN chmod +x /healthz.sh
  62. CMD ["/bin/bash"]