-
Notifications
You must be signed in to change notification settings - Fork 20
infrastructure
This information came from the infrastructure channel on Discord.
shlbye 12/06/2019 Hello, I created this channel so I can keep people updated on what is going with the Docker/Cloud/whatever of the project without bogging down the rest of the channels.
shlbye 12/06/2019 Currently I am having a really hard time trying to decide how the WARM site will actually be set up (mostly because I am still learning the intricacies of how websites are served). Based on meeting discussion and my own R&D, this is what is most likely to happen (still subject to change):
- The entire web app will likely be in three docker containers containing the webserver, the actual Django app, and postgres.
- I think we will use AWS lightsail as we fit much of the criteria and it is less configuration for me without handing too much over to AWS or getting too pricey. (This has the unknown though of whether it is friendly to Docker containers)
- We will probably use Nginx, unless we decide for sure on lightsail and it for some reason really doesn't want Nginx but the apache configing isn't too much worse.
I would be incredibly happy with any suggestions, even if we don't wound up taking it.
Also I just realized LEMP is a big thing on lightsail: https://aws.amazon.com/websites/
Amazon Web Services, Inc. Web Hosting - Amazon Web Services (AWS) AWS offers a cloud web hosting solution that provides businesses & organizations with a flexible, scalable, low-cost way to deliver websites & applications.
shlbye 12/06/2019 Sorry for the hyperactive and indecisive updates (but that's why it is its own channel): I actually am not sure LightSail is the best option considering DigitalOcean exists. I will play with both as they both have a free trial. I will try to do that in this next weekend and week.
Source: https://cloudacademy.com/blog/amazon-lightsail-vs-digital-ocean/
Cloud Academy Sadequl Hussain Amazon Lightsail vs DigitalOcean - Cloud Academy Blog Amazon Lightsail vs DigitalOcean: Amazon needs to offer something better if it wants to capture a good market share. Part 2 of Lightsail series.
shlbye 12/12/2019 So I went to a LightSail meetup last night, and it seems that potentially using docker containers on VPS servers might be over-engineering. However, it might be better as a development tool so that people can literally just do docker-compose up and a few other things and have the app running on their local environments.
Jeff 01/13/2020 @shlbye did you have plans for continuous integration / automated testing yet? Github Actions became public recently and I was going to look into that unless you had something else in mind. I'd start simple with running the tests automatically when a pull request is opened or updated.
Travis 01/17/2020 Please feel free to explore this option. Recently, someone ran the tests and they all apparently failed. It would be good to get early notice when the tests start to fail.
Jeff 01/19/2020 I've had some success playing around with Actions today. An example run can be seen in my fork here: https://github.com/jallman112/Food-Pantry-Inventory/commit/7418161c1cfc0b0681db2746142ffc22bbe00cd9/checks?check_suite_id=409039520
GitHub jallman112/Food-Pantry-Inventory New Inventory System for Westerville Area Resource Ministry - jallman112/Food-Pantry-Inventory
Jeff 01/19/2020 I can share more at the meeting tomorrow
Travis 01/19/2020 I will look forward to seeing what you have in place already!
dmcalloway 01/26/2020 Here is a site that shows a quick overview of docker and multiple containers. Do not get distracted by the app example at the bottom of the page, it is meant to show a non-trivial example of how the parts fit together. https://docker-curriculum.com/#next-steps
A Docker Tutorial for Beginners A Docker Tutorial for Beginners Learn to build and deploy your distributed applications easily to the cloud with Docker
The link I just posted is to follow up resources
The actual beginning of the tutorial is here : https://docker-curriculum.com/#introduction
A Docker Tutorial for Beginners A Docker Tutorial for Beginners Learn to build and deploy your distributed applications easily to the cloud with Docker
Oh, and hello everyone btw - I am Damien, affiliated with the Python dojo
By day, I am a mild mannered support engineer. By night I am a Pythonista, mad scientist, and part-time philosopher
At some point, we will need to also get comfy with iptables and sundry
shlbye 01/27/2020 Sorry for taking awhile for getting back to this. I am going to create a new channel for Devops-y stuff. The actions sounds great. I am not as good with pieline stuff yet, so I can't judge.
shlbye 03/01/2020 Damien and I will be meeting every sunday for a few sundays until this is finished
shlbye 03/08/2020 here is the command to install nginx on manjaro: sudo pacman -S nginx
dmcalloway 03/08/2020 To install nginx as a service in Manjaro : Sudo Sysctl start nginx - then Sudo sysctl enable nginx
dmcalloway 03/08/2020 Systemctl - not sysctl
dmcalloway 03/09/2020 Https://nginx.org/en/docs/beginners_guide.html That is a good resource to balance out the Nginx book - official Nginx org guide
shlbye 03/09/2020 https://www.docker.com/blog/tips-for-deploying-nginx-official-image-with-docker
Docker Blog Mario Ponticello Tips for Deploying NGINX with Docker (Examples) | Docker Blog Learn tips for deploying NGINX (Official Image) with Docker from the experts. Watch a tutorial for creating an instance of NGINX in a Docker Container.
dmcalloway 03/09/2020 Https://www.scalyr.com/blog/create-docker-image/ Https://Phoenixnap.com/kB/how-to-commit-changes-to-docker-image
shlbye 03/15/2020 https://phoenixnap.com/kb/how-to-commit-changes-to-docker-image
Knowledge Base by phoenixNAP Sofija Simic How to Commit Changes to a Docker Image (With Example) In this Docker Tutorial Learn how to commit changes to a Docker image. Save changes to a running Docker container and create new images now with examples.
Travis04/09/2020 https://pythonspeed.com/articles/build-secrets-docker-compose/
Python⇒Speed Build secrets in Docker Compose, the secure way When you’re building a Docker image, you might need to use some secrets: the password to a private package repository, for example. You don’t want this secret to end up embedded in the image, because then anyone who somehow gets access to the image will get access to your priv...