Skip to content

Commit cf5736d

Browse files
authored
Add entrypoint and adjusting directory permissions (#804)
* Adding an entry_point.sh, fixes #801, fixes #800 and fixes #797 * Using same commands from #787 (Support Arbitrary User IDs for OpenShift) for new directories used by Supervisor. Fixes #802
1 parent fd963d2 commit cf5736d

File tree

2 files changed

+8
-3
lines changed

2 files changed

+8
-3
lines changed

Base/Dockerfile

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ RUN mkdir -p /opt/bin
5858
#======================================
5959
# Add Grid check script
6060
#======================================
61-
COPY check-grid.sh /opt/bin/
61+
COPY check-grid.sh entry_point.sh /opt/bin/
6262
RUN chmod +x /opt/bin/check-grid.sh
6363

6464
#======================================
@@ -83,7 +83,9 @@ RUN sudo mkdir -p /opt/selenium \
8383
&& sudo mkdir -p /var/run/supervisor/ \
8484
&& sudo mkdir -p /var/log/supervisor/ \
8585
&& sudo chown -R seluser:seluser /var/run/supervisor \
86-
&& sudo chown -R seluser:seluser /var/log/supervisor
86+
&& sudo chown -R seluser:seluser /var/log/supervisor \
87+
&& sudo chgrp -R 0 /var/run/supervisor /var/log/supervisor \
88+
&& sudo chmod -R g=u /var/run/supervisor /var/log/supervisor
8789

8890

89-
CMD ["/usr/bin/supervisord", "--configuration", "/etc/supervisord.conf"]
91+
CMD ["/opt/bin/entry_point.sh"]

Base/entry_point.sh

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
#!/usr/bin/env bash
2+
3+
/usr/bin/supervisord --configuration /etc/supervisord.conf

0 commit comments

Comments
 (0)