Merge "Added script to create docker image"

This commit is contained in:
Jenkins 2016-04-14 21:15:47 +00:00 committed by Gerrit Code Review
commit d3ef00a122

12
docker_image_build.sh Executable file
View File

@ -0,0 +1,12 @@
#!/bin/bash -xe
if [ -x "/usr/bin/apt-get" ]; then
sudo -E apt-get update
sudo -E apt-get install -y docker.io apparmor aufs-tools
elif [ -x "/usr/bin/yum" ]; then
sudo -E yum install -y docker-io gpg
else
echo "No supported package manager installed on system. Supported: apt, yum"
exit 1
fi
sudo docker build -t mistral-docker .
sudo docker save mistral-docker | gzip > mistral-docker.tar.gz