-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
chenmin
committed
Jun 23, 2020
1 parent
e460f9b
commit 713934f
Showing
7 changed files
with
70 additions
and
43 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
BINARY_NAME=helm-api | ||
INSTALL_DIR=/opt/helm-api/ | ||
|
||
build: | ||
go build -o ${BINARY_NAME} | ||
install: | ||
install -D ${BINARY_NAME} ${INSTALL_DIR}/${BINARY_NAME} | ||
cp conf /opt/helm-api/ -R |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,25 @@ | ||
# helm-api | ||
|
||
**支持多集群、多命名空间的helm部署http接口** | ||
|
||
## 安装 | ||
git clone https://github.com/OojaxoO/helm-api.git | ||
cd helm-api | ||
make | ||
make install | ||
|
||
## 配置 | ||
vim /opt/helm-api/conf/app.ini | ||
[database] | ||
Type = mysql | ||
User = root | ||
Password = test123 | ||
Host = 127.0.0.1:3306 | ||
Name = nvwa | ||
TablePrefix = kube_ | ||
|
||
[http] | ||
Port = 10000 | ||
|
||
## 运行 | ||
/opt/helm-api/helm-api |
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -22,5 +22,6 @@ func main() { | |
"message": "pong", | ||
}) | ||
}) | ||
r.Run(":10000") | ||
port := setting.HttpSetting.Port | ||
r.Run(":" + port) | ||
} |
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
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
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