Last active
December 29, 2015 08:19
-
-
Save inokappa/7642366 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ telnet localhost 22 | |
Trying 127.0.0.1... | |
telnet: Unable to connect to remote host: Connection refused | |
$ git clone https://github.com/opscode-cookbooks/nginx.git | |
Cloning into 'nginx'... | |
remote: Counting objects: 2161, done. | |
remote: Compressing objects: 100% (1392/1392), done. | |
remote: Total 2161 (delta 1153), reused 1570 (delta 624) | |
Receiving objects: 100% (2161/2161), 381.79 KiB | 331.00 KiB/s, done. | |
Resolving deltas: 100% (1153/1153), done. | |
Checking connectivity... done | |
$ cd nginx/ | |
/nginx$ ls | |
Berksfile CHANGELOG.md CONTRIBUTING.md Gemfile LICENSE README.md TESTING.md attributes definitions files metadata.rb recipes spec templates test | |
/nginx$ rm -rf .kitchen.yml .kitchen test | |
/nginx$ kitchen init | |
create .kitchen.yml | |
create test/integration/default | |
/nginx$ vi .kitchen.yml | |
/nginx$ kitchen create | |
-----> Starting Kitchen (v1.0.0.beta.4) | |
-----> Creating <default-ubuntu> | |
[kitchen::driver::docker command] BEGIN (sudo -E docker build -) | |
Step 1 : FROM ubuntu:12.04 | |
---> 8dbd9e392a96 | |
Step 2 : ENV DEBIAN_FRONTEND noninteractive | |
---> Using cache | |
---> 1119df3139de | |
Step 3 : RUN dpkg-divert --local --rename --add /sbin/initctl | |
---> Using cache | |
---> bf76fa85e325 | |
Step 4 : RUN ln -sf /bin/true /sbin/initctl | |
---> Using cache | |
---> 4cb434996c58 | |
Step 5 : RUN apt-get update | |
---> Using cache | |
---> 412caae3f89e | |
Step 6 : RUN apt-get install -y sudo openssh-server curl lsb-release | |
---> Using cache | |
---> f2680c2a6422 | |
Step 7 : RUN mkdir -p /var/run/sshd | |
---> Using cache | |
---> 229063b92ac0 | |
Step 8 : RUN useradd -d /home/kitchen -m -s /bin/bash kitchen | |
---> Using cache | |
---> ea92bcd3cf2d | |
Step 9 : RUN echo kitchen:kitchen | chpasswd | |
---> Using cache | |
---> 3c36d361e872 | |
Step 10 : RUN echo 'kitchen ALL=(ALL) NOPASSWD:ALL' >> /etc/sudoers | |
---> Using cache | |
---> 2837e490602a | |
Successfully built 2837e490602a | |
[kitchen::driver::docker command] END (0m0.25s) | |
[kitchen::driver::docker command] BEGIN (sudo -E docker run -d -p 22 2837e490602a /usr/sbin/sshd -D -o UseDNS=no -o UsePAM=no) | |
7282edec890966afc67b213d3903690771974449d91ed3cb0c6c5b953107c963 | |
[kitchen::driver::docker command] END (0m0.17s) | |
[kitchen::driver::docker command] BEGIN (sudo -E docker inspect 7282edec890966afc67b213d3903690771974449d91ed3cb0c6c5b953107c963) | |
[{ | |
"ID": "7282edec890966afc67b213d3903690771974449d91ed3cb0c6c5b953107c963", | |
"Created": "2013-11-25T23:36:24.796401449+09:00", | |
"Path": "/usr/sbin/sshd", | |
"Args": [ | |
"-D", | |
"-o", | |
"UseDNS=no", | |
"-o", | |
"UsePAM=no" | |
], | |
"Config": { | |
"Hostname": "7282edec8909", | |
"Domainname": "", | |
"User": "", | |
"Memory": 0, | |
"MemorySwap": 0, | |
"CpuShares": 0, | |
"AttachStdin": false, | |
"AttachStdout": false, | |
"AttachStderr": false, | |
"PortSpecs": null, | |
"ExposedPorts": { | |
"22/tcp": {} | |
}, | |
"Tty": false, | |
"OpenStdin": false, | |
"StdinOnce": false, | |
"Env": [ | |
"HOME=/", | |
"PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin", | |
"DEBIAN_FRONTEND=noninteractive" | |
], | |
"Cmd": [ | |
"/usr/sbin/sshd", | |
"-D", | |
"-o", | |
"UseDNS=no", | |
"-o", | |
"UsePAM=no" | |
], | |
"Dns": null, | |
"Image": "2837e490602a", | |
"Volumes": null, | |
"VolumesFrom": "", | |
"WorkingDir": "", | |
"Entrypoint": null, | |
"NetworkDisabled": false | |
}, | |
"State": { | |
"Running": true, | |
"Pid": 17972, | |
"ExitCode": 0, | |
"StartedAt": "2013-11-25T23:36:24.82005903+09:00", | |
"FinishedAt": "0001-01-01T00:00:00Z", | |
"Ghost": false | |
}, | |
"Image": "2837e490602a604b6ff53e6a90b43cfa6ead316bc08abd0f4e0345355ba9e0b9", | |
"NetworkSettings": { | |
"IPAddress": "172.17.0.9", | |
"IPPrefixLen": 16, | |
"Gateway": "172.17.42.1", | |
"Bridge": "docker0", | |
"PortMapping": null, | |
"Ports": { | |
"22/tcp": [ | |
{ | |
"HostIp": "0.0.0.0", | |
"HostPort": "49159" | |
} | |
] | |
} | |
}, | |
"SysInitPath": "/usr/bin/docker", | |
"ResolvConfPath": "/var/lib/docker/containers/7282edec890966afc67b213d3903690771974449d91ed3cb0c6c5b953107c963/resolv.conf", | |
"HostnamePath": "/var/lib/docker/containers/7282edec890966afc67b213d3903690771974449d91ed3cb0c6c5b953107c963/hostname", | |
"HostsPath": "/var/lib/docker/containers/7282edec890966afc67b213d3903690771974449d91ed3cb0c6c5b953107c963/hosts", | |
"Name": "/magenta_duck", | |
"Volumes": {}, | |
"VolumesRW": {} | |
}] | |
[kitchen::driver::docker command] END (0m0.02s) | |
Waiting for localhost:22... | |
Waiting for localhost:22... | |
Waiting for localhost:22... | |
Waiting for localhost:22... | |
Waiting for localhost:22... | |
^C>>>>>> ------Exception------- # press Ctrl+c | |
>>>>>> Class: Kitchen::ActionFailed | |
>>>>>> Message: Failed to complete #create action: [exit] | |
>>>>>> ---------------------- | |
>>>>>> Please see .kitchen/logs/kitchen.log for more details |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment