OpenShift compatible Images

Поиск
Список
Период
Сортировка
От Volker Mauel
Тема OpenShift compatible Images
Дата
Msg-id CAE_bwCsMk18VH9md_sXdZJS41wmeLnGUnBxW+ofS2k3gBfQ8nw@mail.gmail.com
обсуждение исходный текст
Список pgadmin-hackers
Hey all,

Due to the more strict nature of OpenShifts handling of security contexts, the currently released image does not work out of the box on OpenShift.

I'd like to suggest either providing an OpenShift-compatible image on its own, or modify the default image just slightly to accommodate for the necessary changes in OpenShift.

This is what I'm currently using:

FROM dpage/pgadmin4:latest

#Run the following as root-user to set permissions etc
USER 0

# OpenShift-Compatibility
RUN     mkdir -p /var/lib/pgadmin && \
        chown 1001:0 /var/lib/pgadmin && \
        touch /pgadmin4/config_distro.py && \
        chown 1001:0 /pgadmin4/config_distro.py && \
        setcap CAP_NET_BIND_SERVICE=+eip /usr/bin/python3.9 && \
        echo "pgadmin ALL = NOPASSWD: /usr/sbin/postfix start" > /etc/sudoers.d/postfix && \
        mkdir -p /var/lib/pgadmin && \
        chown 1001:0 /var/lib/pgadmin && \
        chmod 700 /var/lib/pgadmin && \
        mkdir -p /var/log/pgadmin && \
        chown 1001:0 /var/log/pgadmin && \
        touch /pgadmin4/config_distro.py && \
        chown 1001:0 /pgadmin4/config_distro.py && \
        chmod 770 /pgadmin4/config_distro.py

USER 1001

# Finish up
VOLUME /var/lib/pgadmin
EXPOSE 8080 8443

Feel free to modify it to your liking, I hope this helps.

- Volker Mauel

В списке pgadmin-hackers по дате отправления:

Предыдущее
От: Jan Birk
Дата:
Сообщение: Translations
Следующее
От: "emuser20140816@gmail.com"
Дата:
Сообщение: Re: Translators: Release next week