From d40c41004d0f234140f5ec9fc029f4ef6ce3f60c Mon Sep 17 00:00:00 2001 From: Quentin Date: Fri, 20 Aug 2021 17:39:07 +0200 Subject: Add bagage deployment --- app/seafile/build/mariadb/60-disable-dialog.cnf | 3 -- app/seafile/build/mariadb/60-ldap.cnf | 3 -- app/seafile/build/mariadb/60-remote.cnf | 2 - app/seafile/build/mariadb/Dockerfile | 14 ------- app/seafile/build/mariadb/README.md | 19 ---------- app/seafile/build/mariadb/entrypoint.sh | 50 ------------------------- app/seafile/build/mariadb/nsswitch.conf | 21 ----------- app/seafile/build/mariadb/pam-mariadb | 2 - 8 files changed, 114 deletions(-) delete mode 100644 app/seafile/build/mariadb/60-disable-dialog.cnf delete mode 100644 app/seafile/build/mariadb/60-ldap.cnf delete mode 100644 app/seafile/build/mariadb/60-remote.cnf delete mode 100644 app/seafile/build/mariadb/Dockerfile delete mode 100644 app/seafile/build/mariadb/README.md delete mode 100755 app/seafile/build/mariadb/entrypoint.sh delete mode 100644 app/seafile/build/mariadb/nsswitch.conf delete mode 100644 app/seafile/build/mariadb/pam-mariadb (limited to 'app/seafile/build/mariadb') diff --git a/app/seafile/build/mariadb/60-disable-dialog.cnf b/app/seafile/build/mariadb/60-disable-dialog.cnf deleted file mode 100644 index d41731a..0000000 --- a/app/seafile/build/mariadb/60-disable-dialog.cnf +++ /dev/null @@ -1,3 +0,0 @@ -[mariadb] -pam_use_cleartext_plugin -bind-address = 0.0.0.0 diff --git a/app/seafile/build/mariadb/60-ldap.cnf b/app/seafile/build/mariadb/60-ldap.cnf deleted file mode 100644 index 72ffb9f..0000000 --- a/app/seafile/build/mariadb/60-ldap.cnf +++ /dev/null @@ -1,3 +0,0 @@ -[mariadb] -plugin-load=auth_pam.so - diff --git a/app/seafile/build/mariadb/60-remote.cnf b/app/seafile/build/mariadb/60-remote.cnf deleted file mode 100644 index acf8f9b..0000000 --- a/app/seafile/build/mariadb/60-remote.cnf +++ /dev/null @@ -1,2 +0,0 @@ -[mysqld] -bind-address = * diff --git a/app/seafile/build/mariadb/Dockerfile b/app/seafile/build/mariadb/Dockerfile deleted file mode 100644 index 15ef954..0000000 --- a/app/seafile/build/mariadb/Dockerfile +++ /dev/null @@ -1,14 +0,0 @@ -FROM debian:stretch - -RUN apt-get update && \ - apt-get dist-upgrade -y && \ - DEBIAN_FRONTEND=noninteractive apt-get install -y mariadb-server mariadb-client libnss-ldapd - -COPY 60-ldap.cnf /etc/mysql/mariadb.conf.d/60-ldap.cnf -COPY 60-remote.cnf /etc/mysql/mariadb.conf.d/60-remote.cnf -COPY 60-disable-dialog.cnf /etc/mysql/mariadb.conf.d/60-disable-dialog.cnf -COPY pam-mariadb /etc/pam.d/mariadb -COPY nsswitch.conf /etc/nsswitch.conf -COPY entrypoint.sh /usr/local/bin/entrypoint - -ENTRYPOINT ["/usr/local/bin/entrypoint"] diff --git a/app/seafile/build/mariadb/README.md b/app/seafile/build/mariadb/README.md deleted file mode 100644 index 1a3b8aa..0000000 --- a/app/seafile/build/mariadb/README.md +++ /dev/null @@ -1,19 +0,0 @@ -``` -sudo docker build -t superboum/amd64_mariadb:v3 . - -sudo docker run \ - -t -i \ - -p 3306:3306 \ - -v /tmp/mysql:/var/lib/mysql \ - -e LDAP_URI='ldap://bottin.service.2.cluster.deuxfleurs.fr' \ - -e LDAP_BASE='ou=users,dc=deuxfleurs,dc=fr' \ - -e LDAP_VERSION=3 \ - -e LDAP_BIND_DN='cn=admin,dc=deuxfleurs,dc=fr' \ - -e LDAP_BIND_PW='xxxx' \ - -e MYSQL_PASSWORD='xxxx' \ - superboum/amd64_mariadb:v1 \ - tail -f /var/log/mysql/error.log - -CREATE USER quentin@localhost IDENTIFIED VIA pam USING 'mariadb'; - -``` diff --git a/app/seafile/build/mariadb/entrypoint.sh b/app/seafile/build/mariadb/entrypoint.sh deleted file mode 100755 index 1bb2f01..0000000 --- a/app/seafile/build/mariadb/entrypoint.sh +++ /dev/null @@ -1,50 +0,0 @@ -#!/bin/bash - -set -e - -cat > /etc/nslcd.conf <