-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
80 lines (65 loc) · 2.41 KB
/
Dockerfile
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
67
68
69
70
71
72
73
74
75
76
77
78
79
80
FROM ubuntu:jammy
ENV DEBIAN_FRONTEND noninteractive
RUN apt-get update && apt-get install -y apt-transport-https wget lsb-release gnupg && \
echo "deb [ arch=amd64 ] https://repo.mongodb.org/apt/ubuntu jammy/mongodb-org/4.4 multiverse" | tee /etc/apt/sources.list.d/mongodb-org-4.4.list && \
wget --quiet -O - https://www.mongodb.org/static/pgp/server-4.4.asc | apt-key add - && \
echo "deb http://apt.postgresql.org/pub/repos/apt/ jammy-pgdg main" >> /etc/apt/sources.list.d/postgresql.list && \
wget --quiet -O - https://www.postgresql.org/media/keys/ACCC4CF8.asc | apt-key add - && \
echo "deb http://repo.mysql.com/apt/ubuntu bionic mysql-5.7" >> /etc/apt/sources.list.d/mysql.list && \
apt-key adv --keyserver pgp.mit.edu --recv-keys B7B3B788A8D3785C && \
apt-get update && \
apt-get install -y \
mongodb-database-tools \
postgresql-client-13 \
mysql-client=5.7* \
nmap \
unzip && \
rm -rf /var/lib/apt/lists/*
RUN wget https://downloads.rclone.org/v1.53.1/rclone-v1.53.1-linux-amd64.zip && \
unzip rclone-v1.53.1-linux-amd64.zip && \
cp rclone-v1.53.1-linux-amd64/rclone /usr/bin/rclone && \
chmod 755 /usr/bin/rclone && \
rm -rf rclone-v1.53.1-linux-amd64
RUN wget https://dl.min.io/server/minio/release/linux-amd64/archive/minio_20241107005220.0.0_amd64.deb && \
dpkg -i minio_20241107005220.0.0_amd64.deb
# Keys for minio, which is NOT exposed to the internet
ENV MINIO_ROOT_USER minio
ENV MINIO_ROOT_PASSWORD localminiosecret
# Platform name
ENV PLATFORM_NAME ""
# Postgresql server
ENV PLATFORM_POSTGRESQL_HOST ""
ENV PLATFORM_POSTGRESQL_PORT ""
ENV PLATFORM_POSTGRESQL_USER ""
ENV PGPASSWORD ""
ENV PLATFORM_POSTGRESQL_DATABASES "edxapp edxapp_csmh moodle"
# MySQL server
ENV PLATFORM_MYSQL_HOST ""
ENV PLATFORM_MYSQL_USER ""
ENV PLATFORM_MYSQL_PASSWORD ""
ENV PLATFORM_MYSQL_DATABASES "edxapp edxapp_csmh"
# MongoDB server
ENV PLATFORM_MONGODB_HOST ""
ENV PLATFORM_MONGODB_USER ""
ENV PLATFORM_MONGODB_PASSWORD ""
# S3 Server
ENV PLATFORM_S3_URL ""
ENV PLATFORM_S3_ACCESS_KEY ""
ENV PLATFORM_S3_SECRET_KEY ""
ENV PLATFORM_S3_BUCKETS ""
# GDrive
ENV PLATFORM_GRIVE_CLIENT_ID ""
ENV PLATFORM_GDRIVE_CLIENT_SECRET ""
ENV PLATFORM_GDRIVE_SCOPE ""
ENV PLATFORM_GDRIVE_TOKEN ""
# Moodle
ENV PLATFORM_MOODLE_DATA ""
# NAS
ENV NAS_HOST ""
ENV NAS_USER ""
ENV NAS_PASS ""
ENV NAS_KEY_FILE_PASS ""
# HOST FS
ENV HOST_MOUNT "/host_mount"
RUN mkdir -p /root/.config/rclone
ADD scripts /root/scripts