-
Notifications
You must be signed in to change notification settings - Fork 5
Expand file tree
/
Copy pathrun_dev.sh
More file actions
25 lines (17 loc) · 705 Bytes
/
run_dev.sh
File metadata and controls
25 lines (17 loc) · 705 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
#!/bin/bash
#
# @author Alberto Soragna (alberto dot soragna at gmail dot com)
# @2018
[ -z "$BASE_NAME" ] && { echo "Missing environment. Please run first"; echo "source env.sh"; exit 1; }
VERSION=$1
[ -z "$VERSION" ] && { echo "Usage: $0 VERSION"; exit 1; }
echo Using:
echo Volume path:$VOL_CONTAINER_PATH \$VOL_CONTAINER_PATH
echo Base container:$BASE_CONTAINER \$BASE_CONTAINER
echo Base image:$BASE_NAME \$BASE_NAME
echo Version: $VERSION
CMD=bash
## Simple run
#docker run -it --name $BASE_NAME $BASE_CONTAINER:$VERSION $CMD
## Run with volume on data
docker run --rm -it -v $PWD/python:/root/developer_tensorflow-nlp -v $PWD/data:/root/data --name $BASE_NAME $BASE_CONTAINER:$VERSION $CMD