Coding01

Coding 点滴

0%

OpenFaaS 简介

OpenFaaS ® - Serverless Functions Made Simple

下载 Kubernetes 的 OpenFaaS 驱动程序 faas-netes:

1
2
3
4
5
git clone https://github.com/openfaas/faas-netes && cd faas-netes

or 国内码云镜像:

git clone https://gitee.com/mirrors/faas-netes.git && cd faas-netes

OpenFaaS (Functions as a Service) is a framework for building serverless functions with Docker and Kubernetes.

简言之,OpenFaaS 是一个使用 Docker 构建 Serverless 功能的框架,它拥有对指标的一级支持。任何流程都可以打包为一个函数,使你能够使用一系列 web 事件,而无需重复的样板化编码。

Read more »

Rasa X 介绍

Rasa X can be used in local mode and in server mode. Rasa X in local mode is helpful for sharing your assistant before you have a server set up. Once your assistant is up and running, you will want to deploy Rasa X to a server so that it’s available 24/7 and everyone on your team can use it to review conversations and annotate new training data.

之前介绍了本地模式,今天来折腾下 docker compose 模式。

要求服务器环境前提安装 python3, dockerdocker-compose

主要四个步骤:

  1. Download
  2. Install
  3. Start
  4. Access
Read more »

Rasa X 介绍

Rasa X can be used in local mode and in server mode. Rasa X in local mode is helpful for sharing your assistant before you have a server set up. Once your assistant is up and running, you will want to deploy Rasa X to a server so that it’s available 24/7 and everyone on your team can use it to review conversations and annotate new training data.

Local Mode

下载:

1
pip3 install rasa-x --extra-index-url https://pypi.rasa.com/simple

在项目路径下,执行命令:

1
rasa x

即可启动网页操作了,在网页上尝试和我们的机器人交流:

Read more »

接下来结合工作,输出 Rasa 的使用系列文章。

Build contextual assistants that really help customers

Rasa is the standard infrastructure layer for developers to build, improve, and deploy better AI assistants. Powered by open source.

Read more »

创建一个简单的 Node.js 应用

1
2
3
4
5
6
7
var http = require('http');
var handleRequest = function(request, response) {
response.writeHead(200);
response.end('Hello World!');
};
var www = http.createServer(handleRequest);
www.listen(8088);

创建 Dockerfile 文件:

1
2
3
4
FROM node:latest
EXPOSE 8088
COPY server.js .
CMD [ "node", "server.js" ]
Read more »

接下来是一系列 Kubernetes 学习笔记,今天是第一节:「安装 minikube」。

因为我用的是 MAC 系统,所以直接利用官方 Github 安装 minikube

1
curl -Lo minikube https://github.com/kubernetes/minikube/releases/download/v1.9.2/minikube-darwin-amd64 && chmod +x minikube && sudo mv minikube /usr/local/bin/
Read more »