Skip to content

Instantly share code, notes, and snippets.

@imesh
Last active August 29, 2015 14:12
Show Gist options
  • Save imesh/916da94e336e4d6f7311 to your computer and use it in GitHub Desktop.
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.
#!/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