Skip to content

Commit

Permalink
Merge pull request #11 from kubeflow/vicaire/samples
Browse files Browse the repository at this point in the history
Adding a Dockerfile to create the scheduled workflow container.
  • Loading branch information
vicaire authored Jun 7, 2018
2 parents 9cd9c7b + 5244f5e commit c68a3c6
Show file tree
Hide file tree
Showing 3 changed files with 29 additions and 4 deletions.
21 changes: 21 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
FROM golang

WORKDIR /go/src/github.com/kubeflow/pipelines

COPY . .

RUN go get ./resources/scheduledworkflow/...

# We need to remove this glog package as it conflicts with the glog package in
# /go/src/github.com/golang/glog.
RUN rm -r /go/src/k8s.io/kubernetes/vendor/github.com/golang/glog

RUN go build -o /bin/controller ./resources/scheduledworkflow/*.go

FROM ubuntu

WORKDIR /bin

COPY --from=0 /bin/controller /bin/controller

CMD /bin/controller -alsologtostderr=true
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ scheduledworkflow.kubeflow.org "every-minute-cron" created
To see the current list of ScheduledWorkflows, execute:

```
kubectl get scheduledworkflows
kubectl get swf
```

Output:
Expand All @@ -63,7 +63,7 @@ every-minute-cron 1m
To see the current status of the ScheduledWorklfow named 'every-minute-cron', execute:

```
kubectl describe scheduledworkflow every-minute-cron
kubectl describe swf every-minute-cron
```

Output:
Expand Down
8 changes: 6 additions & 2 deletions install/manifests/scheduledworkflow-crd.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,5 +7,9 @@ spec:
version: v1alpha1
scope: Namespaced
names:
kind: ScheduledWorkflow
plural: scheduledworkflows
kind: "ScheduledWorkflow"
listKind: "ScheduledWorkflowList"
plural: "scheduledworkflows"
shortNames:
- "swf"
singular: "scheduledworkflow"

0 comments on commit c68a3c6

Please sign in to comment.