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 | |
# Sets up a database with a magento2 installation. This assumes you are running from under your httpdocs/<release> location and have www.localhost.com in your /etc/hosts file | |
# To run type : install_magento2 <dirname> <password> <release> | |
# password is used for the datbase user and the magento admin password | |
if [ $# -eq 0 ]; then | |
echo "No arguments supplied" | |
echo "Usage: `basename $0` <dirname> <password> <release>" | |
echo "e.g install_magento2.sh mage2 password 21" | |
exit 1 |
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
#Build new Image (uses dockerfile in cwd) | |
docker build -t <your-desired-image-name> . | |
#Run Docker Container | |
docker run <image-name> | |
#Stop Docker Container (if you have used --name you can then stop with actual alias name) | |
docker stop <image-id> | |
#Show running Docker Images |
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
git branch -r --merged | grep -v master | sed 's/origin\///' | xargs -n 1 git push --delete origin |
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
git branch --merged master | grep -v master | xargs git branch -d | |