Skip to content

Commit abff77f

Browse files
add: utf8.Dockerfile
1 parent 25b5bb0 commit abff77f

File tree

1 file changed

+32
-0
lines changed

1 file changed

+32
-0
lines changed

utf8.Dockerfile

+32
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)