-
Notifications
You must be signed in to change notification settings - Fork 5
/
Containerfile
executable file
·66 lines (59 loc) · 1.72 KB
/
Containerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
# **Description:**
#
# **Source:** https://bitbucket.org/xcgd-team/seafile-client
#
# After a lot of frustation, I've taken the solution from: https://bitbucket.org/xcgd-team/seafile-client
# and fiddled around with it for my needs.
#
# **Running:**
#
# ```sh
# mkdir ~/seafile
#
# podman run \
# -d \
# --name seafile-client \
# -v ~/seafile:/data \
# --restart=always \
# cdrage/seafile-client
# ```
#
# The seaf-cli is accessible via:
#
# ```sh
# docker exec seafile-client /usr/bin/seaf-cli
# ```
#
# In order to "add" a folder, you must sync it via the "sync" command line action
#
# ```sh
# # change "foobar" to your folder
# # mkdir must be created first in order to create proper permissions
# # Due to issues with python + passing in a password, you must
# # exec into the container to add your initial folder.
# mkdir -p ~/seafile/foobar
# docker exec -it seafile-client bash
# /usr/bin/seaf-cli sync -l YOUR_LIBRARY_ID -s YOUR_SEAFILE_SERVER -d /data/foobar -u YOUR_EMAIL -p YOUR_PASSWORD
# ```
#
# To check the status:
#
# ```sh
# docker exec -it seafile-client /usr/bin/seaf-cli status
# ```
FROM phusion/baseimage:0.9.20
CMD ["/sbin/my_init"]
RUN apt-get update && DEBIAN_FRONTEND=noninteractive apt-get -y install software-properties-common
RUN apt-add-repository ppa:seafile/seafile-client
RUN apt-get update
RUN DEBIAN_FRONTEND=noninteractive apt-get -y install seafile-cli
RUN mkdir /etc/service/ccnet
COPY ccnet.sh /etc/service/ccnet/run
RUN chmod +x /etc/service/ccnet/run
RUN mkdir /etc/service/seafiled
COPY seafiled.sh /etc/service/seafiled/run
RUN chmod +x /etc/service/seafiled/run
#! So you can actually docker exec into the container
RUN echo "export TERM=xterm" >> /root/.bashrc
#! ln -s
RUN ln -s /etc/ccnet /root/.ccnet