Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Kubernetize #2657

Merged
merged 5 commits into from
Feb 28, 2020
Merged

Kubernetize #2657

merged 5 commits into from
Feb 28, 2020

Conversation

adamnovak
Copy link
Member

This PR sets up some of what we need to work on Kubernetes-based Gitlab runners, and also changes our Docker build a bit so we have a hope of building under Kaniko.

The Kaniko-based build can't work without the fix for GoogleContainerTools/kaniko#1039, but after that it might start working.

@adamnovak
Copy link
Member Author

I did manage to get this to build on the development version of Kaniko:

(kubectl delete job adamnovak-docker-builder || true) && kubectl apply -f - <<'EOF'
apiVersion: batch/v1
kind: Job
metadata:
  name: adamnovak-docker-builder
spec:
  ttlSecondsAfterFinished: 259200
  template:
    spec:
      containers:
      - name: kaniko
        image: gcr.io/kaniko-project/executor:debug-a1af057f997316bfb1c4d2d82719d78481a02a79
        args: ["--dockerfile=Dockerfile",
                "--context=git://github.com/adamnovak/vg.git#refs/heads/kubernetize",
                "--destination=quay.io/adamnovak/vg:kaniko",
                "--cache=false"]
        volumeMounts:
          - name: quay-adamnovak-vg-docker-config
            mountPath: /kaniko/.docker
        resources:
          requests:
            cpu: 8
            memory: "50Gi"
            ephemeral-storage: "50Gi"
          limits:
            cpu: 64
            memory: "50Gi"
            ephemeral-storage: "50Gi"
      restartPolicy: Never
      volumes:
      - name: quay-adamnovak-vg-docker-config
        secret:
          secretName: quay-adamnovak-vg-docker-config
  backoffLimit: 0
EOF

Don't steal my Kubernetes secrets that give access to my Quay vg, please. You also might not need --cache=false.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant