Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
21 changes: 18 additions & 3 deletions docker-wrappers/MEO/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,21 @@
# https://github.com/agitter/meo/
FROM amazoncorretto:8-alpine3.19

WORKDIR /meo
RUN export MEO_TAG=v1.1.0 && \
wget https://raw.githubusercontent.com/agitter/meo/$MEO_TAG/EOMain.jar
RUN apk add --no-cache git

# Following https://lpsolve.sourceforge.net/5.5/Java/README.html, we configure lpsolve
RUN wget https://downloads.sourceforge.net/project/lpsolve/lpsolve/5.5.2.9/lp_solve_5.5.2.9_dev_ux64.tar.gz && \
tar -xvzf lp_solve_5.5.2.9_dev_ux64.tar.gz && \
wget https://downloads.sourceforge.net/project/lpsolve/lpsolve/5.5.2.9/lp_solve_5.5.2.9_java.zip && \
unzip lp_solve_5.5.2.9_java.zip && \
cp lp_solve_5.5_java/lib/ux64/liblpsolve55j.so . && \
ldconfig . && \
# and grab the jar
cp lp_solve_5.5_java/lib/lpsolve55j.jar .

RUN git clone https://github.com/agitter/meo && \
cd meo && \
git reset --hard 1fe57e8ff3952c494e2b14dfdc563a84596e2fcd && \
mkdir build && \
javac -classpath ../lpsolve55j.jar:src -d ./build src/alg/EOMain.java && \
jar -cvfe EOMain.jar EOMain src/alg/
1 change: 1 addition & 0 deletions docker-wrappers/MEO/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -26,3 +26,4 @@ The Docker wrapper can be tested with `pytest`.

- `v1`: Initial version
- `v2`: Use `amazoncorretto` alpine base image
- `v3`: Compile MEO from source, explicit `lp_solve` dependency.
2 changes: 1 addition & 1 deletion spras/meo.py
Original file line number Diff line number Diff line change
Expand Up @@ -180,7 +180,7 @@ def run(edges=None, sources=None, targets=None, output_file=None, max_path_lengt

command = ['java', '-jar', '/meo/EOMain.jar', properties_file]

container_suffix = "meo:v2"
container_suffix = "meo:v3"
run_container_and_log('Maximum Edge Orientation',
container_suffix,
command,
Expand Down
Loading