From 086b69f6a1d71b41246b3079dd849cf802d12396 Mon Sep 17 00:00:00 2001 From: Yutaro Sakamoto Date: Mon, 4 Nov 2024 18:51:10 +0900 Subject: [PATCH] chore: remove docker-compose-for-compiler-developers --- README.md | 12 ----- .../Dockerfile | 44 ------------------- .../docker-compose.yml | 28 ------------ 3 files changed, 84 deletions(-) delete mode 100644 docker-compose-for-compiler-developers/Dockerfile delete mode 100644 docker-compose-for-compiler-developers/docker-compose.yml diff --git a/README.md b/README.md index 5f4a5b4..9292479 100644 --- a/README.md +++ b/README.md @@ -32,16 +32,4 @@ cd /root/ocesql4j_sample make ``` -## Docker containers for compiler developers - -In order to launch the development environment with a database server and a client with opensource COBOL 4J Open COBOL ESQL 4J installed, run the following command. - -```bash -cd docker-compose-compose-for-compiler-developers -docker compose up -d -docker attach oc4j_client -``` - -The container is for developers opensource COBOL 4J and Open COBOL ESQL 4J, not users of them. - Copyright 2021-2024, Tokyo System House Co., Ltd. diff --git a/docker-compose-for-compiler-developers/Dockerfile b/docker-compose-for-compiler-developers/Dockerfile deleted file mode 100644 index 27eea2c..0000000 --- a/docker-compose-for-compiler-developers/Dockerfile +++ /dev/null @@ -1,44 +0,0 @@ -FROM ubuntu:22.04 - -SHELL ["/bin/bash", "-c"] - -# install dependencies of opensourcecobol 4J and Open COBOL ESQL 4J -RUN apt-get update &&\ - apt-get install -y default-jdk build-essential bison flex gettext texinfo libgmp-dev autoconf libtool git unzip zip &&\ - curl -s "https://get.sdkman.io" | bash &&\ - source "/root/.sdkman/bin/sdkman-init.sh" &&\ - sdk install sbt - -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 - -# install JDBC drivers -RUN mkdir -p /usr/lib/opensourcecobol4j /usr/lib/Open-COBOL-ESQL-4j &&\ - curl -L -o /usr/lib/Open-COBOL-ESQL-4j/postgresql.jar -k https://jdbc.postgresql.org/download/postgresql-42.2.24.jar &&\ - 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 - -# install opensourcecobol4j -RUN cd /root &&\ - git clone https://github.com/opensourcecobol/opensourcecobol4j.git &&\ - cd opensourcecobol4j &&\ - cp /usr/lib/opensourcecobol4j/sqlite.jar libcobj/sqlite-jdbc &&\ - ./configure --prefix=/usr/ &&\ - make &&\ - make install - -# install Open COBOL ESQL 4J -RUN cd /root &&\ - source "/root/.sdkman/bin/sdkman-init.sh" &&\ - git clone https://github.com/opensourcecobol/Open-COBOL-ESQL-4j.git &&\ - cd Open-COBOL-ESQL-4j &&\ - cp /usr/lib/opensourcecobol4j/libcobj.jar dblibj/lib &&\ - cp /usr/lib/Open-COBOL-ESQL-4j/postgresql.jar dblibj/lib &&\ - ./configure --prefix=/usr/ &&\ - make &&\ - make install - -# classpath settings -RUN echo 'export 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' >> ~/.bashrc - -WORKDIR /root/ - -CMD ["/bin/bash"] diff --git a/docker-compose-for-compiler-developers/docker-compose.yml b/docker-compose-for-compiler-developers/docker-compose.yml deleted file mode 100644 index 426a5b8..0000000 --- a/docker-compose-for-compiler-developers/docker-compose.yml +++ /dev/null @@ -1,28 +0,0 @@ -version: '3' - -services: - oc4j_db: - image: postgres:13 - container_name: oc4j_db - environment: - - POSTGRES_USER=main_user - - POSTGRES_PASSWORD=password - - POSTGRES_DB=testdb - ports: - - "5432:5432" - - oc4j_client: - image: oc4j_client - container_name: oc4j_client - build: - context: . - dockerfile: Dockerfile - volumes: - - "./share:/root/share" - stdin_open: true - tty: true - depends_on: - oc4j_db: - condition: service_started - logging: - driver: none