Last active
April 25, 2017 09:57
-
-
Save magick93/d8345ecc69f67bfda19428496b45cd97 to your computer and use it in GitHub Desktop.
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 | |
TAG=hughestech/lightning | |
set -ex | |
PARENT_DIR=$(basename "${PWD%/*}") | |
CURRENT_DIR="${PWD##*/}" | |
IMAGE_NAME="$TAG" | |
REGISTRY="$(minishift openshift registry)" | |
eval $(minishift docker-env) | |
docker login -u developer -p $(oc whoami -t) ${REGISTRY} | |
docker build -t ${REGISTRY}/${IMAGE_NAME} --build-arg DRUPAL_INSTALL_DIR=/var/www/lightning --build-arg DOC_ROOT=/docroot --build-arg COMPOSER_PROJECT=acquia/lightning-project . | |
docker tag ${REGISTRY}/${IMAGE_NAME} ${REGISTRY}/${IMAGE_NAME}:latest | |
docker push ${REGISTRY}/${IMAGE_NAME} | |
docker tag ${REGISTRY}/${IMAGE_NAME}:latest ${REGISTRY}/${IMAGE_NAME} | |
docker push ${REGISTRY}/${IMAGE_NAME} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment