-
-
Notifications
You must be signed in to change notification settings - Fork 1.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix Janitor configuration; #207
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -15,10 +15,19 @@ 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 | ||
|
||
# Install dependencies. | ||
RUN yarn install --pure-lockfile | ||
|
||
# Configure Janitor for PeerTube. | ||
ADD janitor.json /home/user/ | ||
RUN sudo chown user:user /home/user/janitor.json | ||
|
||
# Configure and build PeerTube. | ||
RUN yarn install \ | ||
&& npm run build | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Nit: Why do you no longer pre-build PeerTube? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. What @Chocobozzz said. Closing. |
||
ADD create_user.sql /tmp/ | ||
RUN sudo service postgresql start && \ | ||
sudo -u postgres psql --file=/tmp/create_user.sql | ||
|
||
ADD supervisord.conf /tmp/supervisord-extra.conf | ||
RUN cat /tmp/supervisord-extra.conf | sudo tee -a /etc/supervisord.conf | ||
|
||
EXPOSE 3000 9000 |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
create database peertube_dev; | ||
create user peertube password 'peertube'; | ||
grant all privileges on database peertube_dev to peertube; |
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -10,6 +10,11 @@ | |
"label": "SSH", | ||
"proxy": "none" | ||
}, | ||
"3000": { | ||
"label": "PeerTube web app", | ||
"proxy": "https", | ||
"preview": true | ||
}, | ||
"8088": { | ||
"label": "VNC", | ||
"proxy": "https" | ||
|
@@ -19,13 +24,12 @@ | |
"proxy": "https" | ||
}, | ||
"9000": { | ||
"label": "PeerTube", | ||
"proxy": "https", | ||
"preview": true | ||
"label": "PeerTube API", | ||
"proxy": "https" | ||
} | ||
}, | ||
"scripts": { | ||
"Start PeerTube": "npm start", | ||
"Start PeerTube": "npm run dev", | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Interesting, why did you need to switch this? What's the difference between There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
|
||
"Build PeerTube": "npm run build", | ||
"Run tests": "npm test", | ||
"Update source code": "git pull --rebase origin", | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
[program:postgresql] | ||
user = user | ||
command = sudo -u postgres /usr/lib/postgresql/9.5/bin/postgres -D /var/lib/postgresql/9.5/main -c config_file=/etc/postgresql/9.5/main/postgresql.conf | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Nit: This command is very long. Why not make it shorter by using There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I tried it the way you suggest, it didn't work, I don't have much time digging up why it didn't work, so meh 🤷. Happy to review a follow-up change to this if you're in the mood of making your PR thereafter. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This looks a bit scary, because you're exposing something to the world that was limited to
localhost
before. Could you please explain why this is needed? Is this a development server?There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It's not scary, it's only in development mode: note that this just means exposing the dev web server on the Docker network interface, which is needed if we want to expose the service outside of the container. Keeping it this way (the risk seems nonexistent to me).