summaryrefslogtreecommitdiffstats
path: root/packer/provision
diff options
context:
space:
mode:
authorAndrew Grimberg <agrimberg@linuxfoundation.org>2017-02-07 10:31:11 -0800
committerAndrew Grimberg <agrimberg@linuxfoundation.org>2017-02-07 10:31:11 -0800
commitae4643e1e8195f30c783d287ec66a9b2e8d05f39 (patch)
tree58ec76a81e2c13d2607db5da5dcdf7f9b41795fb /packer/provision
parent53d3142419c72c71cc17afd946461f653c7a7d19 (diff)
Configure docker image
Create a docker image, this is based on the Open-O robot image Change-Id: I4f16494da4605753f09257107889210488ec0512 Signed-off-by: Andrew Grimberg <agrimberg@linuxfoundation.org>
Diffstat (limited to 'packer/provision')
-rw-r--r--packer/provision/docker.sh (renamed from packer/provision/robot.sh)4
-rw-r--r--packer/provision/redis-server.sh42
2 files changed, 0 insertions, 46 deletions
diff --git a/packer/provision/robot.sh b/packer/provision/docker.sh
index bac724a2e..4ae4b4110 100644
--- a/packer/provision/robot.sh
+++ b/packer/provision/docker.sh
@@ -24,8 +24,6 @@ EOL
# docker group doesn't get created by default for some reason
groupadd docker
-
- # Actual installation of robot is done from an integration JJB script
}
ubuntu_systems() {
@@ -36,8 +34,6 @@ ubuntu_systems() {
# Install docker
apt install -y docker.io
-
- # Actual installation of robot is done from an integration JJB script
}
all_systems() {
diff --git a/packer/provision/redis-server.sh b/packer/provision/redis-server.sh
deleted file mode 100644
index 9a29b9547..000000000
--- a/packer/provision/redis-server.sh
+++ /dev/null
@@ -1,42 +0,0 @@
-#!/bin/bash
-
-# vim: ts=4 sw=4 sts=4 et tw=72 :
-
-rh_systems() {
- echo "---> Installing IUS repo and Redis"
- # make sure that IUS is installed
- yum install -y https://centos7.iuscommunity.org/ius-release.rpm
- # now install redis 3.2.x
- yum install -y redis32u
- systemctl enable redis
-}
-
-ubuntu_systems() {
- echo "---> Installing Redis"
- # Install redis-server
- apt install -y redis-server
-}
-
-all_systems() {
- echo 'No common distribution configuration to perform'
-}
-
-echo "---> Detecting OS"
-ORIGIN=$(facter operatingsystem | tr '[:upper:]' '[:lower:]')
-
-case "${ORIGIN}" in
- fedora|centos|redhat)
- echo "---> RH type system detected"
- rh_systems
- ;;
- ubuntu)
- echo "---> Ubuntu system detected"
- ubuntu_systems
- ;;
- *)
- echo "---> Unknown operating system"
- ;;
-esac
-
-# execute steps for all systems
-all_systems