Skip to content

Commit

Permalink
parameterize the docker address
Browse files Browse the repository at this point in the history
  • Loading branch information
tahmmee committed May 9, 2017
1 parent e5ad129 commit c1ddb2e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions scripts/session.sh
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#!/bin/bash


CLIENT=$1
DEFAULT_SESSION=$(openssl rand -hex 12)
EX_ARGS=""
SESSION_ARG=`echo $* | grep "session:" | sed 's/.*session://' | sed 's/-/_tty_/'`
Expand All @@ -12,4 +12,4 @@ SESSION=${SESSION_ARG:-$DEFAULT_SESSION}

echo $SESSION > /tmp/$$
tmux detach -s $SESSION 2> /dev/null || true
tmux new -A -s $SESSION docker run --name $SESSION -it toastty 52.207.212.163:2375 $*" $EX_ARGS"
tmux new -A -s $SESSION docker run --name $SESSION -it toastty $CLIENT $*" $EX_ARGS"

0 comments on commit c1ddb2e

Please sign in to comment.