mirror of
https://github.com/ggogel/seafile-containerized.git
synced 2025-09-01 18:29:12 +00:00
seafile add start.sh
This commit is contained in:
parent
469afcc029
commit
2a25193807
2 changed files with 9 additions and 8 deletions
|
@ -28,19 +28,12 @@ future mysqlclient \
|
||||||
COPY scripts /scripts
|
COPY scripts /scripts
|
||||||
RUN chmod u+x /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
|
# Seafile
|
||||||
WORKDIR /opt/seafile
|
WORKDIR /opt/seafile
|
||||||
|
|
||||||
# For using TLS connection to LDAP/AD server with docker-ce.
|
# 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
|
RUN find /opt/seafile/ \( -name "liblber-*" -o -name "libldap-*" -o -name "libldap_r*" -o -name "libsasl2.so*" \) -delete
|
||||||
|
|
||||||
|
|
||||||
EXPOSE 8080 8082 8001
|
EXPOSE 8080 8082 8001
|
||||||
|
|
||||||
|
CMD ["/sbin/my_init", "--", "/scripts/start.sh"]
|
||||||
CMD ["/sbin/my_init", "--", "/scripts/start.py"]
|
|
||||||
|
|
8
seafile/scripts/start.sh
Normal file
8
seafile/scripts/start.sh
Normal 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
|
Loading…
Add table
Reference in a new issue