Skip to content

Commit

Permalink
fix and migrate to new format
Browse files Browse the repository at this point in the history
  • Loading branch information
quantumryuu committed Dec 26, 2024
1 parent 1b93060 commit 3175278
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 52 deletions.
64 changes: 19 additions & 45 deletions ct/jenkins.sh
Original file line number Diff line number Diff line change
@@ -1,66 +1,40 @@
#!/usr/bin/env bash
source <(curl -s https://raw.githubusercontent.com/community-scripts/ProxmoxVE/main/misc/build.func)
source <(curl -s https://raw.githubusercontent.com/quantumryuu/ProxmoxVE/main/misc/build.func)
# Copyright (c) 2021-2024 community-scripts ORG
# Author: kristocopani
# License: MIT
# https://github.com/community-scripts/ProxmoxVE/raw/main/LICENSE
# License: MIT | https://github.com/community-scripts/ProxmoxVE/raw/main/LICENSE
# Source: https://adguard.com/

function header_info {
clear
cat <<"EOF"
__ __ _
/ /__ ____ / /__(_)___ _____
__ / / _ \/ __ \/ //_/ / __ \/ ___/
/ /_/ / __/ / / / ,< / / / / (__ )
\____/\___/_/ /_/_/|_/_/_/ /_/____/
EOF
}
header_info
echo -e "Loading..."
# App Default Values
APP="Jenkins"
var_disk="4"
var_tags="Jenkins"
var_cpu="2"
var_ram="1024"
var_disk="4"
var_os="debian"
var_version="12"
var_unprivileged="1"

# App Output & Base Settings
header_info "$APP"
base_settings

# Core
variables
color
catch_errors

function default_settings() {
CT_TYPE="1"
PW=""
CT_ID=$NEXTID
HN=$NSAPP
DISK_SIZE="$var_disk"
CORE_COUNT="$var_cpu"
RAM_SIZE="$var_ram"
BRG="vmbr0"
NET="dhcp"
GATE=""
APT_CACHER=""
APT_CACHER_IP=""
DISABLEIP6="no"
MTU=""
SD=""
NS=""
MAC=""
VLAN=""
SSH="no"
VERB="no"
echo_default
}
function update_script() {
header_info
check_container_storage
check_container_resources
header_info
check_container_storage
check_container_resources
}

start
build_container
description

msg_ok "Completed Successfully!\n"
echo -e "${APP} should be reachable by going to the following URL.
${BL}http://${IP}:8080${CL} \n"
echo -e "${CREATING}${GN}${APP} setup has been successfully initialized!${CL}"
echo -e "${INFO}${YW} Access it using the following URL:${CL}"
echo -e "${TAB}${GATEWAY}${BGN}http://${IP}:3000${CL}"
11 changes: 4 additions & 7 deletions install/jenkins-install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
# License: MIT
# https://github.com/community-scripts/ProxmoxVE/raw/main/LICENSE

source /dev/stdin <<<"$FUNCTIONS_FILE_PATH"
source /dev/stdin <<< "$FUNCTIONS_FILE_PATH"
color
verb_ip6
catch_errors
Expand All @@ -18,18 +18,15 @@ $STD apt-get install -y \
curl \
mc \
sudo \
fontconfig \
openjdk-17-jre
msg_ok "Installed Dependencies"


msg_info "Installing Jenkins"
msg_info "Setup Jenkins"
wget -qO /usr/share/keyrings/jenkins-keyring.asc https://pkg.jenkins.io/debian/jenkins.io-2023.key
echo "deb [signed-by=/usr/share/keyrings/jenkins-keyring.asc]" https://pkg.jenkins.io/debian binary/ >/etc/apt/sources.list.d/jenkins.list
$STD apt-get update
$STD apt-get install -y \
jenkins
msg_ok "Installed Jenkins"
$STD apt-get install -y jenkins
msg_ok "Setup Jenkins"

motd_ssh
customize
Expand Down

0 comments on commit 3175278

Please sign in to comment.