-
Notifications
You must be signed in to change notification settings - Fork 771
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
Support BuildConfigs for openshift provider #96
Comments
I want to work on this issue. |
@rtnpro I am thinking of handling builds in multiple ways:
|
To be honest, I don't like assumption that user is using single node cluster. |
|
My issue with this is that it is quite limiting :-( This requires that you have single node cluster, and that you have remote access to that docker daemon. Wouldn't be better to build that image locally and that push it to OpenShift's registry? We have done similar thing in OpenShift2Nulecule. This will also work with clusters. OpenShift has already internal registry and for Kubernetes we can use its registry addon as mentioned in #97 (comment) |
So going ahead we right now only implement what OpenShift by default provides, which is detect the source code's git remote and create buildConfigs with that info in buildconfig artifact. Further we still have to work on doing local builds without having to rely on remote git repo. |
Just to explain this more deeply how this is example who will work: versoin: 2
services:
foo:
build: ./ When you run kompose on this file, kompose will try to detect remote of this git and use it as source for build. apiVersion: v1
kind: BuildConfig
metadata:
name: foo
spec:
output:
to:
kind: ImageStreamTag
name: foo:latest
source:
type: Git
git:
ref: master
uri: http://github.com/foo/bar
contextDir: ./
strategy:
dockerStrategy:
type: Docker
from:
kind: ImageStreamTag
name: foo:from
triggers:
- type: ConfigChange
- type: ImageChange This means that build is not from local directory but from remote git repository. |
@rtnpro you need to accept the invitation to the kompose contributor team |
just a thought, is there a way to run docker in docker in a Kubernetes pod ? |
it would require root access, so it depends on how you have the cluster set up. I think overall it's not going to be an option, though. |
Hi @bgrant0607, what was reason for removing @rtnpro from this? Or it was just something that happened during move to incubator? |
@kadel It just happened during the move. Only org members can be assigned to issues and PRs. I had to invite all kompose contributors to the kubernetes-incubator org. |
@bgrant0607 Thank you. I thought that this was it. |
When the provider is selected as
openshift
and if docker-compose file hasbuild
directive then create abuildconfig
out of it, along withdeploymentconfig
andservice
The text was updated successfully, but these errors were encountered: