Skip to content
This repository has been archived by the owner on Nov 15, 2022. It is now read-only.

Add build support of S2I build #309

Closed
surajssd opened this issue Oct 4, 2017 · 5 comments
Closed

Add build support of S2I build #309

surajssd opened this issue Oct 4, 2017 · 5 comments
Assignees
Milestone

Comments

@surajssd
Copy link
Member

surajssd commented Oct 4, 2017

This is again a specific use case that solves the build story #273 for kedge using OpenShift S2I.

  • When provider is OpenShift then do builds using S2I
  • Generate buildconfig and imagestream
@surajssd surajssd added this to the 0.4.0 milestone Oct 4, 2017
@surajssd
Copy link
Member Author

surajssd commented Oct 4, 2017

Right now this is blocked on the openshift support #299 and #288 and This is blocked on #315

@kadel kadel modified the milestones: 0.4.0, 0.5.0 Oct 10, 2017
@surajssd
Copy link
Member Author

Also before doing this, we should implement #331

@kadel
Copy link
Member

kadel commented Nov 7, 2017

Also before doing this, we should implement #331

This is not related to BuildConfigs in Kedge file. It should be about adding another building strategy for kedge build command. On the background, it might generate BuildConfig on the fly but that is not related to BuildConfig definition in Kedge file.

@kadel
Copy link
Member

kadel commented Nov 13, 2017

First version of this should allow to set image name and builder image

kedge build --context directory --image output-image --builder-image builderImage:tag

this command should generate something similar to this:

apiVersion: v1
kind: ImageStream
metadata:
  name: output-image
spec:
  tags:
  - name: latest

---
kind: BuildConfig
apiVersion: v1
metadata:
  name: output-image
spec:
  strategy:
    type: Binary
    sourceStrategy:
      from:
        kind: DockerImage
        name: builderImage:tag
  output:
    to:
      kind: "ImageStreamTag"
      name: "output-image:latest"

and than run
oc start-build output-image --follow --from-dir directory

@kadel
Copy link
Member

kadel commented Dec 11, 2017

closed in #452

@kadel kadel closed this as completed Dec 11, 2017
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

3 participants