mistral/docker_image_build.sh
hardik 6bb604685e Added script to create docker image
Once this patch is merged, I will modify gate
job to use this script to create image.

Change-Id: Ieed72e184d5eb8a5f57cb557df8dabce54d122cf
2016-04-13 14:46:36 +05:30

13 lines
395 B
Bash
Executable File

#!/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