Skip to content

AllennLiu/ares-g2-fastapi

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

SIT-Web-FastAPI

Version

Rev: 2.1.17


Python Version

Require: 3.9.0+


Status

pipeline status coverage report


Description

Pod deploy application name ➠ ares-g2-fastapi (namespace: kube-ops)


Usage

  • Build Image

    $ docker build --no-cache -t registry.ipt-gitlab:8081/ta-web/sit-web-fastapi:${VERSION} .
    $ docker push registry.ipt-gitlab:8081/ta-web/sit-web-fastapi:${VERSION}
  • Docker Container Deployment

    $ docker run -tid \
          --add-host ipt-gitlab.ies.inventec:10.99.104.242 \
          --add-host mailrelay-b.ies.inventec:10.99.2.61 \
          -p 8787:8787 \
          -p 8788:22 \
          --volume /etc/localtime:/etc/localtime:ro \
          --privileged=true \
          --restart=always \
          --name ipt-fastapi \
          registry.ipt-gitlab:8081/ta-web/sit-web-fastapi:${VERSION} \
          bash service.sh --stag
  • Kubernetes Cluster Deployment

    $ kubectl delete -f deployments/deploy-server.yml
    $ sleep 1m
    $ kubectl apply -f deployments/deploy-server.yml --record

Validation

點我顯示/關閉更多驗證資訊。
  • None.
  • Latest script has been validated by Liu.AllenJH on K8S-Cluster at 2021-05-30.

Reference

About

ARES G2 backend serve with Python FastAPI framework

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages