kube-cleanup-operator icon indicating copy to clipboard operation
kube-cleanup-operator copied to clipboard

add multiarch docker build

Open lwolf opened this issue 6 years ago • 5 comments

Add support for multiarch docker manifests

lwolf avatar Jan 08 '19 22:01 lwolf

Just fyi, i've got an ARM build build by drone here: https://github.com/Rick-Jongbloed/kube-cleanup-operator-arm. It might help you to get ARM support build in 🥇

Rick-Jongbloed avatar Aug 12 '19 16:08 Rick-Jongbloed

@Rick-Jongbloed that's cool, thank you

lwolf avatar Aug 12 '19 16:08 lwolf

Hello @lwolf. Kindly asking when that build might be available?

zentavr avatar May 24 '23 23:05 zentavr

Just want to follow up with a similar solution to @Rick-Jongbloed's. This one is a CircleCI job using the aws-ecr orb.

  build-push-cleanup-operator:
    machine:
      image: ubuntu-2204:2024.01.1
      docker_layer_caching: true
    resource_class: arm.medium
    steps:
      - run:
          name: Download and modify kube-cleanup-operator
          command: |
            sudo apt-get update && \
            sudo apt-get install -y git make unzip
            git clone https://github.com/lwolf/kube-cleanup-operator .
            sed -i 's;GOARCH=amd64;GOARM=7 GOARCH=arm;g' Makefile
            sed -i 's;FROM alpine;FROM arm64v8/alpine;g' Dockerfile
      - aws-ecr/build-and-push-image:
          checkout: false
          repo: kube-cleanup-operator
          registry-id: AWS_ACCOUNT_ID
          create-repo: true
          tag: 'kube-cleanup-operator'
          platform: 'linux/arm64'

matthewwalk avatar Feb 16 '24 16:02 matthewwalk

Thanks for the example. If anyone is open to making a PR with GitHub actions build pipeline - feel free to submit a PR

lwolf avatar Feb 17 '24 14:02 lwolf