From 492fd28167f770d79a430fc57451b5a9e075d8e7 Mon Sep 17 00:00:00 2001 From: Jan Keromnes Date: Mon, 4 Dec 2017 10:58:02 +0100 Subject: Add a PeerTube development environment Dockerfile compatible with Janitor. (#144) * Add a PeerTube development environment Dockerfile. * Clone from develop instead of master in developer Dockerfile. --- support/docker/dev/Dockerfile | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 support/docker/dev/Dockerfile (limited to 'support/docker/dev/Dockerfile') diff --git a/support/docker/dev/Dockerfile b/support/docker/dev/Dockerfile new file mode 100644 index 000000000..2328140fb --- /dev/null +++ b/support/docker/dev/Dockerfile @@ -0,0 +1,20 @@ +FROM janx/ubuntu-dev +MAINTAINER Jan Keromnes + +# Install PeerTube's dependencies. +# Packages are from https://github.com/Chocobozzz/PeerTube#dependencies +RUN sudo apt-get update -q && sudo apt-get install -qy \ + ffmpeg \ + postgresql \ + openssl + +# Download PeerTube's source code. +RUN git clone -b develop https://github.com/Chocobozzz/PeerTube /home/user/PeerTube +WORKDIR /home/user/PeerTube + +# Configure Cloud9 IDE to use PeerTube's source directory as workspace (-w). +RUN sudo sed -i "s/-w \/home\/user/-w \/home\/user\/PeerTube/" /etc/supervisord.conf + +# Configure and build PeerTube. +RUN yarn install \ + && npm run build -- cgit v1.2.3