lwolf / kube-cleanup-operator

Kubernetes Operator to automatically delete completed Jobs and their Pods
MIT License
503 stars 109 forks source link

add multiarch docker build #21

Closed lwolf closed 5 months ago

lwolf commented 5 years ago

Add support for multiarch docker manifests

Rick-Jongbloed commented 5 years ago

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 🥇

lwolf commented 5 years ago

@Rick-Jongbloed that's cool, thank you

zentavr commented 1 year ago

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

matthewwalk commented 8 months ago

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'
lwolf commented 8 months ago

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

awilmore commented 5 months ago

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

@lwolf hopefully this will do the job: https://github.com/lwolf/kube-cleanup-operator/pull/95