File tree Expand file tree Collapse file tree 6 files changed +26
-10
lines changed
codeserver/ubi9-python-3.9 Expand file tree Collapse file tree 6 files changed +26
-10
lines changed Original file line number Diff line number Diff line change @@ -60,13 +60,13 @@ ENV NGINX_VERSION=1.24 \
60
60
61
61
# Modules does not exist
62
62
RUN yum install -y https://download.fedoraproject.org/pub/epel/epel-release-latest-9.noarch.rpm && \
63
- INSTALL_PKGS="bind-utils nginx nginx-mod-stream nginx-mod-http-perl fcgiwrap initscripts chkconfig" && \
63
+ INSTALL_PKGS="bind-utils nginx nginx-mod-stream nginx-mod-http-perl fcgiwrap initscripts chkconfig supervisor " && \
64
64
yum install -y --setopt=tsflags=nodocs $INSTALL_PKGS && \
65
65
rpm -V $INSTALL_PKGS && \
66
- # spawn-fcgi is not in epel9 \
67
- rpm -i --nodocs https://archives.fedoraproject.org/pub/archive/fedora/linux/releases/37/Everything/x86_64/os/Packages/s/spawn-fcgi-1.6.3-23.fc37.x86_64.rpm && \
68
66
yum -y clean all --enablerepo='*'
69
67
68
+ COPY --chown=1001:0 supervisord/supervisord.conf /etc/supervisor/conf.d/supervisord.conf
69
+
70
70
# Copy extra files to the image.
71
71
COPY nginx/root/ /
72
72
Original file line number Diff line number Diff line change 4
4
SCRIPT_DIR=$( dirname -- " $0 " )
5
5
source ${SCRIPT_DIR} /utils/* .sh
6
6
7
- # Start nginx and fastcgiwrap
7
+ # Start nginx and supervisord
8
8
run-nginx.sh &
9
- spawn-fcgi -s /var/run/fcgiwrap.socket -M 766 /usr/sbin/fcgiwrap
9
+ /usr/bin/supervisord -c /etc/supervisor/conf.d/supervisord.conf &
10
10
11
11
# Add .bashrc for custom promt if not present
12
12
if [ ! -f " /opt/app-root/src/.bashrc" ]; then
Original file line number Diff line number Diff line change
1
+ [supervisord]
2
+ nodaemon=true
3
+
4
+ [program:fcgiwrap]
5
+ command=/usr/sbin/fcgiwrap -s unix:/var/run/fcgiwrap.socket
6
+ autostart=true
7
+ autorestart=true
8
+ redirect_stderr=true
Original file line number Diff line number Diff line change @@ -73,14 +73,14 @@ ENV NGINX_VERSION=1.24 \
73
73
74
74
# Modules does not exist
75
75
RUN yum -y module enable nginx:$NGINX_VERSION && \
76
- INSTALL_PKGS="nss_wrapper bind-utils gettext hostname nginx nginx-mod-stream nginx-mod-http-perl fcgiwrap initscripts chkconfig" && \
76
+ INSTALL_PKGS="nss_wrapper bind-utils gettext hostname nginx nginx-mod-stream nginx-mod-http-perl fcgiwrap initscripts chkconfig supervisor " && \
77
77
yum install -y --setopt=tsflags=nodocs $INSTALL_PKGS && \
78
78
rpm -V $INSTALL_PKGS && \
79
79
nginx -v 2>&1 | grep -qe "nginx/$NGINX_VERSION\. " && echo "Found VERSION $NGINX_VERSION" && \
80
- # spawn-fcgi is not in epel9
81
- rpm -i --nodocs https://archives.fedoraproject.org/pub/archive/fedora/linux/releases/37/Everything/x86_64/os/Packages/s/spawn-fcgi-1.6.3-23.fc37.x86_64.rpm && \
82
80
yum -y clean all --enablerepo='*'
83
81
82
+ COPY --chown=1001:0 supervisord/supervisord.conf /etc/supervisor/conf.d/supervisord.conf
83
+
84
84
# Copy extra files to the image.
85
85
COPY nginx/root/ /
86
86
Original file line number Diff line number Diff line change 4
4
SCRIPT_DIR=$( dirname -- " $0 " )
5
5
source ${SCRIPT_DIR} /utils/* .sh
6
6
7
- # Start nginx and fastcgiwrap
7
+ # Start nginx and supervisord
8
8
run-nginx.sh &
9
- spawn-fcgi -s /var/run/fcgiwrap.socket -M 766 /usr/sbin/fcgiwrap
9
+ /usr/bin/supervisord -c /etc/supervisor/conf.d/supervisord.conf &
10
10
11
11
12
12
# Add .bashrc for custom promt if not present
Original file line number Diff line number Diff line change
1
+ [supervisord]
2
+ nodaemon=true
3
+
4
+ [program:fcgiwrap]
5
+ command=/usr/sbin/fcgiwrap -s unix:/var/run/fcgiwrap.socket
6
+ autostart=true
7
+ autorestart=true
8
+ redirect_stderr=true
You can’t perform that action at this time.
0 commit comments