Skip to content

v0.1.0

Compare
Choose a tag to compare
@ZhengLinLei ZhengLinLei released this 06 Dec 12:05
· 7 commits to master since this release

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

New Contributors

Full Changelog: https://github.com/ZhengLinLei/ciso8583s-a/commits/v0.1.0