opsys=linux # or darwin, or windows
curl -s https://api.github.com/repos/kubernetes-sigs/kustomize/releases/latest |\
grep browser_download |\
grep $opsys |\
cut -d '"' -f 4 |\
xargs curl -O -L
mv kustomize_*_${opsys}_amd64 kustomize
chmod u+x kustomize
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ python build_image.py --tf_version=1.13.1 --platform=cpu tf_notebook | |
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES | |
INFO|2019-06-06T23:48:38|build_image.py|71| docker daemon ready. | |
INFO|2019-06-06T23:48:38|build_image.py|25| Running: docker build --pull --build-arg INSTALL_TFMA=yes --build-arg TF_PACKAGE=http://file.rdu.redhat.com/smodeel/thoth/tensorflow-1.13.1-cp36-cp36m-linux_x86_64.whl --build-arg BASE_IMAGE=ubuntu:18.04@sha256:de774a3145f7ca4f0bd144c7d4ffb2931e06634f11529653b23eba85aef8e378 --build-arg TF_PACKAGE_PY_27=http://file.rdu.redhat.com/smodeel/thoth/tensorflow-1.13.1-cp27-none-linux_x86_64.whl -t gcr.io/kubeflow-images-public/tensorflow-1.13.1-notebook-cpu:latest -f Dockerfile . | |
cwd=/Users/subin/development/kubeflow/kubeflow/components/tensorflow-notebook-image | |
INFO|2019-06-06T23:48:38|build_image.py|40| Subprocess output: | |
INFO|2019-06-06T23:48:39|build_image.py|46| Sending build context to Docker daemon 19.9M |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
bash-4.1# auditwheel show /input/tensorflow-1.13.1-cp27-none-linux_x86_64.whl | |
tensorflow-1.13.1-cp27-none-linux_x86_64.whl is consistent with the | |
following platform tag: "manylinux2010_x86_64". | |
The wheel references external versioned symbols in these system- | |
provided shared libraries: libc.so.6 with versions {'GLIBC_2.2.5', | |
'GLIBC_2.3.4', 'GLIBC_2.6', 'GLIBC_2.7', 'GLIBC_2.10', 'GLIBC_2.3', | |
'GLIBC_2.3.2', 'GLIBC_2.9', 'GLIBC_2.4', 'GLIBC_2.11'}, libstdc++.so.6 | |
with versions {'CXXABI_1.3.3', 'GLIBCXX_3.4.10', 'GLIBCXX_3.4', |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/tensorflow/tensorflow.bzl b/tensorflow/tensorflow.bzl | |
index d93e0df..8825820 100644 | |
--- a/tensorflow/tensorflow.bzl | |
+++ b/tensorflow/tensorflow.bzl | |
@@ -377,7 +377,7 @@ def tf_cc_shared_object( | |
srcs = [], | |
deps = [], | |
data = [], | |
- linkopts = [], | |
+ linkopts = ['-lrt'], |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
bash-4.1# auditwheel show tensorflow-gpu-1.13.1-cp | |
tensorflow-gpu-1.13.1-cp27-none-linux_x86_64.whl tensorflow-gpu-1.13.1-cp36-cp36m-linux_x86_64.whl | |
bash-4.1# auditwheel show tensorflow-gpu-1.13.1-cp36-cp36m-linux_x86_64.whl | |
tensorflow-gpu-1.13.1-cp36-cp36m-linux_x86_64.whl is consistent with | |
the following platform tag: "linux_x86_64". | |
The wheel references external versioned symbols in these system- | |
provided shared libraries: librt.so.1 with versions {'GLIBC_2.2.5'}, | |
libgcc_s.so.1 with versions {'GCC_3.0'}, libcudart.so.10.0 with |
/Volumes/Samsung_T5/development/TEST_SSD$ time git clone https://github.com/openshift/origin.git
Cloning into 'origin'...
remote: Enumerating objects: 53, done.
remote: Counting objects: 100% (53/53), done.
remote: Compressing objects: 100% (49/49), done.
remote: Total 533223 (delta 7), reused 9 (delta 4), pack-reused 533170
Receiving objects: 100% (533223/533223), 976.50 MiB | 9.93 MiB/s, done.
Resolving deltas: 100% (339788/339788), done.
Checking connectivity... done.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ docker version | |
Client: Docker Engine - Community | |
Version: 18.09.1 | |
API version: 1.39 | |
Go version: go1.10.6 | |
Git commit: 4c52b90 | |
Built: Wed Jan 9 19:33:12 2019 | |
OS/Arch: darwin/amd64 | |
Experimental: false |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#set root password if not set | |
sudo passwd | |
sudo yum update -y | |
sudo vi /etc/ssh/sshd_config | |
Make sure below 2 lines exists with yes | |
PermitEmptyPasswords yes | |
PasswordAuthentication yes |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from openshift.dynamic import DynamicClient | |
from kubernetes.client import Configuration, ApiClient | |
from kubernetes.config.incluster_config import InClusterConfigLoader | |
import urllib3 | |
def load_incluster_config(environ): | |
"""Use the service account kubernetes gives to pods to connect to kubernetes | |
cluster. It's intended for clients that expect to be running inside a pod |
https://gist.github.com/sub-mod/18c23839ccbac660de08ba5f6033defd
#FROM centos:7
FROM nvidia/cuda:9.0-cudnn7-devel-centos7