fix shell

This commit is contained in:
anlicheng 2026-01-10 14:32:19 +08:00
parent 2c53f00fae
commit 87c77d72cb
4 changed files with 20 additions and 3 deletions

View File

@ -1,7 +1,21 @@
aircon
=====
1. 项目的依赖是在本地下载的,然后上传到阿里云服务器
2. 在阿里云服务上面使用了基于docker编译的方式, 镜像 erlang:25.3和南农服务器上面的一致
An OTP application
```text
docker run --rm \
-v $(pwd)/:/data/aircon \
-w /data/aircon \
erlang:25.3 \
sh -c "\
cd /data/aircon && \
rebar3 compile && \
rebar3 release && \
rebar3 tar && \
tar -czvf aircon.tgz boot.sh stop.sh Dockerfile .args.yaml \
"
```
Build
-----

View File

@ -1,3 +1,3 @@
#! /bin/bash
docker run -e TZ=Asia/Shanghai --hostname=aircon --net=host --restart=always -v /data/docker/aircon/:/data/aircon/ aircon:latest
docker start aircon

3
docker_create.sh Executable file
View File

@ -0,0 +1,3 @@
#! /bin/bash
docker create --name aircon -e TZ=Asia/Shanghai --hostname=aircon --net=host --restart=always -v /data/docker/aircon/:/data/aircon/ aircon:latest

View File

@ -1,3 +1,3 @@
#!/bin/bash
docker ps -a | grep "aircon:latest" | awk -F " " '{print $1}' | xargs docker stop | xargs docker rm
docker stop -t 3 aircon