mirror of https://github.com/Chocobozzz/PeerTube
Update Janitor Dockerfile
- Upgrade to newer janitortechnology/ubuntu-dev base image - Fix workspace folder - Add Theia port - Dockerfile best practicespull/573/head
parent
5fcbd89841
commit
a14d3b6b23
|
@ -1,5 +1,4 @@
|
||||||
FROM janx/ubuntu-dev
|
FROM janitortechnology/ubuntu-dev
|
||||||
MAINTAINER Jan Keromnes <janx@linux.com>
|
|
||||||
|
|
||||||
# Install PeerTube's dependencies.
|
# Install PeerTube's dependencies.
|
||||||
# Packages are from https://github.com/Chocobozzz/PeerTube#dependencies
|
# Packages are from https://github.com/Chocobozzz/PeerTube#dependencies
|
||||||
|
@ -12,23 +11,22 @@ RUN sudo apt-get update -q && sudo apt-get install -qy \
|
||||||
RUN git clone -b develop https://github.com/Chocobozzz/PeerTube /home/user/PeerTube
|
RUN git clone -b develop https://github.com/Chocobozzz/PeerTube /home/user/PeerTube
|
||||||
WORKDIR /home/user/PeerTube
|
WORKDIR /home/user/PeerTube
|
||||||
|
|
||||||
# Configure Cloud9 IDE to use PeerTube's source directory as workspace (-w).
|
# Configure the IDEs to use Janitor's source directory as workspace.
|
||||||
RUN sudo sed -i "s/-w \/home\/user/-w \/home\/user\/PeerTube/" /etc/supervisord.conf
|
ENV WORKSPACE /home/user/PeerTube/
|
||||||
|
|
||||||
# Install dependencies.
|
# Install dependencies.
|
||||||
RUN yarn install --pure-lockfile
|
RUN yarn install --pure-lockfile
|
||||||
|
|
||||||
# Configure Janitor for PeerTube.
|
# Configure Janitor for PeerTube.
|
||||||
ADD janitor.json /home/user/
|
COPY --chown=user:user janitor.json /home/user/
|
||||||
RUN sudo chown user:user /home/user/janitor.json
|
|
||||||
|
|
||||||
# Configure and build PeerTube.
|
# Configure and build PeerTube.
|
||||||
ADD create_user.sql /tmp/
|
COPY create_user.sql /tmp/
|
||||||
RUN sudo service postgresql start \
|
RUN sudo service postgresql start \
|
||||||
&& sudo -u postgres psql --file=/tmp/create_user.sql \
|
&& sudo -u postgres psql --file=/tmp/create_user.sql \
|
||||||
&& npm run build
|
&& npm run build
|
||||||
|
|
||||||
ADD supervisord.conf /tmp/supervisord-extra.conf
|
COPY --chown=user:user supervisord.conf /tmp/supervisord-extra.conf
|
||||||
RUN cat /tmp/supervisord-extra.conf | sudo tee -a /etc/supervisord.conf
|
RUN cat /tmp/supervisord-extra.conf | sudo tee -a /etc/supervisord.conf
|
||||||
|
|
||||||
EXPOSE 3000 9000
|
EXPOSE 3000 9000
|
||||||
|
|
|
@ -23,6 +23,10 @@
|
||||||
"label": "Cloud9",
|
"label": "Cloud9",
|
||||||
"proxy": "https"
|
"proxy": "https"
|
||||||
},
|
},
|
||||||
|
"8090": {
|
||||||
|
"label": "Theia",
|
||||||
|
"proxy": "https"
|
||||||
|
},
|
||||||
"9000": {
|
"9000": {
|
||||||
"label": "PeerTube API",
|
"label": "PeerTube API",
|
||||||
"proxy": "https"
|
"proxy": "https"
|
||||||
|
|
Loading…
Reference in New Issue