Add cqpser.init in docker entrypoint

This commit is contained in:
Stephan Porada 2019-11-07 11:21:17 +01:00
parent 3411c66fb6
commit 36762efec4
3 changed files with 8 additions and 2 deletions

View File

@ -38,5 +38,5 @@ RUN echo "yes" | cpan HTML::Entities && \
COPY foo.sh /usr/local/bin/
ENTRYPOINT ["cqpserver"]
ENTRYPOINT ["docker-entrypoint.sh"]
#CMD ["-h"]

View File

@ -2,7 +2,6 @@ version: '3'
services:
cqpserver:
command: ["-I", "/root/cqpserver.init"]
image: pjentsch/cqpserver
ports:
- 4877:4877

7
docker-entrypoint.sh Executable file
View File

@ -0,0 +1,7 @@
#!/bin/bash
touch /root/cqpserver.init
echo "host *;" >> /root/cqpserver.init
echo "" >> /root/cqpserver.init
echo 'user opaque "opaque";' >> /root/cqpserver.init
cqpserver -I /root/cqpserver.init