Skip to content

Commit b9a63ed

Browse files
authored
Alpine: Gitea (#3424)
1 parent 6be9d72 commit b9a63ed

File tree

3 files changed

+97
-1
lines changed

3 files changed

+97
-1
lines changed

ct/alpine-gitea.sh

Lines changed: 45 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,45 @@
1+
#!/usr/bin/env bash
2+
source <(curl -fsSL https://raw.githubusercontent.com/community-scripts/ProxmoxVE/main/misc/build.func)
3+
# Copyright (c) 2021-2025 community-scripts ORG
4+
# Author: MickLesk (CanbiZ)
5+
# License: MIT | https://github.com/community-scripts/ProxmoxVE/raw/main/LICENSE
6+
# Source: https://gitea.io
7+
8+
APP="Alpine-Gitea"
9+
var_tags="alpine;git"
10+
var_cpu="1"
11+
var_ram="256"
12+
var_disk="1"
13+
var_os="alpine"
14+
var_version="3.21"
15+
var_unprivileged="1"
16+
17+
header_info "$APP"
18+
variables
19+
color
20+
catch_errors
21+
22+
function update_script() {
23+
header_info
24+
msg_info "Updating Alpine Packages"
25+
apk update
26+
apk upgrade
27+
msg_ok "Updated Alpine Packages"
28+
29+
msg_info "Updating Gitea"
30+
apk upgrade gitea
31+
msg_ok "Updated Gitea"
32+
33+
msg_info "Restarting Gitea"
34+
rc-service gitea restart
35+
msg_ok "Restarted Gitea"
36+
}
37+
38+
start
39+
build_container
40+
description
41+
42+
msg_ok "Completed Successfully!\n"
43+
echo -e "${CREATING}${GN}${APP} setup has been successfully initialized!${CL}"
44+
echo -e "${INFO}${YW} Access it using the following URL:${CL}"
45+
echo -e "${TAB}${GATEWAY}${BGN}http://${IP}:3000${CL}"

frontend/public/json/gitea.json

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,11 +24,22 @@
2424
"os": "debian",
2525
"version": "12"
2626
}
27+
},
28+
{
29+
"type": "alpine",
30+
"script": "ct/alpine-gitea.sh",
31+
"resources": {
32+
"cpu": 1,
33+
"ram": 256,
34+
"hdd": 1,
35+
"os": "alpine",
36+
"version": "3.21"
37+
}
2738
}
2839
],
2940
"default_credentials": {
3041
"username": null,
3142
"password": null
3243
},
3344
"notes": []
34-
}
45+
}

install/alpine-gitea-install.sh

Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
#!/usr/bin/env bash
2+
3+
# Copyright (c) 2021-2025 community-scripts ORG
4+
# Author: MickLesk (CanbiZ)
5+
# License: MIT | https://github.com/community-scripts/ProxmoxVE/raw/main/LICENSE
6+
# Source: https://gitea.io/
7+
8+
source /dev/stdin <<<"$FUNCTIONS_FILE_PATH"
9+
color
10+
verb_ip6
11+
catch_errors
12+
setting_up_container
13+
network_check
14+
update_os
15+
16+
msg_info "Installing Dependencies"
17+
$STD apk add \
18+
newt \
19+
curl \
20+
openssh \
21+
nano \
22+
mc \
23+
gpg
24+
25+
msg_ok "Installed Dependencies"
26+
27+
msg_info "Installing Gitea"
28+
$STD apk add --no-cache gitea
29+
msg_ok "Installed Gitea"
30+
31+
msg_info "Enabling Gitea Service"
32+
$STD rc-update add gitea default
33+
msg_ok "Enabled Gitea Service"
34+
35+
msg_info "Starting Gitea"
36+
$STD service gitea start
37+
msg_ok "Started Gitea"
38+
39+
motd_ssh
40+
customize

0 commit comments

Comments
 (0)