-
-
Notifications
You must be signed in to change notification settings - Fork 1.7k
Setup ol-web1 yet again #3938
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
Setup ol-web1 yet again #3938
Conversation
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.
Looking good! A few small changes. Also, are the symlinks working now?
|
(I went through and "DONE"'d and resolved my comments; for future reference it would great if you could do that :) ) |
docker-compose.production.yml
Outdated
| && ln -sfv /olsystem/etc/nginx/nginx.conf /etc/nginx/nginx.conf | ||
| && ln -sfv /olsystem/etc/nginx/sites-available /etc/nginx/sites-available |
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.
I am just spinning my wheels on this. I can not rm or chown or sudo the destination files so I can not create the symlinks. What else should I try?
cdrini
left a comment
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.
We tested and it looks like nginx is no longer needed on webnodes \o/ So let's remove those sections.
|
Video https://archive.org/details/setup-of-ol-web-1 demonstrates this code in action. |
cdrini
left a comment
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.
Lgtm; removing the last reference to nginx. Note I haven't tested running this.
Closes #3880, #3901
Closes #3783
Allow us to convert
ol-web1with a fresh Ubuntu install into an Open Library web node running Python 3.8 on Docker.The workflow will be:
systemctl status nginx# to ensure it is up-and-runningscripts/setup_web1.shinto your home directory.setup_web1.shto and configure docker, openlibrary, olsystemexport GITHUB_USERNAME=myusername OL_DOMAIN=myusername OL_BRANCH=Setup-ol-web1-yet-againexport GITHUB_TOKEN=mytoken# This required to git clone olsystem./setup_web1.shwhich will rundocker-compose.production.ymldocker-compose.production.ymlwill rundocker/ol-web-start.sh.scripts/setup_web1.shneed to be run manually...systemctl status nginx && cd /opt/openlibrarysudo docker-compose -f docker-compose.yml -f docker-compose.infogami-local.yml \-f docker-compose.production.yml up --no-deps -d websudo docker-compose logs --tail=100 -f websudo docker exec -it openlibrary_web_1 /bin/bashTechnical
Testing
This dangerous code should only be run in non-production environments. It restores
ol-web1to a clean state.Screenshot
Stakeholders