heavyrain 5 days ago
parent
commit
d793c6daf1
3 changed files with 53 additions and 1 deletions
  1. 33 0
      deploy/install.sh
  2. 19 0
      deploy/main.py
  3. 1 1
      docker-compose.yml

+ 33 - 0
deploy/install.sh

@@ -0,0 +1,33 @@
+#!/bin/bash
+# @Contact :   liuyuqi.gov@msn.cn
+# @Time    :   2025/04/21 18:46:01
+# @License :   (C)Copyright 2022 liuyuqi.
+# @Desc    :   docker run 
+###############################################################################
+
+# install docker and other
+yum update -y && yum upgrade -y
+yum install -y yum-utils device-mapper-persistent-data lvm2
+
+yum-config-manager --add-repo https://download.docker.com/linux/centos/docker-ce.repo
+
+yum install -y docker-ce docker-ce-cli containerd.io
+sudo systemctl start docker
+sudo systemctl enable docker
+
+sudo docker --version
+sudo docker run hello-world
+
+echo "docker install success"
+
+
+# pull images
+docker pull trane/energy-strategy-optimization-platform
+docker pull 
+docker pull
+docker pull
+docker tag 
+
+# run docker compose
+
+

+ 19 - 0
deploy/main.py

@@ -0,0 +1,19 @@
+#!/usr/bin/env python
+# -*- encoding: utf-8 -*-
+'''
+@Contact :   liuyuqi.gov@msn.cn
+@Time    :   2025/04/21 18:44:39
+@License :   Copyright © 2017-2022 liuyuqi. All Rights Reserved.
+@Desc    :   docker deploy 
+'''
+
+# install docker and other
+
+# pull images
+
+# tar
+
+# run docker compose
+
+
+

+ 1 - 1
docker-compose.yml

@@ -1,5 +1,5 @@
 services:
-  
+
   frontend:
     container_name: frontend
     image: trane-tech-energy-strategy-optimization-platform-frontend:v1.0