AWS LAMBDA TutorialgetLogger().log("Input: " + input); // TODO: implement your handler return "Hello from Lambda!"; } Observe that from the above code, the handler will be com.amazonaws Request Id " + context.getAwsRequestId()); // TODO: implement your handler return "Hello from Lambda!"; } } Once you run the code given above, you can find the output as given below: " + context.getAwsRequestId()+"\n"); // TODO: implement your handler return "Hello from Lambda!"; } The code shown above will give you the following output:0 码力 | 393 页 | 13.45 MB | 1 年前3
Kubernetes 管理 Docker 容器Desktop Dashboard(MasOC) minikube start 回启动⼀个 Docker 容器: 打包 Nodejs 应⽤镜像 创建 Nodejs 应⽤程序 创建 hello-node ⽂件夹,添加以下⽂件以及代码: server.js var http = require('http'); var handleRequest = function(request end('Hello World!'); }; var www = http.createServer(handleRequest); www.listen(8080); Dockerfile FROM node:10.20.0 EXPOSE 8080 COPY server.js . CMD node server.js 打包 docker build -t hello-node:v1 SIZE # hello-node v1 353fc3541cea 2 minutes ago 912MB 创建 Deployment Kubernetes Pod 是⼀个或多个容器组合在⼀起得共享资源,Kubernetes Deployment 是检查 Pod的健康状况。 kubectl create deployment hello-node --image=hello-node:v10 码力 | 5 页 | 675.91 KB | 1 年前3
Docker 从入门到实践 0.9.0(2017-12-31)退出当前终端并重新登录,进行如下测试。 Ubuntu 27 测试 Docker 是否安装正确 $ docker run hello-world Unable to find image 'hello-world:latest' locally latest: Pulling from library/hello-world ca4f61b1923c: Pull complete Digest: sha256 9ffeffa6b05338b98ebb16c87b255f48e297ec7f98e123905c Status: Downloaded newer image for hello-world:latest Hello from Docker! This message shows that your installation appears to be working correctly following steps: 1. The Docker client contacted the Docker daemon. 2. The Docker daemon pulled the "hello-world" image from the Docker Hub. (amd64) 3. The Docker daemon created a new container from0 码力 | 370 页 | 6.73 MB | 1 年前3
Docker 从入门到实践 0.4修改代码后提交,并推送到自己的仓库。 $ #do some change on the content $ git commit -am "Fix issue #1: change helo to hello" $ git push 在 GitHub 网站上提交 pull request。 定期使用项目仓库内容更新自己仓库内容。 $ git remote add upstream https://github 所需要的命令主要为 docker run 。 例如,下面的命令输出一个 “Hello World”,之后终止容器。 $ sudo docker run ubuntu:14.04 /bin/echo 'Hello world' Hello world 这跟在本地直接执行 /bin/echo 'hello world' 几乎感觉不出任何区别。 下面的命令则启动一个 bash 终端,允许用户进行交互。 -d 参 数来实现。 例如下面的命令会在后台运行容器。 $ sudo docker run -d ubuntu:14.04 /bin/sh -c "while true; do echo hello world; sleep 1; done" 1e5535038e285177d5214659a068137486f96ee5c2e85a4ac52dc83f2ebe4147 容器启动后会返回一个唯一的0 码力 | 179 页 | 2.27 MB | 1 年前3
OpenShift Container Platform 4.13 网络haproxy[108]: 174.19.21.82:39654 [11/May/2020:19:11:50.133] public be_http:hello-openshift:hello-openshift/pod:hello-openshift:hello-openshift:10.128.2.12:8080 0/0/1/0/1 200 142 - - --NI 1/1/0/0/0 0/0 "GET 1. 输入 oc patch 命令将 HTTP host 标头改为 Host: 2. 注解应用程序的路由: $ oc expose service hello-openshift route.route.openshift.io/hello-openshift exposed $ oc get routes NAME HOST/PORT PATH SERVICES PORT TERMINATION WILDCARD hello-openshift hello_openshift-.test.example.com hello-openshift 8080-tcp None $ oc -n openshift-ingress-operator 0 码力 | 697 页 | 7.55 MB | 1 年前3
Apache Karaf Decanter 2.x - Documentation property hello with value world: ---- fields.add.hello=world ---- Apache Karaf Decanter 2.x - Documentation - 23 • fields.remove. removes a property to the data sent: ---- fields.remove.hello= ---- • fields.rename. rename a property with another name: ---- fields.rename.helo=hello ---- 1.3. APPENDERS Decanter appenders receive the data from the collectors, and store the data into a storage backendHello World 0 码力 | 64 页 | 812.01 KB | 1 年前3
Apache Karaf 3.0.5 GuidesArrayList objects (like get or size for instance): karaf@root()> list = ["Hello" world]; echo ($list get 0) ($list get 1) Hello world We can note here that calling a method on an object is directly using to a given type. karaf@root()> ("hello world" toCharArray) [h, e, l, l, o, , w, o, r, l, d] If it fails, you will see the casting exception: karaf@root()> ("hello world" toCharArray)[0] Error executing scripting: execution of command. karaf@root()> echo hello world hello world You can also assign value to session variables: karaf@root()> msg = "hello world" hello world Once you have assigned a value to a variable0 码力 | 203 页 | 534.36 KB | 1 年前3
OpenShift Container Platform 4.10 CLI 工具8080) frontend deploys origin-ruby-sample:latest <- builds https://github.com/openshift/ruby-hello-world with joe-project/ruby-20-centos7:latest #1 deployed 22 minutes ago - 2 pods To see more # Expose a deployment configuration as a service and use the specified port oc expose dc ruby-hello-world --port=8080 # Expose a service as a route in the specified path oc expose service nginx application from a remote repository using its beta4 branch oc new-app https://github.com/openshift/ruby-hello-world#beta4 # Create an application based on a stored template, explicitly setting a parameter0 码力 | 120 页 | 1.04 MB | 1 年前3
BAETYL 0.1.6 DocumentationConvention . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 81 11.3 Hello World . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Convention . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 87 12.3 Hello World . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . event['messageQOS'] = context['messageQOS'] event['messageTopic'] = context['messageTopic'] event['sayhi'] = 'hello, world' return event _NOTE: In the native process mode, to run sayhi.py provided in the example of0 码力 | 120 页 | 7.27 MB | 1 年前3
Helm 及Helm 应用仓库简介李辉— KubeSphere - 云原生实战-n harbor 6. 登录 harbor, 默认账户密码 admin: Harbor12345 _ by QingCloud 如何开发一个 Helm 应用 • helm create hello-chart: 创建 Chart 目录 chart.yaml: 声明了当前 Chart 的名称、版本等基本信息 values.yaml: 提供应用安装时的默认参数 templates/: 包含应用部署所需要使用的YAML charts/: 当前 Chart 依赖的其它 Chart • helm template hello-chart: 渲染 Chart 并输出 • helm install hello hello-chart/ -n default: 安装 hello-chart • helm package hello-chart: 打包 Chart • 将 Chart 推送到应用仓库 _ by QingCloud 238:30882/chartrepo/private • 删除应用仓库 • 手动更新应用仓库 • 应用仓库自动同步远程仓库 _ by QingCloud 应用管理 • 部署 hello-chart 应用 • 升级 hello-chart 应用 • 删除 hello-chart 应用 _ by QingCloud 谢 谢 观 看 _ by QingCloud0 码力 | 9 页 | 2.48 MB | 1 年前3
共 170 条
- 1
- 2
- 3
- 4
- 5
- 6
- 17













