Skip to content

Commit

Permalink
update template
Browse files Browse the repository at this point in the history
  • Loading branch information
KunSir991 committed Nov 7, 2024
1 parent 0b6d055 commit c90edc4
Show file tree
Hide file tree
Showing 3 changed files with 21 additions and 20 deletions.
Binary file added .DS_Store
Binary file not shown.
22 changes: 21 additions & 1 deletion .computenest/config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -96,4 +96,24 @@ ImageBuilder:
#!/bin/bash
wget https://github.com/cloudreve/Cloudreve/releases/download/3.8.3/cloudreve_3.8.3_linux_amd64.tar.gz
tar -zxvf cloudreve_3.8.3_linux_amd64.tar.gz
chmod +x ./cloudreve
chmod +x ./cloudreve
cat > /etc/systemd/system/cloudreve.service <<EOF
[Unit]
Description=Cloudreve Service
[Service]
Type=simple
Restart=on-failure
WorkingDirectory=/root
ExecStart=/usr/bin/nohup /root/cloudreve > /root/output.log 2>&1 &
TimeoutStartSec=0
[Install]
WantedBy=multi-user.target
EOF
systemctl enable cloudreve
systemctl start cloudreve
ARGUS_VERSION=3.5.7 /bin/bash -c "$(curl -sS https://cms-agent-ap-southeast-1.oss-ap-southeast-1-internal.aliyuncs.com/Argus/agent_install_ecs-1.7.sh)" >> /root/install_cms_agent.log 2>&1
19 changes: 0 additions & 19 deletions .computenest/ros_templates/template.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,6 @@ Parameters:
Label:
en: VSwitch ID
zh-cn: 交换机实例ID
Default: ''
AssociationProperty: 'ALIYUN::ECS::VSwitch::VSwitchId'
AssociationPropertyMetadata:
VpcId: VpcId
Expand Down Expand Up @@ -153,24 +152,6 @@ Resources:
InternetMaxBandwidthOut: 5
IoOptimized: optimized
MaxAmount: 1
RunInstallCommand:
Type: ALIYUN::ECS::RunCommand
Properties:
InstanceIds:
Fn::GetAtt:
- InstanceGroup
- InstanceIds
Type: RunShellScript
Sync: true
Timeout: 3600
CommandContent:
Fn::Sub:
- |
nohup ./cloudreve > output.log 2>&1 &
sleep 10
ARGUS_VERSION=3.5.7 /bin/bash -c "$(curl -sS https://cms-agent-${RegionId}.oss-${RegionId}-internal.aliyuncs.com/Argus/agent_install_ecs-1.7.sh)" >> /root/install_cms_agent.log 2>&1
- RegionId:
Ref: ALIYUN::Region
Outputs:
ServerAddress:
Description:
Expand Down

0 comments on commit c90edc4

Please sign in to comment.