From 25b5bb00d5f2cea351a42f87b56f087d50f27921 Mon Sep 17 00:00:00 2001 From: unknown Date: Tue, 4 Feb 2025 14:50:22 +0900 Subject: [PATCH 1/4] feat: change the version of opensource COBOL 4J to 1.1.6 --- Dockerfile | 8 ++++---- README.md | 2 +- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/Dockerfile b/Dockerfile index 99e8a19..1caefea 100644 --- a/Dockerfile +++ b/Dockerfile @@ -15,13 +15,13 @@ RUN curl -fL https://github.com/coursier/coursier/releases/latest/download/cs-x8 # install opensourcecobol4j RUN cd /root &&\ - curl -L -o opensourcecobol4j-v1.1.5.tar.gz https://github.com/opensourcecobol/opensourcecobol4j/archive/refs/tags/v1.1.5.tar.gz &&\ - tar zxvf opensourcecobol4j-v1.1.5.tar.gz &&\ - cd opensourcecobol4j-1.1.5 &&\ + curl -L -o opensourcecobol4j-v1.1.6.tar.gz https://github.com/opensourcecobol/opensourcecobol4j/archive/refs/tags/v1.1.6.tar.gz &&\ + tar zxvf opensourcecobol4j-v1.1.6.tar.gz &&\ + cd opensourcecobol4j-1.1.6 &&\ ./configure --prefix=/usr/ &&\ make &&\ make install &&\ - rm /root/opensourcecobol4j-v1.1.5.tar.gz + rm /root/opensourcecobol4j-v1.1.6.tar.gz # Install Open COBOL ESQL 4J ENV PATH="$PATH:/root/.local/share/coursier/bin" diff --git a/README.md b/README.md index 915b99c..fc08284 100644 --- a/README.md +++ b/README.md @@ -4,7 +4,7 @@ Versions : - OS: Ubuntu -- opensource COBOL 4J: v1.1.5 +- opensource COBOL 4J: v1.1.6 - Open COBOL ESQL 4J: v1.1.1 In order to "Hello World" program, run the following commands in the docker container From abff77fe2487f6878b10314d63c2d02f996094a0 Mon Sep 17 00:00:00 2001 From: unknown Date: Tue, 4 Feb 2025 15:32:35 +0900 Subject: [PATCH 2/4] add: utf8.Dockerfile --- utf8.Dockerfile | 32 ++++++++++++++++++++++++++++++++ 1 file changed, 32 insertions(+) create mode 100644 utf8.Dockerfile diff --git a/utf8.Dockerfile b/utf8.Dockerfile new file mode 100644 index 0000000..657aff3 --- /dev/null +++ b/utf8.Dockerfile @@ -0,0 +1,32 @@ +FROM almalinux:9 + +SHELL ["/bin/bash", "-c"] + +# classpath settings +ENV CLASSPATH=:/usr/lib/opensourcecobol4j/libcobj.jar +RUN echo 'export CLASSPATH=:/usr/lib/opensourcecobol4j/libcobj.jar' >> ~/.bashrc + +# install dependencies +RUN dnf update -y +RUN dnf install -y gcc make bison flex automake autoconf diffutils gettext java-11-openjdk-devel + +# install sbt +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 + +# install opensourcecobol4j +RUN cd /root &&\ + curl -L -o opensourcecobol4j-v1.1.6.tar.gz https://github.com/opensourcecobol/opensourcecobol4j/archive/refs/tags/v1.1.6.tar.gz &&\ + tar zxvf opensourcecobol4j-v1.1.6.tar.gz &&\ + cd opensourcecobol4j-1.1.6 &&\ + ./configure --prefix=/usr/ --enable-utf8 &&\ + touch cobj/*.m4 &&\ + make &&\ + make install &&\ + rm /root/opensourcecobol4j-v1.1.6.tar.gz + +# add sample programs +ADD cobol_sample /root/cobol_sample + +WORKDIR /root/ + +CMD ["/bin/bash"] From e0e70d7d0bdd437bc3cd1fac051a4fbd571a06bc Mon Sep 17 00:00:00 2001 From: unknown Date: Tue, 4 Feb 2025 15:34:20 +0900 Subject: [PATCH 3/4] ci: build the utf8 version --- .github/workflows/ci.yml | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index b85fd3d..8e81e21 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -6,12 +6,22 @@ on: types: [opened, reopened, review_requested, synchronize] jobs: - run-tests: + build: runs-on: ubuntu-latest steps: - name: Checkout - uses: actions/checkout@v3 + uses: actions/checkout@v4 - name: Build a docker image run: docker build -t opensourcecobol/opensourcecobol4j . + + utf8-build: + runs-on: ubuntu-latest + + steps: + - name: Checkout + uses: actions/checkout@v4 + + - name: Build a docker image + run: docker build -t opensourcecobol/opensourcecobol4j:utf8 . -f utf8.Dockerfile \ No newline at end of file From 8364cdcacc4a84b3e7847604b00d922c10daa7b0 Mon Sep 17 00:00:00 2001 From: unknown Date: Fri, 28 Feb 2025 17:12:47 +0900 Subject: [PATCH 4/4] opensource COBOL 4J 1.1.7 --- Dockerfile | 8 ++++---- README.md | 2 +- utf8.Dockerfile | 8 ++++---- 3 files changed, 9 insertions(+), 9 deletions(-) diff --git a/Dockerfile b/Dockerfile index 1caefea..b164bb0 100644 --- a/Dockerfile +++ b/Dockerfile @@ -15,13 +15,13 @@ RUN curl -fL https://github.com/coursier/coursier/releases/latest/download/cs-x8 # install opensourcecobol4j RUN cd /root &&\ - curl -L -o opensourcecobol4j-v1.1.6.tar.gz https://github.com/opensourcecobol/opensourcecobol4j/archive/refs/tags/v1.1.6.tar.gz &&\ - tar zxvf opensourcecobol4j-v1.1.6.tar.gz &&\ - cd opensourcecobol4j-1.1.6 &&\ + curl -L -o opensourcecobol4j-v1.1.7.tar.gz https://github.com/opensourcecobol/opensourcecobol4j/archive/refs/tags/v1.1.7.tar.gz &&\ + tar zxvf opensourcecobol4j-v1.1.7.tar.gz &&\ + cd opensourcecobol4j-1.1.7 &&\ ./configure --prefix=/usr/ &&\ make &&\ make install &&\ - rm /root/opensourcecobol4j-v1.1.6.tar.gz + rm /root/opensourcecobol4j-v1.1.7.tar.gz # Install Open COBOL ESQL 4J ENV PATH="$PATH:/root/.local/share/coursier/bin" diff --git a/README.md b/README.md index fc08284..ce5fbdf 100644 --- a/README.md +++ b/README.md @@ -4,7 +4,7 @@ Versions : - OS: Ubuntu -- opensource COBOL 4J: v1.1.6 +- opensource COBOL 4J: v1.1.7 - Open COBOL ESQL 4J: v1.1.1 In order to "Hello World" program, run the following commands in the docker container diff --git a/utf8.Dockerfile b/utf8.Dockerfile index 657aff3..ea3a280 100644 --- a/utf8.Dockerfile +++ b/utf8.Dockerfile @@ -15,14 +15,14 @@ RUN curl -fL https://github.com/coursier/coursier/releases/latest/download/cs-x8 # install opensourcecobol4j RUN cd /root &&\ - curl -L -o opensourcecobol4j-v1.1.6.tar.gz https://github.com/opensourcecobol/opensourcecobol4j/archive/refs/tags/v1.1.6.tar.gz &&\ - tar zxvf opensourcecobol4j-v1.1.6.tar.gz &&\ - cd opensourcecobol4j-1.1.6 &&\ + curl -L -o opensourcecobol4j-v1.1.7.tar.gz https://github.com/opensourcecobol/opensourcecobol4j/archive/refs/tags/v1.1.7.tar.gz &&\ + tar zxvf opensourcecobol4j-v1.1.7.tar.gz &&\ + cd opensourcecobol4j-1.1.7 &&\ ./configure --prefix=/usr/ --enable-utf8 &&\ touch cobj/*.m4 &&\ make &&\ make install &&\ - rm /root/opensourcecobol4j-v1.1.6.tar.gz + rm /root/opensourcecobol4j-v1.1.7.tar.gz # add sample programs ADD cobol_sample /root/cobol_sample