From 8df223de8d0bb2681147217edf7596e987fee8ca Mon Sep 17 00:00:00 2001 From: loveuer <loveuer@live.com> Date: Tue, 19 Mar 2024 15:39:06 +0800 Subject: [PATCH] update: dev --- deployment/hello.yaml | 2 +- deployment/start-rancher.sh | 14 ++++++++------ main.go | 3 +-- 3 files changed, 10 insertions(+), 9 deletions(-) diff --git a/deployment/hello.yaml b/deployment/hello.yaml index fc443ce..560e477 100644 --- a/deployment/hello.yaml +++ b/deployment/hello.yaml @@ -21,7 +21,7 @@ spec: spec: containers: - name: system - image: loveuer/hello_app:v2.0.0 + image: loveuer/hello_app:v2.0.1 imagePullPolicy: IfNotPresent command: ["/app/hello_app"] ports: diff --git a/deployment/start-rancher.sh b/deployment/start-rancher.sh index 99b0f8d..7f639a5 100755 --- a/deployment/start-rancher.sh +++ b/deployment/start-rancher.sh @@ -7,16 +7,18 @@ docker run \ --restart=always \ -e SSL_CERT_DIR=/apps/ssl \ --add-host raw.githubusercontent.com:185.199.109.133 \ - -p 443:443 \ - -p 80:80 \ - -p 30443:30443 \ - -p 30080:30080 \ + . -p 443:443 \ + -p 80:80 \ rancher/rancher # -v $(pwd)/ca.crt:/apps/ssl/nf_ca.crt \ # --add-host repository.umisen.com:10.220.10.17 \ - +# --network=host \ +# -p 443:443 \ +# -p 80:80 \ +# -p 30443:30443 \ +# -p 30080:30080 \ # zypper addrepo https://download.opensuse.org/repositories/network:utilities/SLE_15_SP5/network:utilities.repo # zypper refresh -# zypper install net-tools-deprecated \ No newline at end of file +# zypper install net-tools-deprecated diff --git a/main.go b/main.go index db948a3..8c3e80d 100644 --- a/main.go +++ b/main.go @@ -41,8 +41,7 @@ func main() { "time": time.Now(), "host": hostname, }, - }, - ) + }) }) log.Fatal(app.Run(addr))