mirror of
https://github.com/Websoft9/websoft9.git
synced 2024-11-22 07:30:24 +00:00
dockerfile address
This commit is contained in:
parent
156b3a90d4
commit
a3bbe99ecc
3 changed files with 4 additions and 21 deletions
|
@ -11,24 +11,7 @@ import (
|
|||
|
||||
func main() {
|
||||
|
||||
dirPath := "/var/websoft9"
|
||||
if _, err := os.Stat("/var"); os.IsNotExist(err) {
|
||||
err = os.Mkdir("/var", 0755)
|
||||
if err != nil {
|
||||
fmt.Println(err)
|
||||
return
|
||||
}
|
||||
}
|
||||
|
||||
if _, err := os.Stat(dirPath); os.IsNotExist(err) {
|
||||
err = os.Mkdir(dirPath, 0755)
|
||||
if err != nil {
|
||||
fmt.Println(err)
|
||||
return
|
||||
}
|
||||
}
|
||||
|
||||
filePath := "/var/websoft9/credential"
|
||||
filePath := "/data/credential"
|
||||
|
||||
_, err := os.Stat(filePath)
|
||||
if os.IsNotExist(err) {
|
||||
|
@ -41,7 +24,7 @@ func main() {
|
|||
return
|
||||
}
|
||||
}else{
|
||||
fmt.Println("credential is exist, skip it.")
|
||||
fmt.Println("credential is exist, skip it.")
|
||||
cmd := exec.Command("./portainer")
|
||||
cmd.Run()
|
||||
}
|
||||
|
@ -52,8 +35,6 @@ func main() {
|
|||
return
|
||||
}
|
||||
|
||||
fmt.Println("-----portainer_admin_user: admin, portainer_admin_password: " + string(content) + " ------")
|
||||
|
||||
// call portainer
|
||||
cmd := exec.Command("./portainer", "--admin-password-file", filePath)
|
||||
cmd.Stdout = os.Stdout
|
||||
|
|
|
@ -1,3 +1,4 @@
|
|||
# Dockerfile refer to: https://github.com/go-gitea/gitea/blob/main/Dockerfile
|
||||
FROM gitea/gitea:1.20.4
|
||||
|
||||
LABEL maintainer="Websoft9<help@websoft9.com>"
|
||||
|
|
|
@ -1,3 +1,4 @@
|
|||
# Dockerfile refer to: https://github.com/NginxProxyManager/nginx-proxy-manager/blob/develop/docker/Dockerfile
|
||||
FROM jc21/nginx-proxy-manager:2.10.4
|
||||
|
||||
LABEL maintainer="Websoft9<help@websoft9.com>"
|
||||
|
|
Loading…
Reference in a new issue