Merge "Added script to create docker image"
This commit is contained in:
commit
d3ef00a122
12
docker_image_build.sh
Executable file
12
docker_image_build.sh
Executable 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
|
Loading…
Reference in New Issue
Block a user