-
Notifications
You must be signed in to change notification settings - Fork 148
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
Provision evap via vbox and docker #1726
Provision evap via vbox and docker #1726
Conversation
A few thoughts:
I've tried to come up with the minimal modifications needed for this, resulting in a total of 7 additional relevant lines, not counting comments and readme entries: richardebeling@7c08e93 No SSH server means users will not be able to vagrant up --provider docker # to start the container
vagrant docker-exec -it -- /evap/deployment/provision_vagrant_vm.sh # to set up the environment (once)
vagrant docker-exec -it -- sudo -H -u evap bash # to run an interactive shell now I'd say this would be perfect if we somehow could tell vagrant how to do provisioning with this setup, and if we could provide some kind of Overall, I'd vote in favor of going this approach: Get some "VM"-like container with as little configuration as possible, run the provisioning script in there, profit. What do you think? |
A few more thoughts:
|
Updated code with your latest changes at He3lixxx:docker / c762ccf I did some more refactoring. You should be able to test locally with: vagrant destroy
git remote add He3lixxx git@github.com:He3lixxx/EvaP.git
git fetch He3lixxx
git switch -d He3lixxx/docker
vagrant up --provider docker |
3129bf1
to
a496872
Compare
(note: chome headless won't start inside docker container, because it can not sandbox itself. Reproduce with |
a496872
to
7a082f9
Compare
Another thing is that the I couldn't find a "clean" way to auto-start them. It's a bit complicated, since starting them will only work after provisioning was done. We could add the commands that start them to bash.rc or similar. Edit: Added |
* Uniformly use service instead of systemctl * git submodule update --init failed because it was running as the wrong user * docker: start postgresql and redis-server on ssh start (should not affect virtualbox setups)
50d522f
to
6843a95
Compare
About chromium, docker and macos: @FranzSw noticed that on his m1 mac, the npm installation fails because of puppeteer something and then chromium something. This, interestingly, results in We could mark puppeteer as an optional dependency, so that the current script doesn't fail - that would mean that one has to run |
I think that an actual error message and/or full provisioning log would help :P If there are bugs with puppeteer on M1, I'm pretty sure they would have an open issue, possible with a workaround or solution -- I'd say we should do whatever that is. |
vagrant
up --provider=docker` can now be used to provision docker on e.g. macOS Monterey (Intel and M1) where vbox can currently not run.