Skip to content

Commit

Permalink
Copy third party vendor source code to Docker image (#1128)
Browse files Browse the repository at this point in the history
* Copy vendor source code to Docker image

* copy vendor

* remove alpha
  • Loading branch information
richardsliu authored and k8s-ci-robot committed Jan 9, 2020
1 parent 5db331d commit 0b9711d
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
3 changes: 3 additions & 0 deletions build/images/tf_operator/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,9 @@ COPY --from=build-image /go/src/github.com/kubeflow/tf-operator/tf-operator.v1 /

COPY third_party/library/license.txt /opt/kubeflow/license.txt

RUN mkdir -p /opt/kubeflow/vendor
COPY vendor /opt/kubeflow/vendor/

RUN chmod a+x /opt/kubeflow/tf-operator.v1

ENTRYPOINT ["/opt/kubeflow/tf-operator.v1"]
3 changes: 0 additions & 3 deletions py/kubeflow/tf_operator/deploy.py
Original file line number Diff line number Diff line change
Expand Up @@ -128,9 +128,6 @@ def setup_cluster(args):
}

if args.accelerators:
# TODO(jlewi): Stop enabling Alpha once GPUs make it out of Alpha
cluster_request["cluster"]["enableKubernetesAlpha"] = True

cluster_request["cluster"]["nodeConfig"]["accelerators"] = []
for accelerator_spec in args.accelerators:
accelerator_type, accelerator_count = accelerator_spec.split("=", 1)
Expand Down

0 comments on commit 0b9711d

Please sign in to comment.