vx-container_connector 0.2.2 → 0.2.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.travis.yml +2 -2
- data/lib/vx/container_connector/docker.rb +2 -3
- data/lib/vx/container_connector/version.rb +1 -1
- data/spec/lib/docker_spec.rb +2 -3
- metadata +1 -3
- data/scripts/Dockerfile +0 -35
- data/scripts/ci_env.sh +0 -18
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 2e353cc8520cbb57bf2208caba4dd5d4fd623f86
|
4
|
+
data.tar.gz: e7047733f64839506517f74f0ebeefb6cf393610
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 32235b2e4cc02425e6becc923ebffbf7fb621df3602d981bb48db33e039fe54cce55761ce5d52394ba7ec94301afe9d66bb1c5543714c6991c5b8759989b8815
|
7
|
+
data.tar.gz: 79e0ffc0ba1c3ef204aaf947c121c105c285cfca9f0a81597911bd6b8bd8effbcb7f0ad3aa5315762c2f55fc6fdc50642bd4df4caf004884f20c4e06b3a16b0e
|
data/.travis.yml
CHANGED
data/spec/lib/docker_spec.rb
CHANGED
@@ -9,9 +9,8 @@ describe Vx::ContainerConnector::Docker do
|
|
9
9
|
|
10
10
|
context "container_options" do
|
11
11
|
subject { conn.container_options }
|
12
|
-
it { should eq("Cmd"
|
13
|
-
"Image"
|
14
|
-
"Privileged" => true) }
|
12
|
+
it { should eq("Cmd" => ["/sbin/init", "--startup-event", "dockerboot"],
|
13
|
+
"Image" => "dmexe/precise") }
|
15
14
|
end
|
16
15
|
|
17
16
|
context "user" do
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: vx-container_connector
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.2.
|
4
|
+
version: 0.2.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Dmitry Galinsky
|
@@ -114,8 +114,6 @@ files:
|
|
114
114
|
- lib/vx/container_connector/local.rb
|
115
115
|
- lib/vx/container_connector/local/spawner.rb
|
116
116
|
- lib/vx/container_connector/version.rb
|
117
|
-
- scripts/Dockerfile
|
118
|
-
- scripts/ci_env.sh
|
119
117
|
- spec/lib/container_connector_spec.rb
|
120
118
|
- spec/lib/docker_spec.rb
|
121
119
|
- spec/lib/local_spec.rb
|
data/scripts/Dockerfile
DELETED
@@ -1,35 +0,0 @@
|
|
1
|
-
# ssh
|
2
|
-
|
3
|
-
FROM ubuntu:12.04
|
4
|
-
|
5
|
-
ENV RUNLEVEL 1
|
6
|
-
|
7
|
-
RUN echo "deb mirror://mirrors.ubuntu.com/mirrors.txt precise main restricted universe" > /etc/apt/sources.list
|
8
|
-
RUN apt-get -qy update
|
9
|
-
|
10
|
-
# add ssh
|
11
|
-
RUN DEBIAN_FRONTEND=noninteractive RUNLEVEL=1 apt-get install -qy openssh-server
|
12
|
-
RUN sed -i 's/start on filesystem/start on filesystem or dockerboot/' /etc/init/ssh.conf
|
13
|
-
|
14
|
-
# add dbus, need for upstart jobs
|
15
|
-
RUN DEBIAN_FRONTEND=noninteractive RUNLEVEL=1 apt-get install -qy dbus
|
16
|
-
RUN sed -i 's/start on local-filesystems/start on local-filesystems or dockerboot/' /etc/init/dbus.conf
|
17
|
-
|
18
|
-
# change /bin/mknod, need for openjdk-7-jdk => fuse
|
19
|
-
RUN dpkg-divert --local --rename --add /sbin/mknod && ln -s /bin/true /sbin/mknod
|
20
|
-
|
21
|
-
# create user
|
22
|
-
RUN useradd -m vexor -s /bin/bash
|
23
|
-
RUN echo "vexor:vexor" | chpasswd
|
24
|
-
RUN apt-get -qy install sudo
|
25
|
-
RUN echo "vexor ALL=(ALL) NOPASSWD: ALL" > /etc/sudoers
|
26
|
-
|
27
|
-
# fix locales
|
28
|
-
RUN locale-gen en_US.UTF-8
|
29
|
-
RUN dpkg-reconfigure -fnoninteractive locales
|
30
|
-
RUN update-locale LC_ALL="en_US.UTF-8" LANG="en_US.UTF-8" LANGUAGE="en_US"
|
31
|
-
|
32
|
-
# install python and modules, needed for ansible
|
33
|
-
RUN DEBIAN_FRONTEND=noninteractive RUNLEVEL=1 apt-get install -qy python
|
34
|
-
|
35
|
-
ENTRYPOINT ["/sbin/init", "--startup-event", "dockerboot"]
|
data/scripts/ci_env.sh
DELETED
@@ -1,18 +0,0 @@
|
|
1
|
-
#!/bin/bash
|
2
|
-
|
3
|
-
set -e
|
4
|
-
|
5
|
-
curl -s https://get.docker.io/gpg | sudo apt-key add -
|
6
|
-
echo deb http://get.docker.io/ubuntu docker main | sudo tee /etc/apt/sources.list.d/docker.list
|
7
|
-
sudo apt-get -qqy update > /dev/null
|
8
|
-
sudo apt-get -qqy install lxc lxc-docker
|
9
|
-
sudo chmod 0666 /var/run/docker.sock
|
10
|
-
|
11
|
-
service docker start
|
12
|
-
|
13
|
-
docker build -t dmexe/precise scripts/Dockerfile
|
14
|
-
sleep 1
|
15
|
-
|
16
|
-
exit 0
|
17
|
-
|
18
|
-
|