Skip to content

Commit afeba78

Browse files
Open COBOL ESQL 4J 1.1.0 (#19)
* [Update]: use opensource COBOL 4J 1.1.2 (#18) * [Update]: use Open COBOL ESQL 4J 1.1.0 * [Fix]: fix Dockerfile for developers
1 parent 3f0060d commit afeba78

File tree

2 files changed

+18
-17
lines changed

2 files changed

+18
-17
lines changed

Dockerfile

Lines changed: 15 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
FROM ubuntu:22.04
1+
FROM almalinux:9
22

33
SHELL ["/bin/bash", "-c"]
44

@@ -7,13 +7,11 @@ ENV CLASSPATH :/usr/lib/opensourcecobol4j/libcobj.jar:/usr/lib/Open-COBOL-ESQL-4
77
RUN echo 'export CLASSPATH=:/usr/lib/opensourcecobol4j/libcobj.jar:/usr/lib/Open-COBOL-ESQL-4j/postgresql.jar:/usr/lib/Open-COBOL-ESQL-4j/ocesql4j.jar' >> ~/.bashrc
88

99
# install dependencies
10-
RUN apt-get update
11-
RUN apt-get install -y default-jdk build-essential bison flex gettext texinfo autoconf unzip zip gnupg
10+
RUN dnf update -y
11+
RUN dnf install -y gcc make bison flex automake autoconf diffutils gettext java-11-openjdk-devel
12+
1213
# install sbt
13-
RUN echo "deb https://repo.scala-sbt.org/scalasbt/debian all main" | tee /etc/apt/sources.list.d/sbt.list &&\
14-
echo "deb https://repo.scala-sbt.org/scalasbt/debian /" | tee /etc/apt/sources.list.d/sbt_old.list &&\
15-
curl -sL "https://keyserver.ubuntu.com/pks/lookup?op=get&search=0x2EE0EA64E40A89B84B2DF73499E82A75642AC823" | apt-key add
16-
RUN apt-get update && apt-get install -y 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
1715

1816
# install opensourcecobol4j
1917
RUN cd /root &&\
@@ -26,18 +24,20 @@ RUN cd /root &&\
2624
rm ../opensourcecobol4j-v1.1.2.tar.gz
2725

2826
# Install Open COBOL ESQL 4J
27+
ENV PATH="$PATH:/root/.local/share/coursier/bin"
2928
RUN mkdir -p /usr/lib/Open-COBOL-ESQL-4j &&\
30-
curl -L -o /usr/lib/Open-COBOL-ESQL-4j/postgresql.jar https://jdbc.postgresql.org/download/postgresql-42.2.24.jre6.jar &&\
31-
cd /root &&\
32-
curl -L -o Open-COBOL-ESQL-4j-v1.0.3.tar.gz https://github.com/opensourcecobol/Open-COBOL-ESQL-4j/archive/refs/tags/v1.0.3.tar.gz &&\
33-
tar zxvf Open-COBOL-ESQL-4j-v1.0.3.tar.gz &&\
34-
cd Open-COBOL-ESQL-4j-1.0.3 &&\
35-
cp /usr/lib/Open-COBOL-ESQL-4j/postgresql.jar dblibj/lib &&\
29+
cd /root/ &&\
30+
curl -L -o Open-COBOL-ESQL-4j-1.1.0.tar.gz https://github.com/opensourcecobol/Open-COBOL-ESQL-4j/archive/refs/tags/v1.1.0.tar.gz &&\
31+
tar zxvf Open-COBOL-ESQL-4j-1.1.0.tar.gz &&\
32+
rm Open-COBOL-ESQL-4j-1.1.0.tar.gz &&\
33+
cd Open-COBOL-ESQL-4j-1.1.0 &&\
34+
mkdir -p /usr/lib/Open-COBOL-ESQL-4j/ &&\
35+
curl -L -o /usr/lib/Open-COBOL-ESQL-4j/postgresql.jar https://jdbc.postgresql.org/download/postgresql-42.2.24.jar &&\
3636
cp /usr/lib/opensourcecobol4j/libcobj.jar dblibj/lib &&\
37+
cp /usr/lib/Open-COBOL-ESQL-4j/postgresql.jar dblibj/lib &&\
3738
./configure --prefix=/usr/ &&\
3839
make &&\
39-
make install &&\
40-
rm ../Open-COBOL-ESQL-4j-v1.0.3.tar.gz
40+
make install
4141

4242
# add sample programs
4343
ADD cobol_sample /root/cobol_sample

docker-compose-for-compiler-developers/Dockerfile

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,9 +11,9 @@ RUN apt-get update &&\
1111

1212
ENV CLASSPATH :/usr/lib/opensourcecobol4j/sqlite.jar:/usr/lib/opensourcecobol4j/libcobj.jar:/usr/lib/Open-COBOL-ESQL-4j/ocesql4j.jar:/usr/lib/Open-COBOL-ESQL-4j/postgresql.jar
1313

14-
# install SQLite JDBC driver
14+
# install JDBC drivers
1515
RUN mkdir -p /usr/lib/opensourcecobol4j /usr/lib/Open-COBOL-ESQL-4j &&\
16-
curl -L -o /usr/lib/Open-COBOL-ESQL-4j/postgresql.jar -k https://jdbc.postgresql.org/download/postgresql-42.2.24.jre6.jar &&\
16+
curl -L -o /usr/lib/Open-COBOL-ESQL-4j/postgresql.jar -k https://jdbc.postgresql.org/download/postgresql-42.2.24.jar &&\
1717
curl -L -o /usr/lib/opensourcecobol4j/sqlite.jar -k https://github.com/xerial/sqlite-jdbc/releases/download/3.36.0.3/sqlite-jdbc-3.36.0.3.jar
1818

1919
# install opensourcecobol4j
@@ -31,6 +31,7 @@ RUN cd /root &&\
3131
git clone https://github.com/opensourcecobol/Open-COBOL-ESQL-4j.git &&\
3232
cd Open-COBOL-ESQL-4j &&\
3333
cp /usr/lib/opensourcecobol4j/libcobj.jar dblibj/lib &&\
34+
cp /usr/lib/Open-COBOL-ESQL-4j/postgresql.jar dblibj/lib &&\
3435
./configure --prefix=/usr/ &&\
3536
make &&\
3637
make install

0 commit comments

Comments
 (0)