-
Notifications
You must be signed in to change notification settings - Fork 836
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1522 from cliveseldon/1521_engine_makefile
Update Engine and top level makefiles
- Loading branch information
Showing
10 changed files
with
25 additions
and
193 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
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,15 +1,15 @@ | ||
.PHONY: build | ||
build: | ||
@set -x && cd seldon-controller && make -f Makefile $@ | ||
@set -x && cd engine && make -f Makefile.ci clean $@ | ||
@set -x && cd engine && make -f Makefile clean $@ | ||
|
||
.PHONY: push_images_private_repo | ||
push_images_private_repo: | ||
@set -x && cd seldon-controller && make -f Makefile push_image_private_repo | ||
@set -x && cd engine && make -f Makefile.ci push_image_private_repo | ||
@set -x && cd engine && make -f Makefile push_image_private_repo | ||
|
||
.PHONY: clean | ||
clean: | ||
cd engine && make -f Makefile.ci clean $@ | ||
cd engine && make -f Makefile clean $@ | ||
cd seldon-controller && make -f Makefile clean $@ | ||
|
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
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,14 +1,22 @@ | ||
FROM openjdk:11.0.5-jre-slim | ||
FROM maven:3.6.3-jdk-11 as builder | ||
|
||
WORKDIR /workspace | ||
|
||
COPY pom.xml pom.xml | ||
COPY src/ src/ | ||
|
||
ARG APP_VERSION=UNKOWN_VERSION | ||
# Build | ||
RUN mvn clean verify -Dlicense.useMissingFile -B | ||
|
||
FROM openjdk:11.0.5-jre-slim | ||
|
||
RUN \ | ||
apt-get update -y && \ | ||
apt-get remove -y --auto-remove && \ | ||
apt-get clean -y && rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/* | ||
|
||
COPY /target/seldon-engine-${APP_VERSION}.jar app.jar | ||
COPY /target/generated-resources /licenses/ | ||
COPY --from=builder /workspace/target/seldon-engine-*.jar app.jar | ||
COPY --from=builder /workspace/target/generated-resources /licenses/ | ||
|
||
ENTRYPOINT [ "sh", "-c", "java -Djava.security.egd=file:/dev/./urandom $JAVA_OPTS -jar app.jar" ] | ||
|
This file was deleted.
Oops, something went wrong.
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 was deleted.
Oops, something went wrong.
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 was deleted.
Oops, something went wrong.