-
Notifications
You must be signed in to change notification settings - Fork 79
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Build Styx Docker image using fabric8 docker maven plugin #542
Conversation
Makefile
Outdated
cp `find distribution/target -maxdepth 1 -name "styx*linux-x86_64.zip"` ${DOCKER_CONTEXT}/styx.zip | ||
cp docker/styx-image/* ${DOCKER_CONTEXT} | ||
docker build -t styxcore:latest --build-arg STYX_IMAGE=styx.zip ${DOCKER_CONTEXT}/. | ||
mvn clean install -Prelease,linux,docker -Dmaven.test.skip=true |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
do we need mvn clean even though there's a 'clean' above?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
No. Thanks for spotting 👍
distribution/pom.xml
Outdated
<alias>styxcore</alias> | ||
<name>${styxcore.docker.image}</name> | ||
<build> | ||
<dockerFile>${project.basedir}/../docker/styx-image/Dockerfile</dockerFile> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
we probably can reference the parent project here instead of using ${project.basedir}/../
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I have changed this to ${project.parent.basedir}
.
This PR adds
fabric8
docker maven plugin to build Styx Core docker image.This is to simplify and "abstract away" the details how to build Styx Docker image automatically from other projects.