Last active
November 11, 2018 17:18
-
-
Save masarakki/ac2f94f0a8ddce7b26732eea9b011579 to your computer and use it in GitHub Desktop.
ruby via docker
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
# docker-ruby | |
#!/bin/bash | |
RUBY_VERSION=`cat $PWD/.ruby-version | tr -d '[[:space:]]'` | |
IMAGE=ruby:$RUBY_VERSION | |
VOLUMES="-v $HOME:$HOME" | |
ENVIRONMENTS="-e HOME:$HOME" | |
exec docker run -it $VOLUMES $ENVIRONMENTS -u `id -u`:`id -g` -w `pwd` $IMAGE $@ | |
# docker-node | |
#!/bin/bash | |
VOLUMES="-v $HOME:$HOME" | |
ENVIRONMENTS="-e HOME:$HOME" | |
exec docker run -it $VOLUMES -u `id -u`:`id -g` $ENVIRONMENTS -w `pwd` node $@ |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment