Skip to content
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

Merged
merged 4 commits into from
Nov 28, 2019

Conversation

mikkokar
Copy link
Contributor

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.

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
Copy link
Contributor

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?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No. Thanks for spotting 👍

<alias>styxcore</alias>
<name>${styxcore.docker.image}</name>
<build>
<dockerFile>${project.basedir}/../docker/styx-image/Dockerfile</dockerFile>
Copy link
Contributor

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}/../

Copy link
Contributor Author

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}.

@mikkokar mikkokar merged commit 2d98729 into ExpediaGroup:master Nov 28, 2019
@mikkokar mikkokar deleted the docker-maven-build branch November 28, 2019 10:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants