File tree Expand file tree Collapse file tree 1 file changed +32
-0
lines changed Expand file tree Collapse file tree 1 file changed +32
-0
lines changed Original file line number Diff line number Diff line change 1+ FROM almalinux:9
2+
3+ SHELL ["/bin/bash" , "-c" ]
4+
5+ # classpath settings
6+ ENV CLASSPATH=:/usr/lib/opensourcecobol4j/libcobj.jar
7+ RUN echo 'export CLASSPATH=:/usr/lib/opensourcecobol4j/libcobj.jar' >> ~/.bashrc
8+
9+ # install dependencies
10+ RUN dnf update -y
11+ RUN dnf install -y gcc make bison flex automake autoconf diffutils gettext java-11-openjdk-devel
12+
13+ # install sbt
14+ RUN curl -fL https://github.com/coursier/coursier/releases/latest/download/cs-x86_64-pc-linux.gz | gzip -d > cs && chmod +x cs && echo Y | ./cs setup
15+
16+ # install opensourcecobol4j
17+ RUN cd /root &&\
18+ curl -L -o opensourcecobol4j-v1.1.6.tar.gz https://github.com/opensourcecobol/opensourcecobol4j/archive/refs/tags/v1.1.6.tar.gz &&\
19+ tar zxvf opensourcecobol4j-v1.1.6.tar.gz &&\
20+ cd opensourcecobol4j-1.1.6 &&\
21+ ./configure --prefix=/usr/ --enable-utf8 &&\
22+ touch cobj/*.m4 &&\
23+ make &&\
24+ make install &&\
25+ rm /root/opensourcecobol4j-v1.1.6.tar.gz
26+
27+ # add sample programs
28+ ADD cobol_sample /root/cobol_sample
29+
30+ WORKDIR /root/
31+
32+ CMD ["/bin/bash" ]
You can’t perform that action at this time.
0 commit comments