Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save djwhitt/66ada406440b02928b6cb9ab38c0200d to your computer and use it in GitHub Desktop.
Save djwhitt/66ada406440b02928b6cb9ab38c0200d to your computer and use it in GitHub Desktop.
#!/usr/bin/env bash
term_opts='-it'
if [[ $@ == **-d** ]]; then
term_opts='-i'
fi
exec docker run $term_opts \
--user $(id -u) \
--rm=true \
-e "HOME=$HOME" \
-v "$HOME:$HOME" \
-w "$PWD" \
djwhitt/lumo lumo "$@"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment