From 13f542501290cc763a68f26f4113a58463e4e3b7 Mon Sep 17 00:00:00 2001 From: thamindu Date: Thu, 31 Oct 2024 11:54:16 +0530 Subject: [PATCH 1/3] Add antlr generated files --- Dockerfile | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/Dockerfile b/Dockerfile index 7e1c375..6d1ac6b 100644 --- a/Dockerfile +++ b/Dockerfile @@ -72,3 +72,16 @@ RUN cmake .. RUN make install RUN rm -rf /home/ubuntu/software/* + +WORKDIR /home/ubuntu/software/code +RUN apt-get update && apt-get install --no-install-recommends -y default-jre +RUN curl -O https://s3.amazonaws.com/artifacts.opencypher.org/M23/Cypher.g4 +RUN curl -O https://www.antlr.org/download/antlr-4.13.2-complete.jar +RUN java -jar antlr-4.13.2-complete.jar -Dlanguage=Cpp -visitor Cypher.g4 +RUN apt-get purge default-jre -y + +WORKDIR /home/ubuntu/software +RUN mkdir /home/ubuntu/software/antlr +RUN mv /home/ubuntu/software/code/*.cpp /home/ubuntu/software/antlr +RUN mv /home/ubuntu/software/code/*.h /home/ubuntu/software/antlr +RUN rm -rf /home/ubuntu/software/code \ No newline at end of file From 434be326b911dcb69159683ee2408f579e07ac1c Mon Sep 17 00:00:00 2001 From: thamindumk Date: Mon, 30 Dec 2024 18:13:29 +0530 Subject: [PATCH 2/3] Add stable version for antlr4 --- Dockerfile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Dockerfile b/Dockerfile index 6d1ac6b..bfb3630 100644 --- a/Dockerfile +++ b/Dockerfile @@ -29,7 +29,7 @@ RUN git clone --single-branch --depth 1 https://github.com/mfontanini/cppkafka.g RUN git clone --single-branch --depth 1 https://github.com/kubernetes-client/c RUN git clone --single-branch --depth 1 --branch v4.2-stable https://libwebsockets.org/repo/libwebsockets RUN git clone --single-branch --depth 1 --branch release/0.2.5 https://github.com/yaml/libyaml -RUN git clone --single-branch --depth 1 https://github.com/antlr/antlr4.git +RUN git clone --single-branch --depth 1 -branch v4.11.1 https://github.com/antlr/antlr4.git WORKDIR /home/ubuntu/software/METIS RUN git submodule update --init @@ -84,4 +84,4 @@ WORKDIR /home/ubuntu/software RUN mkdir /home/ubuntu/software/antlr RUN mv /home/ubuntu/software/code/*.cpp /home/ubuntu/software/antlr RUN mv /home/ubuntu/software/code/*.h /home/ubuntu/software/antlr -RUN rm -rf /home/ubuntu/software/code \ No newline at end of file +RUN rm -rf /home/ubuntu/software/code From 10086b196e3f44ad53456feb5b0b2775c2ac4f12 Mon Sep 17 00:00:00 2001 From: thamindumk Date: Mon, 30 Dec 2024 18:38:34 +0530 Subject: [PATCH 3/3] Fix anltr4 git clone line --- Dockerfile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Dockerfile b/Dockerfile index bfb3630..7f80fee 100644 --- a/Dockerfile +++ b/Dockerfile @@ -29,7 +29,7 @@ RUN git clone --single-branch --depth 1 https://github.com/mfontanini/cppkafka.g RUN git clone --single-branch --depth 1 https://github.com/kubernetes-client/c RUN git clone --single-branch --depth 1 --branch v4.2-stable https://libwebsockets.org/repo/libwebsockets RUN git clone --single-branch --depth 1 --branch release/0.2.5 https://github.com/yaml/libyaml -RUN git clone --single-branch --depth 1 -branch v4.11.1 https://github.com/antlr/antlr4.git +RUN git clone --single-branch --depth 1 --branch v4.11.1 https://github.com/antlr/antlr4.git WORKDIR /home/ubuntu/software/METIS RUN git submodule update --init