diff options
Diffstat (limited to 'support')
-rw-r--r-- | support/docker/gitpod/Dockerfile | 11 | ||||
-rw-r--r-- | support/docker/gitpod/setup_postgres.sql | 6 |
2 files changed, 17 insertions, 0 deletions
diff --git a/support/docker/gitpod/Dockerfile b/support/docker/gitpod/Dockerfile new file mode 100644 index 000000000..435370dc4 --- /dev/null +++ b/support/docker/gitpod/Dockerfile | |||
@@ -0,0 +1,11 @@ | |||
1 | FROM gitpod/workspace-postgres | ||
2 | |||
3 | # Install PeerTube's dependencies. | ||
4 | RUN sudo apt-get update -q && sudo apt-get install -qy \ | ||
5 | ffmpeg \ | ||
6 | openssl \ | ||
7 | redis-server | ||
8 | |||
9 | # Set up PostgreSQL. | ||
10 | COPY --chown=gitpod:gitpod setup_postgres.sql /tmp/ | ||
11 | RUN pg_start && psql -h localhost -d postgres --file=/tmp/setup_postgres.sql | ||
diff --git a/support/docker/gitpod/setup_postgres.sql b/support/docker/gitpod/setup_postgres.sql new file mode 100644 index 000000000..0937f9d19 --- /dev/null +++ b/support/docker/gitpod/setup_postgres.sql | |||
@@ -0,0 +1,6 @@ | |||
1 | create database peertube_dev; | ||
2 | create user peertube password 'peertube'; | ||
3 | grant all privileges on database peertube_dev to peertube; | ||
4 | \c peertube_dev | ||
5 | CREATE EXTENSION pg_trgm; | ||
6 | CREATE EXTENSION unaccent; | ||