Skip to content

Commit

Permalink
Alter to support macos
Browse files Browse the repository at this point in the history
  • Loading branch information
Red-HAP committed Jul 15, 2020
1 parent 4291bc0 commit f3766d2
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion ctbash
Original file line number Diff line number Diff line change
@@ -1,2 +1,4 @@
#!/usr/bin/env bash
docker run --rm -it --network sql-learning-workshop_default -v $(pwd)/:/opt/sql-learning-workshop:rw sql-learning-workshop_ws-python /bin/bash
WS_IMAGE=$(docker image ls | awk '{ print $1; }' | grep -E 'sql.*learning.*workshop.*ws.*python')
WS_NETWORK="${WS_IMAGE%_*}_default"
docker run --rm -it --network ${WS_NETWORK} -v $(pwd)/:/opt/sql-learning-workshop:rw ${WS_IMAGE} /bin/bash

0 comments on commit f3766d2

Please sign in to comment.