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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 610affa1f2a3b5a3693c419867206c353fb57c7f
4
- data.tar.gz: 5791d02e99cf00c10f43e4dc47c1fd469c6f90cc
3
+ metadata.gz: 2e353cc8520cbb57bf2208caba4dd5d4fd623f86
4
+ data.tar.gz: e7047733f64839506517f74f0ebeefb6cf393610
5
5
  SHA512:
6
- metadata.gz: 0247e615b02df5bf60986acc3455293cf5b4d5bb8cd1c962825aaf2265434206755d1a05506786b8302dc34ea8a17e633bc9c016506e1d7adae0110daf92d740
7
- data.tar.gz: 9c717b2254794f0d487ae755ed19e62ef358551ecabb64640ccb94763c5e76e3e6845a5e7dd71bfc5869a7b1b9f3885e40bb8f79a8155ea0c2ce4bd6b671d384
6
+ metadata.gz: 32235b2e4cc02425e6becc923ebffbf7fb621df3602d981bb48db33e039fe54cce55761ce5d52394ba7ec94301afe9d66bb1c5543714c6991c5b8759989b8815
7
+ data.tar.gz: 79e0ffc0ba1c3ef204aaf947c121c105c285cfca9f0a81597911bd6b8bd8effbcb7f0ad3aa5315762c2f55fc6fdc50642bd4df4caf004884f20c4e06b3a16b0e
data/.travis.yml CHANGED
@@ -1,5 +1,5 @@
1
1
  rvm:
2
2
  - 2.0.0
3
+ - 2.1.0
3
4
 
4
- before_script: "scripts/ci_env.sh"
5
- script: "rake spec"
5
+ script: "rake travis"
@@ -50,9 +50,8 @@ module Vx
50
50
 
51
51
  def container_options
52
52
  self.class.default_container_options.merge(
53
- 'Cmd' => init,
54
- 'Image' => image,
55
- 'Privileged' => true
53
+ 'Cmd' => init,
54
+ 'Image' => image,
56
55
  )
57
56
  end
58
57
 
@@ -1,5 +1,5 @@
1
1
  module Vx
2
2
  module ContainerConnector
3
- VERSION = "0.2.2"
3
+ VERSION = "0.2.3"
4
4
  end
5
5
  end
@@ -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" => ["/sbin/init", "--startup-event", "dockerboot"],
13
- "Image" => "dmexe/precise",
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.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
-