Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
mikes zhang
001
提交
fcee7cf7
0
001
项目概览
mikes zhang
/
001
通知
6
Star
0
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
DevOps
流水线
流水线任务
计划
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
0
001
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
DevOps
DevOps
流水线
流水线任务
计划
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
流水线任务
提交
Issue看板
提交
fcee7cf7
编写于
9月 13, 2020
作者:
D
Dan Hipschman
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Add readme and build scripts
上级
26bfae9e
变更
3
隐藏空白更改
内联
并排
Showing
3 changed file
with
24 addition
and
0 deletion
+24
-0
python-microservices-with-grpc/README.md
python-microservices-with-grpc/README.md
+4
-0
python-microservices-with-grpc/build_and_run.sh
python-microservices-with-grpc/build_and_run.sh
+8
-0
python-microservices-with-grpc/gen_certs.sh
python-microservices-with-grpc/gen_certs.sh
+12
-0
未找到文件。
python-microservices-with-grpc/README.md
0 → 100644
浏览文件 @
fcee7cf7
# Running the Example
1.
Install Docker if you haven't already.
2.
Run
`./build_and_run.sh`
python-microservices-with-grpc/build_and_run.sh
0 → 100755
浏览文件 @
fcee7cf7
#!/bin/bash
./gen_certs.sh
DOCKER_BUILDKIT
=
1 docker build
.
-f
marketplace/Dockerfile
-t
marketplace
--secret
id
=
ca.key,src
=
ca.key
DOCKER_BUILDKIT
=
1 docker build
.
-f
recommendations/Dockerfile
-t
recommendations
--secret
id
=
ca.key,src
=
ca.key
docker-compose up
python-microservices-with-grpc/gen_certs.sh
0 → 100755
浏览文件 @
fcee7cf7
#!/bin/bash
# Generate CA key and self-signed cert
openssl req
-x509
-nodes
-newkey
rsa:4096
-keyout
ca.key
-out
ca.pem
-subj
/O
=
me
# Generate a private key and certificate signing request for the client and server
openssl req
-nodes
-newkey
rsa:4096
-keyout
client.key
-out
client.csr
-subj
/CN
=
marketplace
openssl req
-nodes
-newkey
rsa:4096
-keyout
server.key
-out
server.csr
-subj
/CN
=
recommendations
# Sign the client and server certs with the CA cert
openssl x509
-req
-in
client.csr
-CA
ca.pem
-CAkey
ca.key
-set_serial
1
-out
client.pem
openssl x509
-req
-in
server.csr
-CA
ca.pem
-CAkey
ca.key
-set_serial
1
-out
server.pem
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录