Skip to content

Commit 83f7c7c

Browse files
opensource COBOL 4J 1.1.6 (#25)
1 parent 727eb59 commit 83f7c7c

File tree

4 files changed

+49
-7
lines changed

4 files changed

+49
-7
lines changed

.github/workflows/ci.yml

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,12 +6,22 @@ on:
66
types: [opened, reopened, review_requested, synchronize]
77

88
jobs:
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

Dockerfile

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -15,13 +15,13 @@ RUN curl -fL https://github.com/coursier/coursier/releases/latest/download/cs-x8
1515

1616
# install opensourcecobol4j
1717
RUN 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
2727
ENV PATH="$PATH:/root/.local/share/coursier/bin"

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
Versions :
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

1010
In order to "Hello World" program, run the following commands in the docker container

utf8.Dockerfile

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
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"]

0 commit comments

Comments
 (0)