[
https://issues.apache.org/jira/browse/CASSANDRA-18931?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17839227#comment-17839227
]
Michael Semb Wever edited comment on CASSANDRA-18931 at 2/16/25 10:50 AM:
--------------------------------------------------------------------------
if we want to also push to our jfrog repository, it becomes…
{code}
docker login apache.jfrog.io/cassan-docker
cd .build
image_name="apache/cassandra-almalinux-build:$(md5sum
docker/almalinux-build.docker | cut -d' ' -f1)"
docker buildx build --platform linux/amd64,linux/arm64 -t "${image_name}" -t
"apache.jfrog.io/cassan-docker/${image_name}" -f docker/almalinux-build.docker
--provenance=true --sbom=true --push .
image_name="apache/cassandra-bullseye-build:$(md5sum
docker/bullseye-build.docker | cut -d' ' -f1)"
docker buildx build --platform linux/amd64,linux/arm64 -t "${image_name}" -t
"apache.jfrog.io/cassan-docker/${image_name}" -f docker/bullseye-build.docker
--provenance=true --sbom=true --push .
image_name="apache/cassandra-centos7-build:$(md5sum docker/centos7-build.docker
| cut -d' ' -f1)"
docker buildx build --platform linux/amd64,linux/arm64 -t "${image_name}" -t
"apache.jfrog.io/cassan-docker/${image_name}" -f docker/centos7-build.docker
--provenance=true --sbom=true --push .
image_name="apache/cassandra-ubuntu2004_test:$(md5sum
docker/ubuntu2004_test.docker | cut -d' ' -f1)"
docker buildx build --platform linux/amd64,linux/arm64 -t "${image_name}" -t
"apache.jfrog.io/cassan-docker/${image_name}" -f docker/ubuntu2004_test.docker
--provenance=true --sbom=true --push .
{code}
was (Author: michaelsembwever):
if we want to also push to our jfrog repository, it becomes…
{code}
docker login apache.jfrog.io/cassan-docker
cd .build
image_name="apache/cassandra-almalinux-build:$(md5sum
docker/almalinux-build.docker | cut -d' ' -f1)"
docker buildx build --platform linux/amd64,linux/arm64 -t "${image_name}" -t
"apache.jfrog.io/cassan-docker/${image_name}" -f docker/almalinux-build.docker
--push .
image_name="apache/cassandra-bullseye-build:$(md5sum
docker/bullseye-build.docker | cut -d' ' -f1)"
docker buildx build --platform linux/amd64,linux/arm64 -t "${image_name}" -t
"apache.jfrog.io/cassan-docker/${image_name}" -f docker/bullseye-build.docker
--push .
image_name="apache/cassandra-centos7-build:$(md5sum docker/centos7-build.docker
| cut -d' ' -f1)"
docker buildx build --platform linux/amd64,linux/arm64 -t "${image_name}" -t
"apache.jfrog.io/cassan-docker/${image_name}" -f docker/centos7-build.docker
--push .
image_name="apache/cassandra-ubuntu2004_test:$(md5sum
docker/ubuntu2004_test.docker | cut -d' ' -f1)"
docker buildx build --platform linux/amd64,linux/arm64 -t "${image_name}" -t
"apache.jfrog.io/cassan-docker/${image_name}" -f docker/ubuntu2004_test.docker
--push .
{code}
> ci job to build and push new in-tree docker images when dockerfile changes
> --------------------------------------------------------------------------
>
> Key: CASSANDRA-18931
> URL: https://issues.apache.org/jira/browse/CASSANDRA-18931
> Project: Apache Cassandra
> Issue Type: Task
> Components: CI
> Reporter: Michael Semb Wever
> Assignee: Michael Semb Wever
> Priority: Normal
>
> The dockerfiles under .build/docker are now and are deployed by file md5sum.
> (There is no "latest").
> in-tree scripts will have to build these images on-the-fly if they are not
> available to pull from dockerhub.
> Automatically building and pushing them to dockerhub whenever they change
> will save a lot of resources and time in tests/CI.
--
This message was sent by Atlassian Jira
(v8.20.10#820010)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]