HUB
Sign inSign up

koduki/example-cobol

By koduki

•Updated almost 11 years ago

Docker image for COBOL CGI environments.

Image
1

587

koduki/example-cobol repository overview

⁠COBOL for CGI

Docker image for COBOL CGI environments.

⁠Build Image

You can manually build image by below commands.

$ git clone https://github.com/koduki/example-cobol.git
$ cd example-cobol
$ docker build -t koduki/example-cobol .

And you can also pull image from DockerHub.

⁠Check version

$ docker-compose run app cobc -version
cobc (OpenCOBOL) 1.1.0
Copyright (C) 2001-2009 Keisuke Nishida / Roger While
Built    Nov 02 2013 00:16:01
Packaged Feb 06 2009 10:30:55 CET

⁠Run Hello, World

$ docker-compose run app cobc -x -o bin/HELLO ./src/cobol/HELLO.COB 
$ docker-compose run app bin/HELLO 
Hello, World!

⁠Run CGI

Build and Run Application.

$ docker-compose run app cobc -x -o bin/APP ./src/cobol/APP.COB 
$ docker-compose up

Chceck IP address.

$ docker-machine ip default
192.168.99.100

Access by Web browser

http://192.168.99.100/app.cgi?arg1=3&arg2=2
Tag summary
Recent tags
Content type
Image
Digest
Size
118.4 MB
Last updated
almost 11 years ago
docker pull koduki/example-cobol:latest