docker bash with dynamic image

This commit is contained in:
Simon Martín 2019-02-12 18:21:00 +01:00
parent 0e26d5ba5a
commit 4f6d04a3ae

View File

@ -1,3 +1,10 @@
#!/bin/bash
docker run -it -v `pwd`:/srv carto/${1:-nodejs10-xenial-pg101:postgis-2.4.4.5} bash
echo "*********************"
echo "To install Node.js, run:"
echo "/src/nodejs-install.sh"
echo "Use NODEJS_VERSION env var to select the Node.js version"
echo "*********************"
echo " "
docker run -it -v `pwd`:/srv carto/nodejs-xenial-pg101:latest bash