File tree Expand file tree Collapse file tree 3 files changed +6
-6
lines changed
internal/usercenter/biz/user Expand file tree Collapse file tree 3 files changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -15,7 +15,7 @@ import (
15
15
v1 "github.com/superproj/onex/pkg/api/usercenter/v1"
16
16
)
17
17
18
- // UserBiz defines methods used to handle user rquest .
18
+ // UserBiz defines methods used to handle user request .
19
19
type UserBiz interface {
20
20
Create (ctx context.Context , rq * v1.CreateUserRequest ) (* v1.UserReply , error )
21
21
List (ctx context.Context , rq * v1.ListUserRequest ) (* v1.ListUserResponse , error )
Original file line number Diff line number Diff line change @@ -44,8 +44,11 @@ onex::mongo::docker::install()
44
44
45
45
onex::mongo::pre_install ()
46
46
{
47
+ # 获取 MongoDB 公钥
48
+ echo ${LINUX_PASSWORD} | sudo -S wget -qO - https://www.mongodb.org/static/pgp/server-7.0.asc | sudo apt-key add -
49
+
47
50
# 添加 MongoDB APT 源
48
- echo ${LINUX_PASSWORD} | sudo -S echo " deb [arch=amd64,arm64] https://repo.mongodb.org/apt/ubuntu bionic /mongodb-org/7.0 multiverse" | sudo tee /etc/apt/sources.list.d/mongodb-org-7.0.list
51
+ echo ${LINUX_PASSWORD} | sudo -S echo " deb [arch=amd64,arm64] https://repo.mongodb.org/apt/ubuntu $( lsb_release -cs ) /mongodb-org/7.0 multiverse" | sudo tee /etc/apt/sources.list.d/mongodb-org-7.0.list
49
52
50
53
# 安装libssl1.1,否则安装 mongo 时会报以下错误:
51
54
# mongodb-org-mongos : Depends: libssl1.1 (>= 1.1.1) but it is not installable
@@ -74,9 +77,6 @@ onex::mongo::sbs::install()
74
77
75
78
echo ${LINUX_PASSWORD} | sudo -S apt install -y gnupg
76
79
77
- # 获取 MongoDB 公钥
78
- echo ${LINUX_PASSWORD} | sudo -S wget -qO - https://www.mongodb.org/static/pgp/server-7.0.asc | sudo apt-key add -
79
-
80
80
# 安装 MongoDB 服务端
81
81
# 以为我们uninstall时会删除配置文件,所以要使用--force-confmiss 重新安装配置文件
82
82
onex::util::sudo " apt -y -o Dpkg::Options::=" --force-confmiss" --reinstall install mongodb-org mongodb-org-server"
Original file line number Diff line number Diff line change @@ -173,7 +173,7 @@ _install.kubeconform: ## Install kubeconform command line tool.
173
173
174
174
.PHONY : _install.kubectl
175
175
_install.kubectl : # # Install kubectl command line tool.
176
- @curl --create-dirs -L -o $$ HOME/bin/kubectl " https://dl.k8s.io/release/$( shell curl -L -s https://dl.k8s.io/release/stable.txt) /bin/linux/amd64 /kubectl"
176
+ @curl --create-dirs -L -o $$ HOME/bin/kubectl " https://dl.k8s.io/release/$( shell curl -L -s https://dl.k8s.io/release/stable.txt) /bin/linux/$( shell $( GO ) env GOHOSTARCH ) /kubectl"
177
177
@chmod +x $$ HOME/bin/kubectl
178
178
@$(SCRIPTS_DIR ) /add-completion.sh kubectl bash
179
179
You can’t perform that action at this time.
0 commit comments