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

Adding a Dockerfile to create the scheduled workflow container. #11

Merged
merged 1 commit into from
Jun 7, 2018
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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"