From 3d037445a70e2a82c70871c6360c9204162eb2c7 Mon Sep 17 00:00:00 2001 From: christos Date: Thu, 26 Dec 2024 14:39:17 +0200 Subject: [PATCH] Ready to PR! --- ct/semaphore.sh | 2 +- install/semaphore-install.sh | 24 ++++++------ json/semaphore.json | 74 ++++++++++++++++++------------------ 3 files changed, 52 insertions(+), 48 deletions(-) diff --git a/ct/semaphore.sh b/ct/semaphore.sh index 73c7587e..ab87c49f 100644 --- a/ct/semaphore.sh +++ b/ct/semaphore.sh @@ -1,5 +1,5 @@ #!/usr/bin/env bash -source <(curl -s https://raw.githubusercontent.com/quantumryuu/ProxmoxVE/build/misc/build.func) +source <(curl -s https://raw.githubusercontent.com/community-scripts/ProxmoxVE/main/misc/build.func) # Copyright (c) 2021-2024 community-scripts ORG # Author: kristocopani # License: MIT diff --git a/install/semaphore-install.sh b/install/semaphore-install.sh index 644d77b9..e778a4d1 100644 --- a/install/semaphore-install.sh +++ b/install/semaphore-install.sh @@ -15,15 +15,17 @@ update_os msg_info "Installing Dependencies" $STD apt-get install -y \ - curl \ - mc \ - git \ - gpg \ - sudo -UBUNTU_CODENAME=jammy + curl \ + mc \ + git \ + gpg \ + sudo + wget -qO- "https://keyserver.ubuntu.com/pks/lookup?fingerprint=on&op=get&search=0x6125E2A8C77F2818FB7BD15B93C4A3FD7BB9C367" | gpg --dearmour >/usr/share/keyrings/ansible-archive-keyring.gpg -$STD echo "deb [signed-by=/usr/share/keyrings/ansible-archive-keyring.gpg] http://ppa.launchpad.net/ansible/ansible/ubuntu $UBUNTU_CODENAME main" | tee /etc/apt/sources.list.d/ansible.list -$STD apt update +cat </etc/apt/sources.list.d/ansible.list +deb [signed-by=/usr/share/keyrings/ansible-archive-keyring.gpg] http://ppa.launchpad.net/ansible/ansible/ubuntu jammy main +EOF +$STD apt update $STD apt install -y ansible msg_ok "Installed Dependencies" @@ -32,7 +34,7 @@ RELEASE=$(curl -s https://api.github.com/repos/semaphoreui/semaphore/releases/la mkdir -p /opt/semaphore cd /opt/semaphore wget -q https://github.com/semaphoreui/semaphore/releases/download/v${RELEASE}/semaphore_${RELEASE}_linux_amd64.deb -$STD dpkg -i semaphore_${RELEASE}_linux_amd64.deb +$STD dpkg -i semaphore_${RELEASE}_linux_amd64.deb SEM_HASH=$(openssl rand -base64 32) SEM_ENCRYPTION=$(openssl rand -base64 32) @@ -79,7 +81,7 @@ motd_ssh customize msg_info "Cleaning up" -rm -rf semaphore_${RELEASE}_linux_amd64.deb +rm -rf semaphore_${RELEASE}_linux_amd64.deb $STD apt-get -y autoremove $STD apt-get -y autoclean -msg_ok "Cleaned" \ No newline at end of file +msg_ok "Cleaned" diff --git a/json/semaphore.json b/json/semaphore.json index db98b242..5d357d84 100644 --- a/json/semaphore.json +++ b/json/semaphore.json @@ -1,39 +1,41 @@ { - "name": "Semaphore", - "slug": "semaphore", - "categories": [ - 11 - ], - "date_created": "2024-12-26", - "type": "ct", - "updateable": true, - "privileged": false, - "interface_port": 3000, - "documentation": "https://docs.semaphoreui.com/", - "website": "https://semaphoreui.com/", - "logo": "https://docs.semaphoreui.com/favicon.png?x=", - "description": "Semaphore UI is a modern web interface for managing popular DevOps tools", - "install_methods": [ - { - "type": "default", - "script": "ct/semaphore.sh", - "resources": { - "cpu": 2, - "ram": 2048, - "hdd": 4, - "os": "Debian", - "version": "12" - } + "name": "Semaphore", + "slug": "semaphore", + "categories": [], + "date_created": "2024-12-26", + "type": "ct", + "updateable": true, + "privileged": false, + "interface_port": 3000, + "documentation": "https://docs.semaphoreui.com/", + "website": "https://semaphoreui.com/", + "logo": "https://docs.semaphoreui.com/favicon.png?x=", + "description": "Semaphore UI is a modern web interface for managing popular DevOps tools", + "install_methods": [ + { + "type": "default", + "script": "ct/semaphore.sh", + "resources": { + "cpu": 2, + "ram": 2048, + "hdd": 4, + "os": "Debian", + "version": "12" } - ], - "default_credentials": { - "username": "admin", - "password": "admin" + } + ], + "default_credentials": { + "username": "admin", + "password": null + }, + "notes": [ + { + "text": "This instance uses BoltDB", + "type": "info" }, - "notes": [ - { - "text": "This instance uses BoltDB", - "type": "info" - } - ] - } \ No newline at end of file + { + "text": "Admin password: `cat ~/semaphore.creds`", + "type": "info" + } + ] +} \ No newline at end of file