-
Notifications
You must be signed in to change notification settings - Fork 195
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
Added support for building multi-arch Docker images for elasticmq-native #488
Conversation
build.sbt
Outdated
@@ -283,6 +287,14 @@ lazy val nativeServer: Project = (project in file("native-server")) | |||
dockerEntrypoint := Seq("/sbin/tini", "--", "/opt/docker/bin/elasticmq-native-server", "-Dconfig.file=/opt/elasticmq.conf"), | |||
dockerUpdateLatest := true, | |||
dockerExposedPorts := Seq(9324,9325), | |||
dockerBuildOptions := dockerBuildOptions.value :+ "--platform=linux/arm64,linux/amd64" :+ "--push", | |||
dockerBuildCommand := { |
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.
maybe this can be part of dockerBuildxSettings
and hence not repeated?
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.
Moved that out like suggested.
@@ -349,7 +364,7 @@ lazy val uiSettings = Seq( | |||
lazy val dockerBuildxSettings = Seq( | |||
createBuildx := { | |||
streams.value.log("Creating docker buildx instance") | |||
haltOnCmdResultError(Process("docker buildx create --use --name multi-arch-builder", baseDirectory.value).!) | |||
Process("docker buildx create --use --name multi-arch-builder", baseDirectory.value).! |
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 don't want to halt? :)
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.
Well, that command will return either success with new Buildx instance or just info about existing instance.
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.
So if the instance exist, the command ends in error?
No description provided.