zenbook migration
This commit is contained in:
@@ -0,0 +1,2 @@
|
||||
node_modules
|
||||
package-lock.json
|
||||
@@ -0,0 +1,3 @@
|
||||
module github.com/tikinang/godummy
|
||||
|
||||
go 1.23.1
|
||||
@@ -0,0 +1,14 @@
|
||||
package main
|
||||
|
||||
import (
|
||||
"fmt"
|
||||
"net/http"
|
||||
)
|
||||
|
||||
func main() {
|
||||
http.HandleFunc("/", func(w http.ResponseWriter, r *http.Request) {
|
||||
w.WriteHeader(http.StatusOK)
|
||||
_, _ = fmt.Fprintln(w, "OK")
|
||||
})
|
||||
_ = http.ListenAndServe(":8080", nil)
|
||||
}
|
||||
@@ -0,0 +1,9 @@
|
||||
project:
|
||||
name: test
|
||||
services:
|
||||
- hostname: app
|
||||
type: alpine@latest
|
||||
minContainers: 1
|
||||
maxContainers: 1
|
||||
buildFromGit: https://github.com/tikinang/godummy
|
||||
enableSubdomainAccess: true
|
||||
@@ -0,0 +1,6 @@
|
||||
services:
|
||||
- hostname: app2
|
||||
type: alpine@latest
|
||||
maxContainers: 1
|
||||
buildFromGit: https://github.com/tikinang/godummy
|
||||
enableSubdomainAccess: true
|
||||
@@ -0,0 +1,17 @@
|
||||
zerops:
|
||||
- setup: app
|
||||
build:
|
||||
os: alpine
|
||||
base: go@latest
|
||||
buildCommands:
|
||||
- go build -o app main.go
|
||||
cache: true
|
||||
deployFiles:
|
||||
- app
|
||||
run:
|
||||
os: alpine
|
||||
base: alpine@latest
|
||||
ports:
|
||||
- port: 8080
|
||||
httpSupport: true
|
||||
start: ./app
|
||||
Reference in New Issue
Block a user