-
Notifications
You must be signed in to change notification settings - Fork 16
Write Vagrant bootstrap.sh for CLTK and CLTK API #32
Comments
@kylepjohnson Do you want a vagrant setup script specifically or a general bash script ? |
Vagrant uses plain Bash scripts anyway, so what you do will work with and without Vagrant. Though I recommend using Vagrant from the start. Also we'll want this to be accompanied with a Vagrantfile in the file version. |
Got it! 👍 |
@kylepjohnson I've divided the P.S I'm still working on them. Not completed yet. |
Does the cltk user need sudo privilege in order to function as the application's home / run directory? |
My recommendation (for discussion): create a new repository called cltk_server_builds (or something similar if you have a naming schema) where everything needed to build a specific type of server will be aggregated into a folder by the name of the type of server/service first, then the method of building (e.g., docker, vagrant, ...) and then the third level the actual stuff for the build. If there are generic components that will be used for multiple builds, they can go in a "shared" folder at the server/service level. Caveat -- I need to make a test to see whether Vagrant is allowed to look outside of it's home directory for resources, or to follow symlinks. If not, the shared concept must die. Otherwise, if there are components that will be common to multiple server builds then it makes sense to share them instead of make multiple copies. Example:
|
@ferthalangur I really like the idea of having all types of server build files in one place. @kylepjohnson You can create a new repository, I'll send a PR creating the basic folder structure and adding necessary files ? |
Hi Guys, I'm obviously still catching up. @manu-chroma Here's a repo for Vagrant: https://github.com/cltk/cltk_vagrant. Do whatever you want with it! As for the sudo issues, how about we make two users? One with sudo for installation and another (say, |
@kylepjohnson @manu-chroma ... Yes, that would work very well. On the production machines that we set up, we usually have a user called administrator that has sudo powers for installation, modifications, monitoring, etc. That would be the account vagrant uses to build the applications and create the cltk user. |
Thanks, Rob! Let's plan on using an admin and cltk users as above. |
@kylepjohnson @ferthalangur |
Building upon Manvendra's script to automate Nginx: https://gist.github.com/manu-chroma/4a6f3b6b27aa49683c67b9fb0b23d493
Let's add the basic setup, too:
cltk
with sudo privilegesvenv
in cltk's home dirRelevant Vagrant example here: https://www.vagrantup.com/docs/getting-started/provisioning.html
Please reach out for anything you get stuck on, we're here to help.
The text was updated successfully, but these errors were encountered: