File tree Expand file tree Collapse file tree 4 files changed +49
-7
lines changed Expand file tree Collapse file tree 4 files changed +49
-7
lines changed Original file line number Diff line number Diff line change 66 types : [opened, reopened, review_requested, synchronize]
77
88jobs :
9- run-tests :
9+ build :
1010 runs-on : ubuntu-latest
1111
1212 steps :
1313 - name : Checkout
14- uses : actions/checkout@v3
14+ uses : actions/checkout@v4
1515
1616 - name : Build a docker image
1717 run : docker build -t opensourcecobol/opensourcecobol4j .
18+
19+ utf8-build :
20+ runs-on : ubuntu-latest
21+
22+ steps :
23+ - name : Checkout
24+ uses : actions/checkout@v4
25+
26+ - name : Build a docker image
27+ run : docker build -t opensourcecobol/opensourcecobol4j:utf8 . -f utf8.Dockerfile
Original file line number Diff line number Diff line change @@ -15,13 +15,13 @@ RUN curl -fL https://github.com/coursier/coursier/releases/latest/download/cs-x8
1515
1616# install opensourcecobol4j
1717RUN cd /root &&\
18- curl -L -o opensourcecobol4j-v1.1.5 .tar.gz https://github.com/opensourcecobol/opensourcecobol4j/archive/refs/tags/v1.1.5 .tar.gz &&\
19- tar zxvf opensourcecobol4j-v1.1.5 .tar.gz &&\
20- cd opensourcecobol4j-1.1.5 &&\
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 &&\
2121 ./configure --prefix=/usr/ &&\
2222 make &&\
2323 make install &&\
24- rm /root/opensourcecobol4j-v1.1.5 .tar.gz
24+ rm /root/opensourcecobol4j-v1.1.6 .tar.gz
2525
2626# Install Open COBOL ESQL 4J
2727ENV PATH="$PATH:/root/.local/share/coursier/bin"
Original file line number Diff line number Diff line change 44Versions :
55
66- OS: Ubuntu
7- - opensource COBOL 4J: v1.1.5
7+ - opensource COBOL 4J: v1.1.6
88- Open COBOL ESQL 4J: v1.1.1
99
1010In order to "Hello World" program, run the following commands in the docker container
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