Skip to content

dashaun/cobol-buildpack

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

cobol-buildpack

Cobol Logo

Cloud native buildpack for GnuCOBOL https://www.gnu.org/software/gnucobol

Getting Started

Prerequisites

Make sure you have docker and pack running:

$ docker run hello-world
$ pack --version

Grab some sample cobol and set a builder that uses this cobol-buildpack:

git clone https://github.com/dashaun/cobol-hello-world
cd cobol-hello-world
pack set-default-builder dashaun/cnb-buildpack:bionic
pack build helloworld --path ./
docker run -it helloworld

You just compiled cobol using a cloud native buildpack, and created a docker image to run the cobol!

Package the buildpack

$ pack package-buildpack dashaun/cobol-buildpack --package-config package/package.toml
Successfully created package dashaun/cobol-buildpack
$

Publish the buildpack

$ pack package-buildpack dashaun/cobol-buildpack --package-config package/package.toml --publish
Successfully published package dashaun/cobol-buildpack
$

Version

On Docker Hub dashaun/cobol-buildpack

Currently supports GnuCOBOL version 3.1-dev

Additional Resources