forked from winery/winery
-
Notifications
You must be signed in to change notification settings - Fork 10
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Enable Docker CLI Build (winery#671)
- Loading branch information
1 parent
6ca7a09
commit e74b0d1
Showing
5 changed files
with
31 additions
and
19 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
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,12 @@ | ||
FROM maven:3-jdk-8 as builder | ||
WORKDIR /tmp/winery | ||
COPY . /tmp/winery | ||
RUN mvn package -pl org.eclipse.winery.cli -am -DskipTests | ||
RUN chmod u+x /tmp/winery/org.eclipse.winery.cli/target/winery.jar | ||
|
||
FROM openjdk:8-jre | ||
LABEL maintainer "Oliver Kopp <[email protected]>" | ||
FROM openjdk:11-jre | ||
LABEL maintainer "Oliver Kopp <[email protected]>, Lukas Harzenetter <[email protected]>" | ||
|
||
RUN curl -s https://packagecloud.io/install/repositories/github/git-lfs/script.deb.sh | bash | ||
RUN apt-get update && apt-get install -y git git-lfs | ||
COPY --from=builder /tmp/winery/org.eclipse.winery.cli/target/winery.jar /usr/local/bin | ||
COPY docker/winery /usr/local/bin | ||
RUN chmod +x /usr/local/bin/winery | ||
|
||
CMD winery | ||
COPY winery-cli.jar /usr/local/bin | ||
COPY docker/winery-cli /usr/local/bin | ||
|
||
RUN chmod +x /usr/local/bin/winery-cli | ||
|
||
CMD winery-cli |
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 |
---|---|---|
@@ -0,0 +1,2 @@ | ||
#!/bin/bash | ||
java -jar /usr/local/bin/winery-cli.jar "$@" |
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