From e69e2ba6fc424882e730ad94f6222c152b1a4ba8 Mon Sep 17 00:00:00 2001
From: Piotr Maslanka <piotr.maslanka@henrietta.com.pl>
Date: Tue, 28 Mar 2017 15:46:33 +0200
Subject: [PATCH] vaaagrant

---
 czr_pythons/README.md       | 23 -----------------------
 czr_pythons/build.sh        | 12 ------------
 example/README.md           | 12 ------------
 example/build.sh            |  5 -----
 example/build_as_vagrant.sh |  5 -----
 nodejs4/README.md           | 22 ----------------------
 nodejs4/build.sh            |  5 -----
 run.sh                      |  2 +-
 8 files changed, 1 insertion(+), 85 deletions(-)
 delete mode 100644 czr_pythons/README.md
 delete mode 100644 czr_pythons/build.sh
 delete mode 100644 example/README.md
 delete mode 100644 example/build.sh
 delete mode 100644 example/build_as_vagrant.sh
 delete mode 100644 nodejs4/README.md
 delete mode 100644 nodejs4/build.sh

diff --git a/czr_pythons/README.md b/czr_pythons/README.md
deleted file mode 100644
index 13346f8..0000000
--- a/czr_pythons/README.md
+++ /dev/null
@@ -1,23 +0,0 @@
-# czr_pythons
-
-Cassandra, ZooKeeper, RabbitMQ and assorted Pythons
-
-It's [cass_zk_rmq](/cass_zk_rmq) but with extra:
-* build-essentials
-* git
-* Python 2.7
-* cassandra, kazoo and CoolAMQP
-* common utility and testing libraries
-
-
-
-
-
-
----
-
-Usage in Vagrantfile:
-```
-config.vm.box = "henrietta/czr_pythons"
-config.vm.box_url = "http://dev.dms-serwis.com.pl/vagrant/czr_pythons.box"
-```
diff --git a/czr_pythons/build.sh b/czr_pythons/build.sh
deleted file mode 100644
index e56f5aa..0000000
--- a/czr_pythons/build.sh
+++ /dev/null
@@ -1,12 +0,0 @@
-#!/usr/bin/env bash
-apt-get install -y python python-pip python-dev python-setuptools build-essential git libffi-dev libyaml-dev libev4 libev-dev
-pip install --upgrade pip==1.5.6
-pip install --upgrade setuptools==5.5.1
-
-# Install RabbitMQ
-$(wynurz java &&
-wynurz cassandra &&
-wynurz rabbitmq &&
-wynurz zookeeper) &
-
-pip install cassandra-driver kazoo CoolAMQP requests futures six monotonic nose mock
diff --git a/example/README.md b/example/README.md
deleted file mode 100644
index 113ac88..0000000
--- a/example/README.md
+++ /dev/null
@@ -1,12 +0,0 @@
-# example
-
-This is description of the box. It will be copied. Keep it short and single-line. Don't remove the line break before.
-Version: 1.0
-
-Write what this box consists of and how it behaves.
-First four lines have a special meaning - dont move them around. Change only version number, not the word.
-
----
-
-This section will be automatically replaced by `python make.py` with auto-generated
-content of Vagrantfile that will refer to this box.
diff --git a/example/build.sh b/example/build.sh
deleted file mode 100644
index 205a232..0000000
--- a/example/build.sh
+++ /dev/null
@@ -1,5 +0,0 @@
-#!/bin/bash
-
-# This will be executed during build process as root
-# You can delete it if you want to.
-# cd into a directory if you depend on a particular working directory.
diff --git a/example/build_as_vagrant.sh b/example/build_as_vagrant.sh
deleted file mode 100644
index 8e9ea4b..0000000
--- a/example/build_as_vagrant.sh
+++ /dev/null
@@ -1,5 +0,0 @@
-#!/bin/bash
-
-# This will be executed during build process as user Vagrant
-# You can delete it if you want to.
-# cd into a directory if you depend on a particular working directory.
diff --git a/nodejs4/README.md b/nodejs4/README.md
deleted file mode 100644
index 2430407..0000000
--- a/nodejs4/README.md
+++ /dev/null
@@ -1,22 +0,0 @@
-# nodejs4
-
-NodeJS 4 + bower + gulp
-
-* NodeJS 4.x
-* bower
-* gulp
-* git
-* build-essential
-* curl
-
-
-
-
-
----
-
-Usage in Vagrantfile:
-```
-config.vm.box = "henrietta/nodejs4"
-config.vm.box_url = "http://dev.dms-serwis.com.pl/vagrant/nodejs4.box"
-```
diff --git a/nodejs4/build.sh b/nodejs4/build.sh
deleted file mode 100644
index 2b8b642..0000000
--- a/nodejs4/build.sh
+++ /dev/null
@@ -1,5 +0,0 @@
-#!/usr/bin/env bash
-
-wynurz node4
-npm cache clean
-npm install -g --unsafe-perm bower gulp
diff --git a/run.sh b/run.sh
index 94f810e..afe9551 100644
--- a/run.sh
+++ b/run.sh
@@ -9,5 +9,5 @@ if [ -e "/vagrant/build.sh" ]; then
 fi
 
 if [ -e "/vagrant/build_as_vagrant.sh" ]; then
-    bash /vagrant/build_as_vagrant.sh
+    su - vagrant -c "bash /vagrant/build_as_vagrant.sh"
 fi
-- 
GitLab