aboutsummaryrefslogtreecommitdiff
path: root/docker
diff options
context:
space:
mode:
authorQuentin Dufour <quentin@deuxfleurs.fr>2019-12-04 16:54:59 +0100
committerQuentin Dufour <quentin@deuxfleurs.fr>2019-12-04 16:54:59 +0100
commit0b3eb8ec1b3ba3691410744f6397437c9832e74d (patch)
tree88dbd13fc1ff2e9a7e3773d88143c8bc68b05a63 /docker
parentede3a300e5ac2567ea15db6fe40ddd9b7510d9e3 (diff)
parent08f3ef8c179b499f6b6051ad95a66ea9d352e5f9 (diff)
downloadinfrastructure-0b3eb8ec1b3ba3691410744f6397437c9832e74d.tar.gz
infrastructure-0b3eb8ec1b3ba3691410744f6397437c9832e74d.zip
Merge branch 'master' of gitlab.com:superboum/deuxfleurs.fr
Diffstat (limited to 'docker')
-rw-r--r--docker/seafile/Dockerfile11
-rw-r--r--docker/seafile/README.md2
2 files changed, 8 insertions, 5 deletions
diff --git a/docker/seafile/Dockerfile b/docker/seafile/Dockerfile
index 7373b47..88dee4f 100644
--- a/docker/seafile/Dockerfile
+++ b/docker/seafile/Dockerfile
@@ -9,7 +9,7 @@ RUN apt-get update && \
tar xf ./seafile.tar.gz && \
mv seafile-server-${VERSION} seafile-server
-FROM debian:buster
+FROM amd64/debian:buster
COPY --from=builder ./seafile-server /srv/webstore/seafile-server
@@ -32,10 +32,11 @@ RUN apt-get update && \
pip install Pillow==4.3.0 && \
pip install moviepy && \
useradd -u 1000 -d /srv/webstore seauser && \
- chown -R seauser:1000 /srv/webstore/ && \
- mkdir -p /usr/lib64/mysql/plugin/ && \
- ln -s /usr/lib/x86_64-linux-gnu/mariadb*/plugin/mysql_clear_password.so /usr/lib64/mysql/plugin/ && \
- ln -s /usr/lib/x86_64-linux-gnu/mariadb*/plugin/dialog.so /usr/lib64/mysql/plugin/
+ chown -R seauser:1000 /srv/webstore/
+
+RUN mkdir -p /usr/local/lib/mariadb/plugin/ && \
+ ln -s /usr/lib/x86_64-linux-gnu/mariadb*/plugin/mysql_clear_password.so /usr/local/lib/mariadb/plugin/ && \
+ ln -s /usr/lib/x86_64-linux-gnu/mariadb*/plugin/dialog.so /usr/local/lib/mariadb/plugin/
WORKDIR /srv/webstore/seafile-server
COPY seadocker /usr/local/bin/seadocker
diff --git a/docker/seafile/README.md b/docker/seafile/README.md
index 492fd10..26d04e0 100644
--- a/docker/seafile/README.md
+++ b/docker/seafile/README.md
@@ -7,6 +7,7 @@ When upgrading, connect on a production server and run:
```bash
nomad stop seafile
+sudo docker build -t superboum/amd64_seafile:v6 .
sudo docker run -t -i \
-v /mnt/glusterfs/seafile:/mnt/seafile-data \
@@ -23,3 +24,4 @@ sudo docker run -t -i \
nomad start seafile.hcl
```
+when upgrading, change the command on start