Skip to content

OSSM-742 Improve Maistra container images build#534

Merged
maistra-bot merged 4 commits intomaistra:maistra-2.2from
bmangoen:OSSM-742
Jul 5, 2022
Merged

OSSM-742 Improve Maistra container images build#534
maistra-bot merged 4 commits intomaistra:maistra-2.2from
bmangoen:OSSM-742

Conversation

@bmangoen
Copy link
Copy Markdown
Contributor

Please provide a description of this PR:

  • With this change, it will be possible to build and push the Maistra container images with make targets.

Example: make HUB=quay.io/my_example_repository push.maistra-image.pilot will build and push the Maistra Pilot container image to quay.io/my_example_repository

  • Each component has now its specific Dockerfile which uses a CentOS base image (instead of other linux distribution)
  • Container images get labels at build time

To help us figure out who should review this PR, please put an X in all the areas that this PR affects.

  • Configuration Infrastructure
  • Docs
  • Installation
  • Networking
  • Performance and Scalability
  • Policies and Telemetry
  • Security
  • Test and Release
  • User Experience
  • Developer Infrastructure

Please check any characteristics that apply to this pull request.

  • Does not have any user-facing changes. This may include CLI changes, API changes, behavior changes, performance improvements, etc.

Copy link
Copy Markdown
Member

@jwendell jwendell left a comment

Choose a reason for hiding this comment

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

Can we make this simpler by having all labels and stuff directly in the dockerfiles?

Also, can we have all dockerfiles in the same dir (e.g., under maistra dir)?

maistra.mk Outdated
$(MAISTRA_IMAGE_RULE)

.PHONY: maistra-image.proxy
maistra-image.proxy: BUILD_PRE=&& chmod 644 envoy_bootstrap.json gcp_envoy_bootstrap.json
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

we should perhaps add something like

maistra-image.proxy: VERSION=${MAISTRA_VERSION}

on the very beginning of these dependencies so that we get the right version in the output of <binary> version subcommand. Example:

Before:

docker run --rm -it quay.io/jwendell/proxy:2.2.0 version
version.BuildInfo{Version:"1.12-dev", GitRevision:"c30e9344bb503d749f9936e82b39706ed9d54730", GolangVersion:"go1.17.9", BuildStatus:"Clean", GitTag:"1.12.6-113-gc30e9344bb"}

After:

$ docker run --rm -it quay.io/jwendell/proxy:2.2.0 version
version.BuildInfo{Version:"2.2.0", GitRevision:"c30e9344bb503d749f9936e82b39706ed9d54730-dirty", GolangVersion:"go1.17.9", BuildStatus:"Modified", GitTag:"1.12.6-113-gc30e9344bb"}

Same to pilot and cni.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

$ docker run --rm -it quay.io/bmangoen/pilot-ubi8:2.2.0 version
version.BuildInfo{Version:"2.2.0", GitRevision:"69a592bccfa1bb3c620286a8840db4c51dcdf2ab-dirty", GolangVersion:"go1.17.9", BuildStatus:"Modified", GitTag:"1.7.0-alpha.0-4267-g69a592bccf"}

$ docker run --rm -it quay.io/bmangoen/istio-cni-ubi8:2.2.0 install-cni version
version.BuildInfo{Version:"2.2.0", GitRevision:"69a592bccfa1bb3c620286a8840db4c51dcdf2ab-dirty", GolangVersion:"go1.17.9", BuildStatus:"Modified", GitTag:"1.7.0-alpha.0-4267-g69a592bccf"}

$ docker run --rm -it quay.io/bmangoen/proxyv2-ubi8:2.2.0 version
version.BuildInfo{Version:"2.2.0", GitRevision:"69a592bccfa1bb3c620286a8840db4c51dcdf2ab-dirty", GolangVersion:"go1.17.9", BuildStatus:"Modified", GitTag:"1.7.0-alpha.0-4267-g69a592bccf"}

@bmangoen
Copy link
Copy Markdown
Contributor Author

bmangoen commented Jul 5, 2022

/retest

1 similar comment
@dgn
Copy link
Copy Markdown
Contributor

dgn commented Jul 5, 2022

/retest

@maistra-bot maistra-bot merged commit 55ecb02 into maistra:maistra-2.2 Jul 5, 2022
@bmangoen bmangoen deleted the OSSM-742 branch July 5, 2022 12:44
@maistra-bot
Copy link
Copy Markdown

In response to a cherrypick label: #534 failed to apply on top of branch "maistra-2.3":

Applying: OSSM-742 Improve Maistra container images build
.git/rebase-apply/patch:46: trailing whitespace.
# This target will set BUILD_LABELS variable 
warning: 1 line adds whitespace errors.
Using index info to reconstruct a base tree...
A	maistra.mk
Falling back to patching base and 3-way merge...
CONFLICT (modify/delete): maistra.mk deleted in HEAD and modified in OSSM-742 Improve Maistra container images build. Version OSSM-742 Improve Maistra container images build of maistra.mk left in tree.
error: Failed to merge in the changes.
hint: Use 'git am --show-current-patch=diff' to see the failed patch
Patch failed at 0001 OSSM-742 Improve Maistra container images build
When you have resolved this problem, run "git am --continue".
If you prefer to skip this patch, run "git am --skip" instead.
To restore the original branch and stop patching, run "git am --abort".

@maistra-bot
Copy link
Copy Markdown

In response to a cherrypick label: #534 failed to apply on top of branch "maistra-2.3":

Applying: OSSM-742 Improve Maistra container images build
.git/rebase-apply/patch:46: trailing whitespace.
# This target will set BUILD_LABELS variable 
warning: 1 line adds whitespace errors.
Using index info to reconstruct a base tree...
A	maistra.mk
Falling back to patching base and 3-way merge...
CONFLICT (modify/delete): maistra.mk deleted in HEAD and modified in OSSM-742 Improve Maistra container images build. Version OSSM-742 Improve Maistra container images build of maistra.mk left in tree.
error: Failed to merge in the changes.
hint: Use 'git am --show-current-patch=diff' to see the failed patch
Patch failed at 0001 OSSM-742 Improve Maistra container images build
When you have resolved this problem, run "git am --continue".
If you prefer to skip this patch, run "git am --skip" instead.
To restore the original branch and stop patching, run "git am --abort".

bmangoen added a commit to bmangoen/maistra-istio that referenced this pull request Aug 25, 2022
* OSSM-742 Improve Maistra container images build

* Simplify make rules and Dockerfiles

* Fix dockerfiles lint issues

* Reorganize files and apply image naming convention

* Update MAISTRA_VERSION and ISTIO_VERSION
maistra-bot pushed a commit that referenced this pull request Sep 28, 2022
* OSSM-742 Improve Maistra container images build (#534)

* OSSM-742 Improve Maistra container images build

* Simplify make rules and Dockerfiles

* Fix dockerfiles lint issues

* Reorganize files and apply image naming convention

* Update MAISTRA_VERSION and ISTIO_VERSION

* Adapt images builds relying on upstream build tool

* Add copyright and license into scripts
maistra-bot pushed a commit that referenced this pull request Nov 23, 2022
* OSSM-742 Improve Maistra container images build (for maistra-2.3) (#606)

* OSSM-742 Improve Maistra container images build (#534)

* OSSM-742 Improve Maistra container images build

* Simplify make rules and Dockerfiles

* Fix dockerfiles lint issues

* Reorganize files and apply image naming convention

* Update MAISTRA_VERSION and ISTIO_VERSION

* Adapt images builds relying on upstream build tool

* Add copyright and license into scripts

* chore: updates image labels to reflect actual targeted versions

* chore: removes vendor left-overs

Co-authored-by: bmangoen <bmangoen@gmail.com>
jewertow pushed a commit to jewertow/istio that referenced this pull request Sep 1, 2023
* OSSM-742 Improve Maistra container images build (for maistra-2.3) (maistra#606)

* OSSM-742 Improve Maistra container images build (maistra#534)

* OSSM-742 Improve Maistra container images build

* Simplify make rules and Dockerfiles

* Fix dockerfiles lint issues

* Reorganize files and apply image naming convention

* Update MAISTRA_VERSION and ISTIO_VERSION

* Adapt images builds relying on upstream build tool

* Add copyright and license into scripts

* chore: updates image labels to reflect actual targeted versions

* chore: removes vendor left-overs

Co-authored-by: bmangoen <bmangoen@gmail.com>
openshift-merge-robot pushed a commit that referenced this pull request Sep 4, 2023
* OSSM-742 Improve Maistra container images build (for maistra-2.3) (#606)

* OSSM-742 Improve Maistra container images build (#534)

* OSSM-742 Improve Maistra container images build

* Simplify make rules and Dockerfiles

* Fix dockerfiles lint issues

* Reorganize files and apply image naming convention

* Update MAISTRA_VERSION and ISTIO_VERSION

* Adapt images builds relying on upstream build tool

* Add copyright and license into scripts

* chore: updates image labels to reflect actual targeted versions

* chore: removes vendor left-overs

Co-authored-by: bmangoen <bmangoen@gmail.com>
yannuil pushed a commit to yannuil/maistra-istio that referenced this pull request May 21, 2024
* OSSM-742 Improve Maistra container images build (for maistra-2.3) (maistra#606)

* OSSM-742 Improve Maistra container images build (maistra#534)

* OSSM-742 Improve Maistra container images build

* Simplify make rules and Dockerfiles

* Fix dockerfiles lint issues

* Reorganize files and apply image naming convention

* Update MAISTRA_VERSION and ISTIO_VERSION

* Adapt images builds relying on upstream build tool

* Add copyright and license into scripts

* chore: updates image labels to reflect actual targeted versions

* chore: removes vendor left-overs

Co-authored-by: bmangoen <bmangoen@gmail.com>
yannuil pushed a commit to yannuil/maistra-istio that referenced this pull request May 21, 2024
* OSSM-742 Improve Maistra container images build (for maistra-2.3) (maistra#606)

* OSSM-742 Improve Maistra container images build (maistra#534)

* OSSM-742 Improve Maistra container images build

* Simplify make rules and Dockerfiles

* Fix dockerfiles lint issues

* Reorganize files and apply image naming convention

* Update MAISTRA_VERSION and ISTIO_VERSION

* Adapt images builds relying on upstream build tool

* Add copyright and license into scripts

* chore: updates image labels to reflect actual targeted versions

* chore: removes vendor left-overs

Co-authored-by: bmangoen <bmangoen@gmail.com>
yannuil pushed a commit to yannuil/maistra-istio that referenced this pull request May 21, 2024
* OSSM-742 Improve Maistra container images build (for maistra-2.3) (maistra#606)

* OSSM-742 Improve Maistra container images build (maistra#534)

* OSSM-742 Improve Maistra container images build

* Simplify make rules and Dockerfiles

* Fix dockerfiles lint issues

* Reorganize files and apply image naming convention

* Update MAISTRA_VERSION and ISTIO_VERSION

* Adapt images builds relying on upstream build tool

* Add copyright and license into scripts

* chore: updates image labels to reflect actual targeted versions

* chore: removes vendor left-overs

Co-authored-by: bmangoen <bmangoen@gmail.com>
yannuil pushed a commit to yannuil/maistra-istio that referenced this pull request May 22, 2024
* OSSM-742 Improve Maistra container images build (for maistra-2.3) (maistra#606)

* OSSM-742 Improve Maistra container images build (maistra#534)

* OSSM-742 Improve Maistra container images build

* Simplify make rules and Dockerfiles

* Fix dockerfiles lint issues

* Reorganize files and apply image naming convention

* Update MAISTRA_VERSION and ISTIO_VERSION

* Adapt images builds relying on upstream build tool

* Add copyright and license into scripts

* chore: updates image labels to reflect actual targeted versions

* chore: removes vendor left-overs

Co-authored-by: bmangoen <bmangoen@gmail.com>
yannuil pushed a commit to yannuil/maistra-istio that referenced this pull request May 22, 2024
* OSSM-742 Improve Maistra container images build (for maistra-2.3) (maistra#606)

* OSSM-742 Improve Maistra container images build (maistra#534)

* OSSM-742 Improve Maistra container images build

* Simplify make rules and Dockerfiles

* Fix dockerfiles lint issues

* Reorganize files and apply image naming convention

* Update MAISTRA_VERSION and ISTIO_VERSION

* Adapt images builds relying on upstream build tool

* Add copyright and license into scripts

* chore: updates image labels to reflect actual targeted versions

* chore: removes vendor left-overs

Co-authored-by: bmangoen <bmangoen@gmail.com>
yannuil pushed a commit to yannuil/maistra-istio that referenced this pull request May 22, 2024
* OSSM-742 Improve Maistra container images build (for maistra-2.3) (maistra#606)

* OSSM-742 Improve Maistra container images build (maistra#534)

* OSSM-742 Improve Maistra container images build

* Simplify make rules and Dockerfiles

* Fix dockerfiles lint issues

* Reorganize files and apply image naming convention

* Update MAISTRA_VERSION and ISTIO_VERSION

* Adapt images builds relying on upstream build tool

* Add copyright and license into scripts

* chore: updates image labels to reflect actual targeted versions

* chore: removes vendor left-overs

Co-authored-by: bmangoen <bmangoen@gmail.com>
openshift-merge-bot bot pushed a commit that referenced this pull request May 23, 2024
* OSSM-742 Improve Maistra container images build (for maistra-2.3) (#606)

* OSSM-742 Improve Maistra container images build (#534)

* OSSM-742 Improve Maistra container images build

* Simplify make rules and Dockerfiles

* Fix dockerfiles lint issues

* Reorganize files and apply image naming convention

* Update MAISTRA_VERSION and ISTIO_VERSION

* Adapt images builds relying on upstream build tool

* Add copyright and license into scripts

* chore: updates image labels to reflect actual targeted versions

* chore: removes vendor left-overs

Co-authored-by: bmangoen <bmangoen@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants