Last active
August 29, 2015 14:12
-
-
Save imesh/916da94e336e4d6f7311 to your computer and use it in GitHub Desktop.
A script for updating stratos docker images on an Ubuntu VM and pushing them to docker hub.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
set -e | |
sudo su | |
apt-get install git | |
apt-get install docker.io | |
git clone https://github.com/imesh/stratos-docker-images.git | |
pushd cartridge-docker-images/base-image/ | |
echo "Building base image..." | |
docker build -t stratos/base-image:4.1.0-alpha . | |
echo "Pushing base image to docker hub..." | |
docker push stratos/base-image:4.1.0-alpha | |
popd | |
pushd cartridge-docker-images/service-images/php | |
echo "Building php image..." | |
docker build -t stratos/php:4.1.0-alpha . | |
echo "Pushing php image to docker hub..." | |
docker push stratos/php:4.1.0-alpha | |
popd | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment