try: bash entrypoint

This commit is contained in:
ShiKhu 2021-07-21 00:21:18 +08:00
parent 7a809495db
commit f81d24c35f
2 changed files with 5 additions and 3 deletions

View file

@ -47,12 +47,11 @@ RUN wget https://raw.githubusercontent.com/ua-parser/uap-core/master/regexes.yam
COPY --from=build /root/bin /root/bin
#ENTRYPOINT /root/bin/http
ENV TINI_VERSION v0.19.0
ADD https://github.com/krallin/tini/releases/download/${TINI_VERSION}/tini /tini
RUN chmod +x /tini
ENTRYPOINT ["/tini", "--"]
CMD ./entrypoint.sh
CMD for name in alerts assets db ender http integrations sink storage;do nohup bin/$name &> /tmp/${name}.log ; done
# CMD for name in alerts assets db ender http integrations sink storage;do nohup bin/$name &> /tmp/${name}.log ; done

3
backend/entrypoint.sh Executable file
View file

@ -0,0 +1,3 @@
#!/bin/bash
for name in alerts assets db ender http integrations sink storage;do nohup bin/$name &> /tmp/${name}.log ; done