-
Notifications
You must be signed in to change notification settings - Fork 5
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
Support running the service in a docker container #5
Comments
OverviewThe idea is that, when running a Proposed Changes
Usagenormally we can just run λ docker run -v /var/run/docker.sock:/var/run/docker.sock -d --name server_container server_image which links the docker daemon socket in the container with the one on the host. This allows the host to spin up a sibling container. Note that we can also specify this runtime argument within Questions
|
Major Changes: * add Dockerfile for building API server image TODO: * add docker-compose.yml template to project root * add build.sh script for buliding both docker images in repo * add (possibly) a run.sh script for running both images * add test for ensuring docker build/run works * exec (eventually) test code in API server on container start
Major Changes: * add docker-compose.yml for orchestrating building and running containers * add .env file for setting environment variables inside docker containers TODO: * integrate test code to run on container startup * create shared volumes for input/output between api server and compilebox
Major Changes: * rename dockerfiles * adjust docker-compose * adjust Dockerfile-server
…ed vol Major Changes: * move langtest code into a smoke test in compilebox main.go * begin setting up shared volumes between server api and compilebox TODO: * doesn't run yet, need to figure out shared volumes * delete langtest cmd
Possibly relevant to your work: since the actual sandbox is unlikely to change much, I've pushed it to docker hub https://hub.docker.com/r/frenata/xaqt/ (also experimenting with the proposed name). We'll presumably still want the Dockerfile in the repo somewhere so that we can change it, but it could be moved out of the base directory. And presumably when you compose the images, you can pull it directly. |
I changed it so that https://hub.docker.com/r/frenata/xaqt-sandbox/ is set as the sandbox itself, so that we can use frenata/xaqt as the service target. Once this is issue is resolved I'll make the appropriate changes to auto-build that target too. |
FYI @ConnorWalsh , I had to do some major surgery on the Dockerfile since it suddenly stopped building. Security certs for the version of node being built got deprecated apparently. |
@frenata, no worries! sorry for radio silence-- i'm getting back on this probably tomorrow |
1 similar comment
@frenata, no worries! sorry for radio silence-- i'm getting back on this probably tomorrow |
It's cool @ConnorWalsh , I haven't exactly been spending a lot of time on this lately either. Hoping to get back to a bit soon though. |
@frenata i was working on this previously but i am going to switch gears and refactor the library to use the Go Docker API since i think that is more valuable. |
From #2 :
The text was updated successfully, but these errors were encountered: