-
Notifications
You must be signed in to change notification settings - Fork 271
Add config files to run the project on Docker environment #7
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
base: master
Are you sure you want to change the base?
Conversation
I think it would only be wise to alias puma to cougar and execute that way... Just so we all better understand just how dangerous this might be. |
What is docker machine/client?Take a example,please. |
Martin: Docker is a tool for running containers. Containers are like virtual machines, but lightweight. DockerMachine is a way to run docker on a Mac or Windows computer (usually you have to run it on Linux). An alternative is Docker for Mac, which is, as I understand it, newer. |
@james-powis Would you mind explaining what exactly is dangerous? I don't currently have a workstation with docker so I cant test |
Dockerfile
Outdated
bundle update --bundler && \ | ||
bundle install | ||
COPY . . | ||
COPY for-docker.env .env |
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.
you can have for-docker.env
as .env
in repo and remove this line
or better have environment passed in compose file and not have any .env file
environment:
REDIS_URL: redis://redis:6379
I believe REDIS_HOST
and REDIS_PORT
are not in use
In a word it is a virtual machine that runs some programs. |
@Martin730913 Yes, but actually no. It uses the Linux Kernel of your OS (If you use Linux, it is basically a VM in Windows, at least until WSL2 comes out). That means it uses a lot less resources, allowing you to run a lot of containers |
Ok,I see. Thanks for your patient reply. |
To run the project on my local, I wrote docker files and this may be useful for someone else.
How to run
Docker machine's IP address can be seen on "docker-machine ls".