-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Updated the CPLEX as independent base image
- Loading branch information
Showing
4 changed files
with
44 additions
and
10 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,7 @@ | ||
FROM openjdk:8-jre | ||
FROM cplex:12.8 | ||
|
||
COPY cplex_studio128.linux-x86-64.bin /app/cplex_studio128.linux-x86-64.bin | ||
COPY response.properties /app/response.properties | ||
COPY src/ /app/ | ||
|
||
WORKDIR /app | ||
|
||
RUN chmod u+x cplex_studio128.linux-x86-64.bin | ||
RUN ./cplex_studio128.linux-x86-64.bin -f response.properties | ||
|
||
ENTRYPOINT ["java","-Djava.library.path=/opt/ibm/ILOG/CPLEX_Studio128/cplex/bin/x86-64_linux","-cp",".:/opt/ibm/ILOG/CPLEX_Studio128/cplex/lib/cplex.jar","HelloCplex"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
FROM openjdk:8-jre | ||
|
||
COPY cplex_studio128.linux-x86-64.bin /cplex/cplex_studio128.linux-x86-64.bin | ||
COPY response.properties /cplex/response.properties | ||
|
||
RUN chmod u+x /cplex/cplex_studio128.linux-x86-64.bin | ||
RUN /cplex/cplex_studio128.linux-x86-64.bin -f /cplex/response.properties | ||
RUN rm -rf /cplex |
File renamed without changes.