Releases: ZhengLinLei/ciso8583s-a
Releases · ZhengLinLei/ciso8583s-a
v1.0.0
How to deploy?
To import image to podman or docker follow these steps:
- Download .tgz
- Follow command:
gzip -d ./ciso8583_ots_a.tgz
podman image rm ciso8583_ots_a
podman image load -i ./ciso8583_ots_a.tar
podman run -dit --name ciso8583_ots_a -p 9101:9101 -v /etc/localtime:/etc/localtime:ro -v ciso8583_ots_a_logs:/opt/Ciso8583/log ciso8583_ots_a
DEPLOY.txt
HOW TO DEPLOY THE APPLICATION SERVER?
-------------------------------------
WITH DOCKER (RECOMMENDED)
1. Make sure you have installed docker and docker-compose
2. Execute the following commands:
- cd ./script
- ./BUILD.sh
- ./RUN.sh
3. To enter the container execute:
- docker exec -it ciso8583_ots_a bash
3. To stop the container execute:
- ./STOP.sh
4. To clean all the environment execute:
- ./CLEAN.sh
Custom:
* If you want to run the program with docker or podman in DETACH mode, you only have to execute the following command:
- ./RUN.sh -d
* To add any other DOCKER flags:
- ./RUN.sh -d --rm
Notes:
- If you are Mac user, you must to change ./RUN.sh file and replace the following line:
- docker run -d -it --name $container_name --network=host -v ciso8583_ots_a_logs:/opt/Ciso8583/log $container_name
to
- docker run -d -it --name $container_name -p 9101:9101 -v ciso8583_ots_a_logs:/opt/Ciso8583/log $container_name
WITH PODMAN:
1. READ THE DOC PODMAN.txt
WITH NATIVE INSTALLATION
1. Make sure you have installed this dependencies:
- gcc
- make
2. Execute the following commands:
- make clean
- make
3. The application server will be compiled following path:
- ~/dist/ciso8583
4. Execute the program:
- ~/dist/ciso8583
5. You will see the logs in the following path:
- /opt/Ciso8583/logs/Ciso8583.log
What's Changed
- Docker podman bug by @ZhengLinLei in #6
Full Changelog: v0.1.0...v1.0.0
v0.1.0
How to deploy the server?
HOW TO DEPLOY THE APPLICATION SERVER?
-------------------------------------
WITH DOCKER (RECOMMENDED)
1. Make sure you have installed docker and docker-compose
2. Execute the following commands:
- ./BUILD.sh
- ./RUN.sh
3. To enter the container execute:
- docker exec -it ciso8583_ots_a bash
3. To stop the container execute:
- ./STOP.sh
4. To clean all the environment execute:
- ./CLEAN.sh
Custom:
* If you want to run the program with docker or podman in DETACH mode, you only have to execute the following command:
- ./RUN.sh -d
Notes:
- If you are Mac user, you must to change ./RUN.sh file and replace the following line:
- docker run -d -it --name $container_name --network=host -v ciso8583_ots_a_logs:/opt/Ciso8583/log $container_name
to
- docker run -d -it --name $container_name -p 9101:9101 -v ciso8583_ots_a_logs:/opt/Ciso8583/log $container_name
WITH NATIVE INSTALLATION
1. Make sure you have installed this dependencies:
- gcc
- make
2. Execute the following commands:
- make clean
- make
3. The application server will be compiled following path:
- ~/dist/ciso8583
4. Execute the program:
- ~/dist/ciso8583
5. You will see the logs in the following path:
- /opt/Ciso8583/logs/Ciso8583.log
To execute with PODMAN, you only need to add podman as argument of any script. For example:
./BUILD.sh podman
----------
To execute all scripts with PODMAN, you can use the following command:
./BUILD.sh podman && ./RUN.sh podman && ./STOP.sh podman
----------
To execute all scripts with PODMAN in DETACH mode (Background):
./BUILD.sh podman && ./RUN.sh podman -d && ./STOP.sh podman
---------
By default if you don't specify any argument, the scripts will use docker as container engine.
To execute the program manually you can invoke the following command:
- ./ciso8583
To add custom port and ip:
- ./ciso8583 9101 0.0.0.0
To add custom logfile:
- ./ciso8583 -o /opt/custom/logs/PARTY.log
What's Changed
- Fix docker port by @ZhengLinLei in #1
- Server part by @ZhengLinLei in #2
- Dl iso8583 lib by @ZhengLinLei in #3
New Contributors
- @ZhengLinLei made their first contribution in #1
Full Changelog: https://github.com/ZhengLinLei/ciso8583s-a/commits/v0.1.0