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 | |
# Molecule shortcut over molecule inside container | |
# Coming from: https://gist.github.com/fletort/7a34c7f211acf0cde56c8f2749a3ec8b | |
# Use ./molecule.sh shell to login on the container bash | |
if [ "$1" = "shell" ] ; then | |
docker run --rm -it \ | |
-v $(pwd):/tmp/$(basename "${PWD}") \ | |
-v /var/run/docker.sock:/var/run/docker.sock \ | |
-v ~/.cache/:/root/.cache/ \ |
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 | |
docker run --rm -it \ | |
-v $(pwd):/tmp \ | |
-w /tmp \ | |
quay.io/ansible/molecule:3.0.6 \ | |
molecule init role $1 |