Browse Source

Fix PostreSQL initialization for Gitpod

tags/v3.0.0-rc.1
Jan Keromnes Rigel Kent <par@rigelk.eu> 1 year ago
parent
commit
ef62d58674
2 changed files with 8 additions and 8 deletions
  1. +8
    -4
      .gitpod.yml
  2. +0
    -4
      support/docker/gitpod/Dockerfile

+ 8
- 4
.gitpod.yml View File

@@ -10,7 +10,11 @@ ports:
- port: 9000
onOpen: ignore
tasks:
- command: redis-server
- before: export NODE_CONFIG="{\"import\":{\"videos\":{\"torrent\":{\"enabled\":false}}},\"webserver\":{\"hostname\":\"$(gp url 3000 | cut -d/ -f3)\",\"port\":\"443\",\"https\":true}}"
init: yarn install --pure-lockfile
command: npm run dev
- name: Redis
command: redis-server
- name: PeerTube
before: export NODE_CONFIG="{\"import\":{\"videos\":{\"torrent\":{\"enabled\":false}}},\"webserver\":{\"hostname\":\"$(gp url 3000 | cut -d/ -f3)\",\"port\":\"443\",\"https\":true}}"
init: >
psql -h localhost -d postgres --file=support/docker/gitpod/setup_postgres.sql &&
yarn install --pure-lockfile
command: npm run dev

+ 0
- 4
support/docker/gitpod/Dockerfile View File

@@ -9,7 +9,3 @@ RUN sudo apt-get update -q && sudo apt-get install -qy \
ffmpeg \
openssl \
redis-server

# Set up PostgreSQL.
COPY --chown=gitpod:gitpod support/docker/gitpod/setup_postgres.sql /tmp/
RUN pg_start && psql -h localhost -d postgres --file=/tmp/setup_postgres.sql && pg_stop

Loading…
Cancel
Save