Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.
Sign upSetting sample config for container development #1992
Conversation
(Someone else needs to review this PR, due to lacking knowledge about docker.) Does this imply that I would run some third-party docker image on my system? |
@stomar The image used is in the $ docker-compose up After that, when you see the rake serve message go to localhost:9292/ on your browser and check if everything is ok. |
@alaxalves Please, update your Gemfile.lock to use bundler 2.0 or greater. When using the container the following is throw:
See jekyll/jekyll#7463 for more information. |
…to docker-setup
It's done! |
to generate the website and start a local web server | ||
|
||
|
||
Open [http://localhost:9292/](http://localhost:9292/) |
This comment has been minimized.
This comment has been minimized.
znz
Sep 11, 2019
Member
You can use <http://localhost:9292/>
instead of [http://localhost:9292/](http://localhost:9292/)
.
services: | ||
web: | ||
container_name: ruby-lang | ||
image: ruby:2.6.1 |
This comment has been minimized.
This comment has been minimized.
yous
Sep 11, 2019
Member
Maybe this can be updated? It seems that 2.6.4 is available: https://hub.docker.com/_/ruby. Currently .travis.yml specified the version to 2.6.3.
This comment has been minimized.
This comment has been minimized.
alaxalves
Sep 11, 2019
Author
Contributor
@yous do I use the same version as travis or do I update Travis to use 2.6.4 as well?
Co-Authored-By: Júlio Campos <jcserracampos@gmail.com>
@alaxalves Saying to access through localhost is incorrect, is not? |
I think that you have an specific use case. For what I'm aware of latest Docker CE doesn't use a VM to "simulate" a Docker environment on MacOS anymore, now it uses the host's kernel, as in linux systems. Thus you can access your containerized service through localhost. |
I use kyperkit and can not use localhost. |
alaxalves commentedMar 6, 2019
Added yaml file with sample docker configuration to make easier and faster developing to ruby-lang. Also added examples in README on how to use either Docker or Docker-Compose.