This file contains 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
$ sudo minikube - vm-driver none start | |
[sudo] password for naoko: | |
Starting local Kubernetes v1.10.0 cluster… | |
Starting VM… | |
Getting VM IP address… | |
Moving files into cluster… | |
Setting up certs… | |
Connecting to cluster… | |
Setting up kubeconfig… | |
Starting cluster components… |
This file contains 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
# download | |
curl -O http://www.openfst.org/twiki/pub/FST/FstDownload/openfst-1.6.2.tar.gz | |
tar -xvzf openfst-1.6.2.tar.gz | |
rm openfst-1.6.2.tar.gz | |
cd openfst-1.6.2 | |
./configure --enable-python | |
make | |
make install | |
# Test installtion |
This file contains 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
import logging | |
from google.cloud import pubsub | |
logger = logging.getLogger(__name__) | |
def create_topic(topic_name): | |
client = pubsub.Client() | |
topic = client.topic(topic_name) |