mirror of https://github.com/MISP/misp-docker
Move wait-for-it.sh to $PATH and make executable.
Given that this script is used internally as part of the docker image, it makes sense to ensure it is added to the path directly within the Dockerfile itself, rather than from the docker-compose.yml file. It also needs to be made executable, otherwise the entrypoint command within the docker-compose.yml file will not be able to run it.
parent
b1b05107a7
commit
488b478101
|
@ -71,6 +71,9 @@ RUN ( \
|
||||||
# Add run script
|
# Add run script
|
||||||
# Trigger to perform first boot operations
|
# Trigger to perform first boot operations
|
||||||
ADD run.sh /run.sh
|
ADD run.sh /run.sh
|
||||||
|
# Ensure that wait for it is included in the path and executable
|
||||||
|
ADD wait-for-it.sh /usr/local/bin/wait-for-it.sh
|
||||||
|
RUN chmod +x /usr/local/bin/wait-for-it.sh
|
||||||
RUN mv /etc/apache2/sites-available/misp-ssl.conf /etc/apache2/sites-available/misp-ssl.conf.bak
|
RUN mv /etc/apache2/sites-available/misp-ssl.conf /etc/apache2/sites-available/misp-ssl.conf.bak
|
||||||
ADD misp-ssl.conf /etc/apache2/sites-available/misp-ssl.conf
|
ADD misp-ssl.conf /etc/apache2/sites-available/misp-ssl.conf
|
||||||
RUN chmod 0755 /run.sh && touch /.firstboot.tmp
|
RUN chmod 0755 /run.sh && touch /.firstboot.tmp
|
||||||
|
|
Loading…
Reference in New Issue