Skip to content

Commit b4fe802

Browse files
'Add new script' (#9510)
Co-authored-by: push-app-to-main[bot] <203845782+push-app-to-main[bot]@users.noreply.github.com>
1 parent 9b6c816 commit b4fe802

File tree

4 files changed

+112
-0
lines changed

4 files changed

+112
-0
lines changed

ct/headers/valkey

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
_ __ ____
2+
| | / /___ _/ / /_____ __ __
3+
| | / / __ `/ / //_/ _ \/ / / /
4+
| |/ / /_/ / / ,< / __/ /_/ /
5+
|___/\__,_/_/_/|_|\___/\__, /
6+
/____/

ct/valkey.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: pshankinclarke (lazarillo)
5+
# License: MIT | https://github.com/community-scripts/ProxmoxVE/raw/main/LICENSE
6+
# Source: https://valkey.io/
7+
8+
APP="Valkey"
9+
var_tags="${var_tags:-database}"
10+
var_cpu="${var_cpu:-1}"
11+
var_ram="${var_ram:-1024}"
12+
var_disk="${var_disk:-4}"
13+
var_os="${var_os:-debian}"
14+
var_version="${var_version:-13}"
15+
var_unprivileged="${var_unprivileged:-1}"
16+
17+
header_info "$APP"
18+
variables
19+
color
20+
catch_errors
21+
22+
function update_script() {
23+
header_info
24+
check_container_storage
25+
check_container_resources
26+
if [[ ! -f /lib/systemd/system/valkey-server.service ]]; then
27+
msg_error "No Valkey Installation Found!"
28+
exit
29+
fi
30+
msg_info "Updating Valkey LXC"
31+
$STD apt update
32+
$STD apt -y upgrade
33+
msg_ok "Updated Valkey LXC"
34+
msg_ok "Updated successfully!"
35+
exit
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}:6379${CL}"

frontend/public/json/valkey.json

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
{
2+
"name": "Valkey",
3+
"slug": "valkey",
4+
"categories": [
5+
9
6+
],
7+
"date_created": "2025-11-24",
8+
"type": "ct",
9+
"updateable": true,
10+
"privileged": false,
11+
"interface_port": 6379,
12+
"documentation": "https://valkey.io/docs/",
13+
"config_path": "/etc/valkey/valkey.conf",
14+
"website": "https://valkey.io/",
15+
"logo": "https://cdn.jsdelivr.net/gh/selfhst/icons/webp/valkey.webp",
16+
"description": "Valkey is an open source (BSD) high-performance key/value datastore that supports a variety of workloads such as caching, message queues, and can act as a primary database. The project is backed by the Linux Foundation, ensuring it will remain open source forever.",
17+
"install_methods": [
18+
{
19+
"type": "default",
20+
"script": "ct/valkey.sh",
21+
"resources": {
22+
"cpu": 1,
23+
"ram": 1024,
24+
"hdd": 4,
25+
"os": "Debian",
26+
"version": "13"
27+
}
28+
}
29+
],
30+
"default_credentials": {
31+
"username": null,
32+
"password": null
33+
},
34+
"notes": []
35+
}

install/valkey-install.sh

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
#!/usr/bin/env bash
2+
3+
# Copyright (c) 2021-2025 community-scripts ORG
4+
# Author: pshankinclarke (lazarillo)
5+
# License: MIT | https://github.com/community-scripts/ProxmoxVE/raw/main/LICENSE
6+
# Source: https://valkey.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 Valkey"
17+
$STD apt update
18+
$STD apt install -y valkey
19+
sed -i 's/^bind .*/bind 0.0.0.0/' /etc/valkey/valkey.conf
20+
systemctl enable -q --now valkey-server
21+
systemctl restart valkey-server
22+
msg_ok "Installed Valkey"
23+
24+
motd_ssh
25+
customize
26+
cleanup_lxc

0 commit comments

Comments
 (0)