nibrobb / cobol-microservices

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

COBOL + CI/CD = ❤️

Quick start

Get the latest exchange rates from the EBC and put them in resources

mkdir -p resources/ && wget -O - https://www.ecb.europa.eu/stats/eurofxref/eurofxref.zip?... | unzip -d resources/ -

Install the neccecary modules

mkdir -p modules

npm install -g cobolget

cobolget init

cobolget add core-network

cobolget add core-string

cobolget add --debug gcblunit

cobolget update

cobolget -t bca12d6c4efed0627c87f2e576b72bdb5ab88e34 install

Docker - build the image

docker build --tag microservice .

Run the container

docker run -d -i --name microservice -p 8000:8000 microservice
docker exec -i microservice cobc -j -x src/microservice.cbl

Stop the container

docker rm --force microservice

Source: https://medium.com/swlh/modern-cobol-microservice-tutorial-7d7d738f0b00

About


Languages

Language:COBOL 99.4%Language:Dockerfile 0.6%