Created
February 6, 2022 07:11
-
-
Save bhumit070/5444d47c61c71985155595dbe943847d to your computer and use it in GitHub Desktop.
This is a basic shell script which downloads 3 database image and 2 database management tool for docker
This file contains hidden or 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 | |
function pullImage() { | |
docker pull $1 | |
} | |
function createVolumeName() { | |
docker volume create $1 | |
} | |
docker -v || exit 1 | |
echo "Docker is Installed proceeding..." | |
echo "PULLING UP IMAGES..." | |
pullImage mongo && | |
pullImage "mysql" && | |
pullImage "postgres" && | |
pullImage "postgres" && | |
pullImage "dpage/pgadmin4" && | |
pullImage "phpmyadmin" | |
echo "CREAING VOLUMES FOR IMAGES..." | |
createVolumeName 'footy_caddy_certs' && | |
createVolumeName 'mongo' && | |
createVolumeName 'mysql' && | |
createVolumeName 'pgadmin' && | |
createVolumeName 'postgres' | |
echo "DOCKER SETUP DONE" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment