Skip to content

Commit

Permalink
das-node-29: update container_tty
Browse files Browse the repository at this point in the history
  • Loading branch information
levisingularity committed Oct 8, 2024
1 parent 2b30e97 commit 9de18ff
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions scripts/container_tty.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,17 +4,19 @@ CONTAINER_NAME="das-node-bash"

if [ -n "$1" ]; then
CMD="$1"
INTERACTIVE="-i"
else
CMD="bash"
INTERACTIVE="-it"
fi

docker run \
--net="host" \
--name=$CONTAINER_NAME \
--volume .:/opt/hyperon_das_node \
--volume /tmp:/tmp \
-it das-node-builder \
bash -c "$CMD"
$INTERACTIVE das-node-builder \
bash -c "$CMD"

sleep 1
docker rm $CONTAINER_NAME >& /dev/null

0 comments on commit 9de18ff

Please sign in to comment.