Commit existing code
This commit is contained in:
22
Dockerfile
Normal file
22
Dockerfile
Normal file
@@ -0,0 +1,22 @@
|
||||
FROM debian:jessie
|
||||
|
||||
#ENV UID=1000
|
||||
#ENV GID=1000
|
||||
#RUN groupadd -g $GID -o seadrive
|
||||
#RUN useradd -m -u $UID -g $GID -o -s /bin/bash seadrive
|
||||
|
||||
ENV DEBIAN_FRONTEND noninteractive
|
||||
|
||||
COPY assets/seafile.list /etc/apt/sources.list.d/
|
||||
COPY assets/supervisord.conf /etc/supervisor/
|
||||
COPY entrypoint.sh /
|
||||
|
||||
RUN apt-key adv \
|
||||
--keyserver hkp://keyserver.ubuntu.com:80 \
|
||||
--recv-keys 8756C4F765C9AC3CB6B85D62379CE192D401AB61
|
||||
RUN apt-get update ;\
|
||||
apt-get install -o Dpkg::Options::="--force-confold" -y seafile-cli supervisor
|
||||
|
||||
RUN mkdir /seafile; mkdir /volume
|
||||
|
||||
ENTRYPOINT ["/bin/bash", "/entrypoint.sh"]
|
||||
21
LICENSE.txt
Normal file
21
LICENSE.txt
Normal file
@@ -0,0 +1,21 @@
|
||||
MIT License
|
||||
|
||||
Copyright (c) 2019 flowgunso@gmail.com
|
||||
|
||||
Permission is hereby granted, free of charge, to any person obtaining a copy
|
||||
of this software and associated documentation files (the "Software"), to deal
|
||||
in the Software without restriction, including without limitation the rights
|
||||
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
||||
copies of the Software, and to permit persons to whom the Software is
|
||||
furnished to do so, subject to the following conditions:
|
||||
|
||||
The above copyright notice and this permission notice shall be included in all
|
||||
copies or substantial portions of the Software.
|
||||
|
||||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
||||
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
||||
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
||||
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
||||
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
||||
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
||||
SOFTWARE.
|
||||
1
assets/seafile.list
Normal file
1
assets/seafile.list
Normal file
@@ -0,0 +1 @@
|
||||
deb http://deb.seadrive.org jessie main
|
||||
5
assets/supervisord.conf
Normal file
5
assets/supervisord.conf
Normal file
@@ -0,0 +1,5 @@
|
||||
[supervisord]
|
||||
nodaemon=true
|
||||
|
||||
[unix_http_socket]
|
||||
file=/seafile/seafile-data/seafile.sock
|
||||
12
docker-compose.yml
Normal file
12
docker-compose.yml
Normal file
@@ -0,0 +1,12 @@
|
||||
version: "3.4"
|
||||
|
||||
services:
|
||||
seafile-sync:
|
||||
image: seafvol:latest
|
||||
environment:
|
||||
- SERVER=
|
||||
- USERNAME=
|
||||
- PASSWORD=
|
||||
- LIBRARY_ID=
|
||||
# - UID=
|
||||
# - GID=
|
||||
7
entrypoint.sh
Normal file
7
entrypoint.sh
Normal file
@@ -0,0 +1,7 @@
|
||||
#!/bin/bash
|
||||
|
||||
/usr/bin/seaf-cli init -c /ccnet -d /seafile
|
||||
/usr/bin/seaf-cli start -c /ccnet
|
||||
/usr/bin/seaf-cli sync -c /ccnet -u $USERNAME -p $PASSWORD -s $SERVER -l $LIBRARY_ID -d /volume
|
||||
sleep 10
|
||||
/usr/bin/supervisord
|
||||
Reference in New Issue
Block a user