seafile add start.sh

This commit is contained in:
Gerrit Gogel 2021-01-22 22:27:05 +01:00
parent 469afcc029
commit 2a25193807
2 changed files with 9 additions and 8 deletions

View file

@ -28,19 +28,12 @@ future mysqlclient \
COPY scripts /scripts
RUN chmod u+x /scripts/*
RUN mkdir -p /etc/my_init.d && \
rm -f /etc/my_init.d/* && \
cp /scripts/create_data_links.sh /etc/my_init.d/01_create_data_links.sh
# Seafile
WORKDIR /opt/seafile
# For using TLS connection to LDAP/AD server with docker-ce.
RUN find /opt/seafile/ \( -name "liblber-*" -o -name "libldap-*" -o -name "libldap_r*" -o -name "libsasl2.so*" \) -delete
EXPOSE 8080 8082 8001
CMD ["/sbin/my_init", "--", "/scripts/start.py"]
CMD ["/sbin/my_init", "--", "/scripts/start.sh"]

8
seafile/scripts/start.sh Normal file
View file

@ -0,0 +1,8 @@
#!/bin/bash
/scripts/create_data_links.sh
mkdir -p /opt/seafile/seafile-server-latest/runtime
socat -v -d -d TCP-LISTEN:8001,fork,forever UNIX:/opt/seafile/seafile-server-latest/runtime/seafile.sock,forever &
python3 /scripts/start.py