Skip to content

terghalin/deploy-rails

Repository files navigation

deploy-rails

Deploy Rails application with dedicated PostgreSQL database and Puma

Testing

Prerequisites

Ruby Gems:

  • berkshelf
  • kitchen-docker ~> 2.6.0
  • kitchen-inspec

For testing with Chef Test Kitchen, use kitchen test command

Troubleshooting

Test Kitchen

1. Unable to connect to docker socket

This Test Kitchen uses kitchen-docker driver with TCP socket connection. You can start docker with --host parameter:

-H tcp://127.0.0.1:2375

You can also change ExecStart parameter in Ubuntu 16.x at /lib/systemd/system/docker.service:

ExecStart=/usr/bin/dockerd -H fd:// -H tcp://127.0.0.1:2375

2. Unable to resolve archive.ubuntu.com and 8.8.8.8 while running with kitchen-docker

Your organization may block DNS 8.8.8.8 or 8.8.8.4. First, check your's DNS servers:

$ nmcli dev show | grep DNS
IP4.DNS[1]:                             10.0.0.1
IP4.DNS[2]:                             10.0.0.2

Create file /etc/docker/daemon.json and add DNS parameters for docker daemon:

{
    "dns": ["10.0.0.1", "10.0.0.2"]
}

ChefDK required

Releases

No releases published

Packages

No packages published