Skip to content

Commit

Permalink
release Apphub v2.2.0
Browse files Browse the repository at this point in the history
  • Loading branch information
yao.kang committed May 22, 2024
1 parent b4fa154 commit 09a0566
Show file tree
Hide file tree
Showing 5 changed files with 40 additions and 4 deletions.
12 changes: 12 additions & 0 deletions AppHub-Broadcast.service
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
[Unit]
Description=broadcast to wake device at shutdown
After=multi-user.target network.target

[Service]
Type=simple
ExecStart=/bin/broadcast
RestartSec=20
Restart=always

[Install]
WantedBy=multi-user.target
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -74,4 +74,4 @@ SeverIP就是VM对外的公网IP地址。
理论上,上述方法同样适用在各种Linux环境,甚至在云平台VM中安装AppHub,目前我们已经验证适用Azure和阿里云VM。
| Release version | DockerHub | docker tag |
| :------------------- | :-------------- | :----------|
| V2.1.0 | edgesolution/apphub-manager:v2.1.0<br />edgesolution/apphub-emqx:v1.2<br />edgesolution/apphub-novnc:v1.2<br />edgesolution/apphub-postgres:v1.0<br />edgesolution/apphub-minio:v1.0<br />edgesolution/apphub-ithings:v1.2<br />edgesolution/apphub-influxdb:v1.0 | eidevice/androiddm-javaenv-slim-dev:v6.7.6<br />eidevice/apphub-emqx-dev:v1.1.2<br />eidevice/apphub-novnc-dev:v1.0.1<br />eidevice/androiddm-postgres-dev:v1.1<br />eidevice/androiddm-minio-dev:v1.1<br />eidevice/apphub-ithings:v2.9.8<br />eidevice/influxdb-1.8:v1.0<br /> |
| V2.2.0 | edgesolution/apphub-manager:v2.2.0<br />edgesolution/apphub-emqx:v1.2<br />edgesolution/apphub-novnc:v1.2<br />edgesolution/apphub-postgres:v1.0<br />edgesolution/apphub-minio:v1.0<br />edgesolution/apphub-ithings:v1.3<br />edgesolution/apphub-influxdb:v1.1 | eidevice/androiddm-javaenv-slim-dev:v6.7.34<br />eidevice/apphub-emqx-dev:v1.1.2<br />eidevice/apphub-novnc-dev:v1.0.1<br />eidevice/androiddm-postgres-dev:v1.1<br />eidevice/androiddm-minio-dev:v1.1<br />eidevice/apphub-ithings:v2.9.30<br />eidevice/influxdb-1.8:v1.0.6<br /> |
Binary file added broadcast
Binary file not shown.
6 changes: 3 additions & 3 deletions docker-compose.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
version: '3'
services:
androidlink:
image: edgesolution/apphub-manager:v2.1.0
image: edgesolution/apphub-manager:v2.2.0
restart: always
depends_on:
- mqtt
Expand Down Expand Up @@ -30,7 +30,7 @@ services:
networks:
- advnet
ithing:
image: edgesolution/apphub-ithings:v1.2
image: edgesolution/apphub-ithings:v1.3
restart: always
depends_on:
- mqtt
Expand Down Expand Up @@ -107,7 +107,7 @@ services:
networks:
- advnet
influxDB:
image: edgesolution/apphub-influxdb:v1.0
image: edgesolution/apphub-influxdb:v1.1
restart: always
ports:
- "8086:8086"
Expand Down
24 changes: 24 additions & 0 deletions start.sh
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,29 @@ func_downloadgit()
git pull
}

func_broadcast()
{
echo "[INFO]Confirm systemctl status"
systemdFlag=`systemctl --version`
if [ -z "$systemdFlag" ]
then
echo ""
echo "[ERROR]The systemctl is not supported"
echo "[ERROR]Please manual config for auto start broadcast when system boot to support wake system when shutdown"
echo ""

else
echo "[INFO]The systemctl is supported"
cp broadcast /bin/ -f
cp AppHub-Broadcast.service /lib/systemd/system/ -f
systemctl daemon-reload
systemctl enable AppHub-Broadcast.service
systemctl restart AppHub-Broadcast.service

fi

}

######### Main ############
func_randompasswd
if [ $? -ne 0 ];then
Expand All @@ -69,4 +92,5 @@ if [ $? -ne 0 ];then
fi
func_readip
func_startdocker
func_broadcast
echo "success"

0 comments on commit 09a0566

Please sign in to comment.