-
Notifications
You must be signed in to change notification settings - Fork 2
How to deploy with Docker? #2
Comments
I'll add a example command in README later.
…On Wed, Feb 24, 2021 at 10:44 queen bee shuttle ***@***.***> wrote:
I have compiled the Dockerfile using:
sudo docker build -t syzojdemo.
After the image was built, I did:
sudo docker run -p 8080:80 436fe070f4e3
Then it outputs what looks like an error message:
HEAD is now at e689027 Update config
Please tell your frontend host (or IP:PORT) with -e FRONTEND. e.g. http://demo.syzoj.org
This host should be proxy_pass-ed to container:2001.
After this, whenever I try sudo docker start 58143fba4fa3, it starts and
then promptly exits.
Is there something I did wrong?
Thank you very much!
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
<#2>, or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ACWRBA2LBUQIUJRSJLVK5GDTARRY5ANCNFSM4YDUUWCA>
.
|
I added a README. Let me know if it works or not. |
I'm trying it currently - the download speed is pretty slow. In the meantime, just to clarify - I replace nginx.conf with the given configuration file, and replace 172.20.0.2 with the "inet" value for "docker0" when I run Thanks again. |
nginx reports 502 Bad Gateway when I access it through http and I'm unable to connect through https. |
The inet value of docker0 is your host ip. Use docker inspect to get vm's
ip.
…On Fri, Feb 26, 2021 at 08:34 queen bee shuttle ***@***.***> wrote:
nginx reports 502 Bad Gateway when I access it through http and I'm unable
to connect through https.
On a related note, the given nginx.conf doesn't work as-is; I need to
encapsulate it in the http section of nginx.conf.
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
<#2 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ACWRBA4HQMJ2ZJOMPDFATO3TA3T73ANCNFSM4YDUUWCA>
.
|
Would this be related to the fact that I set |
You should use one of http or https. They are different.
Seeing a directory list means syzoj-ng-app has not finished building or
failed to build. The building takes 2 minutes and 5G ram on my PC.
…On Fri, Feb 26, 2021 at 12:58 queen bee shuttle ***@***.***> wrote:
Would this be related to the fact that I set -e FRONTEND=https://IP but
I'm accessing it through http://IP? The website won't load if I try to
access it through https://IP.
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
<#2 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ACWRBAZJC6Z6NDCUGNFDLZLTA4TAJANCNFSM4YDUUWCA>
.
|
5GB ram... bruh. My server only has 2GB ram. Are there prebuilt images? Or is it possible to first build on my desktop and then copy the image to the server? |
There is prebuilt bundle of syzoj-ng-app's tagged versions, on NPM. I use jsDelivr on my production website. But this demo builds everytime, in order to run the version of latest commit. You can follow syzoj-ng and syzoj-ng-app's README, or look into the docker image's start.sh to deploy without docker. |
I have compiled the Dockerfile using:
sudo docker build -t syzojdemo.
After the image was built, I did:
sudo docker run -p 8080:80 436fe070f4e3
Then it outputs what looks like an error message:
After this, whenever I try
sudo docker start 58143fba4fa3
, it starts and then promptly exits.Is there something I did wrong?
Thank you very much!
The text was updated successfully, but these errors were encountered: