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

Dockerfile for other CI providers #47

Closed
MaxRink opened this issue Apr 28, 2021 · 3 comments
Closed

Dockerfile for other CI providers #47

MaxRink opened this issue Apr 28, 2021 · 3 comments

Comments

@MaxRink
Copy link

MaxRink commented Apr 28, 2021

The Dockerfile currently doesnt seem to work on GitLab CI for example, as GL-CI expects to be able to oppen up a shell in the container and execute the cmd that way.
Just specifying entrypoint and args isnt allowed by gitlab and treatet as an invalid config.
For the dokcer image to work properly with Gitlab CI there would need to be a shell inside the container, although the entrypoint could just remain as it is right now.

@yannh
Copy link
Owner

yannh commented May 24, 2021

Hi Max, I understand the need - though using a different base image also means I'd have to keep it up to date. What do you need, just a Dockerfile or also a full docker image hosted somewhere?

@aexvir
Copy link

aexvir commented Aug 6, 2021

just leaving a small comment here, as we're maintaining our own kubconform image that we're using in GitLab CI

you can either just call kubeconform

kubeconform:
  stage: analysis
  image: kiwicom/kubeconform
  cache:
    key: "kubeconform-${CI_COMMIT_REF_SLUG}"
    paths:
      - .cache/
  script:
    - kubeconform -cache .cache -summary -exit-on-error k8s

or use our analyse script which iterates and renders all the kustomizations before running kubeconform

kubeconform:
  stage: analysis
  image: kiwicom/kubeconform
  cache:
    key: "kubeconform-${CI_COMMIT_REF_SLUG}"
    paths:
      - .cache/
  variables:
    KUBECONFORM_CACHE: .cache
  script:
    - analyse k8s

or feel free to just take as inspiration for anything else 😅

@yannh
Copy link
Owner

yannh commented Aug 29, 2021

I have rewritten the Docker image release process, new releases should publish an alpine variant:

image

I hope this helps!

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

No branches or pull requests

3 participants