Skip to content

Commit 2a4a1d3

Browse files
committed
Update Docker Image
* Explain baseline/models folder * Reduce Docker Image Size * Build ardoco-cli in docker image
1 parent 4e8bf56 commit 2a4a1d3

3 files changed

Lines changed: 10 additions & 5 deletions

File tree

Dockerfile

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -41,9 +41,7 @@ RUN . venv/bin/activate && \
4141

4242
# Copy FASTTEXT Models
4343
WORKDIR /replication/baselines/models
44-
ADD https://dl.fbaipublicfiles.com/fasttext/vectors-crawl/cc.en.300.bin.gz .
45-
ADD https://dl.fbaipublicfiles.com/fasttext/vectors-crawl/cc.it.300.bin.gz .
46-
RUN gunzip cc.en.300.bin.gz && gunzip cc.it.300.bin.gz
44+
RUN curl -O https://dl.fbaipublicfiles.com/fasttext/vectors-crawl/cc.en.300.bin.gz && curl -O https://dl.fbaipublicfiles.com/fasttext/vectors-crawl/cc.it.300.bin.gz && gunzip cc.en.300.bin.gz && gunzip cc.it.300.bin.gz
4745

4846
# Copy CodeBERT Models
4947
RUN git lfs install && git clone https://huggingface.co/kit-mcse/CodeBERT-Java && rm -r CodeBERT-Java/.git
@@ -77,5 +75,7 @@ RUN echo "Cloning Source Code of Benchmarks" && \
7775
RUN cd ardoco+arcotl && mvn -P tlr clean test -Dsurefire.failIfNoSpecifiedTests=false -Dtest=TraceLinkEvaluationIT
7876
RUN cd baselines/TAROT && mvn -B compile exec:java -Dexec.mainClass="Start"
7977

80-
ENTRYPOINT [ "/bin/bash", "-c", "cat README.md && bash" ]
78+
# Build ArDoCo CLI
79+
RUN cd ardoco+arcotl && mvn -P tlr package -DskipTests -DskipITs && cp cli/target/ardoco-cli.jar ardoco-cli.jar && mvn -P tlr clean
8180

81+
ENTRYPOINT [ "/bin/bash", "-c", "cat README.md && bash" ]

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -325,6 +325,7 @@ In the folder [ardoco+arcotl/cli](./ardoco+arcotl/cli), there is the source code
325325
You can easily compile the CLI by using the command `mvn package` within the directory [ardoco+arcotl](./ardoco+arcotl).
326326
To speed up the build, you can skip tests using the following command: `mvn package -DskipTests -DskipITs`.
327327
The compiled CLI can then be found in the folder [ardoco+arcotl/cli/target/](./ardoco+arcotl/cli/target/) as `ardoco-cli.jar`.
328+
Note: If you are using the provided Docker image, the CLI is already compiled and can be found at `/replication/ardoco+arcotl/ardoco-cli.jar`.
328329

329330
You can call the CLI to execute the evaluation with the following command, where OUT is the path to a folder where the output should be written to: <br>
330331
`java -jar ardoco-cli.jar -e -o OUT`

baselines/models/README.txt

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1,5 @@
1-
Place your models here.
1+
# baselines/models folder
2+
You can place the ML models here.
3+
If you use the docker image, you will find all needed models in this directory.
4+
Otherwise, follow the steps in the top-level readme to add the ML models here.
5+

0 commit comments

Comments
 (0)