Skip to content

Sync Calico node arm64 Dockerfile with amd64#8532

Merged
hjiawei merged 1 commit intomasterfrom
node-dockerfile-sync
Feb 20, 2024
Merged

Sync Calico node arm64 Dockerfile with amd64#8532
hjiawei merged 1 commit intomasterfrom
node-dockerfile-sync

Conversation

@hjiawei
Copy link
Contributor

@hjiawei hjiawei commented Feb 19, 2024

Description

This change syncs Calico node arm64 Dockerfile with amd64. It also removes an ARCH environment variable definition as it conflicts with the same variable defined in other Makefiles. Calico node Dockerfiles are architecture dependent so arch info are hard-coded now until we unify them.

Related issues/PRs

Todos

  • Tests
  • Documentation
  • Release note

Release Note

TBD

Reminder for the reviewer

Make sure that this PR has the correct labels and milestone set.

Every PR needs one docs-* label.

  • docs-pr-required: This change requires a change to the documentation that has not been completed yet.
  • docs-completed: This change has all necessary documentation completed.
  • docs-not-required: This change has no user-facing impact and requires no docs.

Every PR needs one release-note-* label.

  • release-note-required: This PR has user-facing changes. Most PRs should have this label.
  • release-note-not-required: This PR has no user-facing changes.

Other optional labels:

  • cherry-pick-candidate: This PR should be cherry-picked to an earlier release. For bug fixes only.
  • needs-operator-pr: This PR is related to install and requires a corresponding change to the operator.

This change syncs Calico node arm64 Dockerfile with amd64. It also removes
an `ARCH` environment variable definition as it conflicts with the same
variable defined in other Makefiles. Calico node Dockerfiles are architecture
dependent so arch info are hard-coded now until we unify them.
@marvin-tigera marvin-tigera added this to the Calico v3.28.0 milestone Feb 19, 2024
@marvin-tigera marvin-tigera added release-note-required Change has user-facing impact (no matter how small) docs-pr-required Change is not yet documented labels Feb 19, 2024
@hjiawei hjiawei marked this pull request as ready for review February 19, 2024 21:23
@hjiawei hjiawei requested a review from a team as a code owner February 19, 2024 21:23
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
ARG ARCH=x86_64
Copy link
Contributor Author

Choose a reason for hiding this comment

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

This environment variable conflicts with the same variable defined in Makefile.

# Now install libnftnl and libnftnl-devel
rpm -Uv /root/rpmbuild/RPMS/${ARCH}/libnftnl-${LIBNFTNL_VER}.el8.${ARCH}.rpm && \
rpm -Uv /root/rpmbuild/RPMS/${ARCH}/libnftnl-devel-${LIBNFTNL_VER}.el8.${ARCH}.rpm && \
rpm -Uv /root/rpmbuild/RPMS/x86_64/libnftnl-${LIBNFTNL_VER}.el8.x86_64.rpm && \
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Hard code arch info for now because this Dockerfile is arch dependent.

@hjiawei hjiawei merged commit d5905aa into master Feb 20, 2024
@hjiawei hjiawei deleted the node-dockerfile-sync branch February 20, 2024 20:56
@caseydavenport caseydavenport added docs-not-required Docs not required for this change release-note-not-required Change has no user-facing impact labels May 3, 2024
@marvin-tigera marvin-tigera removed release-note-required Change has user-facing impact (no matter how small) docs-pr-required Change is not yet documented labels May 3, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

docs-not-required Docs not required for this change release-note-not-required Change has no user-facing impact

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants