Skip to content

Instantly share code, notes, and snippets.

@thebrentc
Last active June 1, 2019 10:14
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save thebrentc/bb9c82d36850520685fb01ef46428887 to your computer and use it in GitHub Desktop.
Save thebrentc/bb9c82d36850520685fb01ef46428887 to your computer and use it in GitHub Desktop.
from ubuntu:18.04
maintainer Brent C <thebrentc@gmail.com>
#update and get cobol pre-requisites
run apt-get update
run apt-get install -y gcc
run apt-get install -y libgmp3-dev libdb-dev
# install latest cobol
#run apt-get install -y open-cobol #no
run apt-get update && apt-get install -y make
copy gnucobol-2.2.tar.gz /gnucobol-2.2.tar.gz
# or wget https://vorboss.dl.sourceforge.net/project/open-cobol/gnu-cobol/2.2/gnucobol-2.2.tar.gz
run tar -xzvf gnucobol-2.2.tar.gz \
&& cd gnucobol-2.2 \
&& ./configure --with-curses=check --prefix=/usr/local CPPFLAGS=-I/usr/local/include/ LDFLAGS=-L/usr/local/lib \
&& make \
&& make install
run ldconfig
#copy in files
copy *.cbl ./
copy *.cpy ./
copy *.csv ./
copy build.sh /build.sh
#copy in imported data created on host
copy test-data.dat /test-data.dat
# build data importer and import
# run cobc -std=default -x -free ImportAttendees.cbl \
# build BAMS and run
cmd ["./build.sh"] && cmd ["./bams test-data.dat"]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment