You might have noticed this file is a bit different then the one in the Docker Quickstart. I then created a basic Gemfile and empty Gemfile.lock file.įinally I created the docker-compose file. RUN apt-get update -qq & apt-get install -y build-essential libpq-dev nodejs I started off as they recommended and created an empty folder with Dockerfile. Build the docker container to install the Gems.Create a new Rails application but don’t build the container yet.Required to create new Rails application. My main resource in setting up the image was Docker Rails Quickstart Guide. As you will see setting up the initial Docker container requires more then just running the “docker-compose up” command.
Initially I was hoping I could just create the new project inside RubyMine. I also install Docker, RubyMine, and DataGrip. To do this I created a new Ubuntu 18 virtual machine with the bare minimum installed for the OS. I was curious to see if I could create a Docker container for a new Rails project without having Ruby or Rails installed on the host machine.