-
Notifications
You must be signed in to change notification settings - Fork 81
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
latentvector
committed
Dec 24, 2024
1 parent
7b93998
commit 7383571
Showing
7 changed files
with
40 additions
and
111 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,2 @@ | ||
|
||
PWD=$(pwd) | ||
NAME=$(basename $PWD) | ||
docker build -t $NAME $PWD | ||
NAME=$(basename $(pwd)) | ||
docker build -t $NAME $(pwd) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
PWD=$(pwd) | ||
NAME=$(basename $PWD) | ||
|
||
NAME=$(basename $(pwd)) | ||
docker exec -it $NAME /bin/bash |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -15,4 +15,5 @@ fi | |
--restart unless-stopped \ | ||
--privileged \ | ||
$NAME" | ||
echo "Starting $NAME" | ||
eval docker run $CONTAINER_PARAMS |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,7 @@ | ||
|
||
PWD=$(pwd); NAME=$(basename $PWD) | ||
NAME=$(basename $(pwd)); | ||
CONTAINER_EXISTS=$(docker ps -a | grep $NAME) | ||
if [ -z "$CONTAINER_EXISTS" ]; then | ||
make run | ||
./scripts/start.sh | ||
fi | ||
docker exec -it $NAME pytest /$NAME/tests |