-
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1 from ZhengLinLei/fix_docker_port
Fix docker port
- Loading branch information
Showing
9 changed files
with
215 additions
and
609 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,19 @@ | ||
# Run container cis08583_ots_a end expose all ports with --netword=host | ||
container_name=ciso8583_ots_a | ||
|
||
if [ "$(docker ps -aq -f status=exited -f name=$container_name)" ] | [ "$(docker ps -aq -f status=created -f name=$container_name)" ]; then | ||
if [ "$(docker ps -aq -f status=exited -f name=$container_name)" ] || [ "$(docker ps -aq -f status=created -f name=$container_name)" ]; then | ||
echo "Container $container_name exists but is not running" | ||
echo "Removing container $container_name to relaunch it" | ||
# cleanup | ||
./STOP.sh | ||
echo "-------------------\n\n" | ||
fi | ||
if [ ! "$(docker ps -a -q -f name=$container_name)" ]; then | ||
echo "Running $container_name" | ||
docker run -d -it --name $container_name --network=host -v ciso8583_ots_a_logs:/opt/Ciso8583/log $container_name | ||
# docker run -d -it --name $container_name -p 9101:9101 -v ciso8583_ots_a_logs:/opt/Ciso8583/log $container_name | ||
|
||
# For testing purposes (Mac) | ||
# docker run --rm -it --name $container_name -p 9101:9101 -v ciso8583_ots_a_logs:/opt/Ciso8583/log $container_name | ||
fi | ||
docker container exec -it $container_name bash |
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
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,3 +1,5 @@ | ||
echo "eoeoeoe" | ||
echo "Running binary" | ||
|
||
./bin/ciso8583 | ||
./bin/ciso8583 & | ||
|
||
tail -f ./log/Ciso8583.log |
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
Oops, something went wrong.