Compare commits
10
Commits
f5546b23ba
...
main
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
d775e61e8c | ||
|
|
088c530361 | ||
|
|
7bc7742a7f | ||
|
|
01e0e603d9 | ||
|
|
5743bf4741 | ||
|
|
bf8dd29c47 | ||
|
|
dcd3358b15
|
||
|
|
f889be6cdb | ||
|
|
4024f91caf | ||
|
|
f69c710d91 |
No files matched your search
+10
-9
@@ -2,37 +2,38 @@ name: Synchronise Upstream Script
|
|||||||
|
|
||||||
on:
|
on:
|
||||||
schedule:
|
schedule:
|
||||||
# Runs at 02:00 GMT every Thursday (4 represents Thursday)
|
# Runs at 02:00 UTC every Thursday (4 represents Thursday)
|
||||||
- cron: '0 2 * * 4'
|
- cron: '0 2 * * 4'
|
||||||
workflow_dispatch: # Allows manual triggering to test the workflow behaviour
|
workflow_dispatch: # Allows manual triggering to test the workflow behaviour
|
||||||
|
|
||||||
|
# Grant the built-in GITHUB_TOKEN permission to push the synced script
|
||||||
|
permissions:
|
||||||
|
contents: write
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
update-script:
|
update-script:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout repository
|
- name: Checkout repository
|
||||||
uses: actions/checkout@v4
|
uses: actions/checkout@v4
|
||||||
with:
|
|
||||||
# Ensure we have the necessary credentials to push changes
|
|
||||||
token: ${{ secrets.GITHUB_TOKEN }}
|
|
||||||
|
|
||||||
- name: Download the latest script
|
- name: Download the latest script
|
||||||
run: |
|
run: |
|
||||||
# Fetch the latest installation script from Docker
|
# Fetch the latest installation script from Docker
|
||||||
curl -fsSL https://get.docker.com -o get-docker.sh
|
curl -fsSL https://get.docker.com -o get-docker.sh
|
||||||
|
|
||||||
# Ensure the file is executable
|
# Ensure the file is executable
|
||||||
chmod +x get-docker.sh
|
chmod +x get-docker.sh
|
||||||
|
|
||||||
- name: Check for changes and commit
|
- name: Check for changes and commit
|
||||||
run: |
|
run: |
|
||||||
# Configure Git identity for the automated commit
|
# Configure Git identity for the automated commit
|
||||||
git config user.name "gitea-actions-bot"
|
git config user.name "onixbyte"
|
||||||
git config user.email "actions@onixbyte.dev"
|
git config user.email "actions@onixbyte.dev"
|
||||||
|
|
||||||
# Add the script to the staging area
|
# Add the script to the staging area
|
||||||
git add get-docker.sh
|
git add get-docker.sh
|
||||||
|
|
||||||
# Determine if any modifications have occurred
|
# Determine if any modifications have occurred
|
||||||
if git diff --staged --quiet; then
|
if git diff --staged --quiet; then
|
||||||
echo "No modifications detected. The script is currently up to date."
|
echo "No modifications detected. The script is currently up to date."
|
||||||
@@ -40,4 +41,4 @@ jobs:
|
|||||||
git commit -m "chore: synchronise get-docker.sh with upstream"
|
git commit -m "chore: synchronise get-docker.sh with upstream"
|
||||||
git push
|
git push
|
||||||
echo "Modifications committed and pushed successfully."
|
echo "Modifications committed and pushed successfully."
|
||||||
fi
|
fi
|
||||||
@@ -0,0 +1,16 @@
|
|||||||
|
# MariaDB — environment variables
|
||||||
|
# Copy this file to .env and adjust values for your environment.
|
||||||
|
|
||||||
|
# Root password.
|
||||||
|
# The default is for local development only — always change for production.
|
||||||
|
MARIADB_ROOT_PASSWORD=mariadb
|
||||||
|
|
||||||
|
# Database created automatically on first start (default: mariadb).
|
||||||
|
MARIADB_DATABASE=mariadb
|
||||||
|
|
||||||
|
# Additional user created automatically on first start (default: mariadb).
|
||||||
|
MARIADB_USER=mariadb
|
||||||
|
|
||||||
|
# Password for the additional user.
|
||||||
|
# The default is for local development only — always change for production.
|
||||||
|
MARIADB_PASSWORD=mariadb
|
||||||
@@ -0,0 +1,36 @@
|
|||||||
|
# Docker Compose file for MariaDB
|
||||||
|
#
|
||||||
|
# Usage:
|
||||||
|
# docker compose up -d
|
||||||
|
#
|
||||||
|
# Environment variables (see .env.example for details):
|
||||||
|
# MARIADB_ROOT_PASSWORD - Root password (default: mariadb)
|
||||||
|
# MARIADB_DATABASE - Database created on first start (default: mariadb)
|
||||||
|
# MARIADB_USER - Additional user created on first start (default: mariadb)
|
||||||
|
# MARIADB_PASSWORD - Password for the additional user (default: mariadb)
|
||||||
|
|
||||||
|
services:
|
||||||
|
mariadb:
|
||||||
|
# For available image tags, see https://hub.docker.com/_/mariadb
|
||||||
|
image: mariadb:lts
|
||||||
|
container_name: mariadb
|
||||||
|
environment:
|
||||||
|
# Root password.
|
||||||
|
# Default value is for local development only — change for production.
|
||||||
|
- MARIADB_ROOT_PASSWORD=${MARIADB_ROOT_PASSWORD:-mariadb}
|
||||||
|
# Database created automatically on first start.
|
||||||
|
- MARIADB_DATABASE=${MARIADB_DATABASE:-mariadb}
|
||||||
|
# Additional user created automatically on first start.
|
||||||
|
- MARIADB_USER=${MARIADB_USER:-mariadb}
|
||||||
|
# Password for the additional user.
|
||||||
|
# Default value is for local development only — change for production.
|
||||||
|
- MARIADB_PASSWORD=${MARIADB_PASSWORD:-mariadb}
|
||||||
|
ports:
|
||||||
|
# Map host port 3306 to container port 3306 (MariaDB default).
|
||||||
|
- "3306:3306"
|
||||||
|
volumes:
|
||||||
|
# Persist data beyond container lifetime.
|
||||||
|
- mariadb_data:/var/lib/mysql
|
||||||
|
|
||||||
|
volumes:
|
||||||
|
mariadb_data:
|
||||||
@@ -0,0 +1,16 @@
|
|||||||
|
# MySQL (Alpine) — environment variables
|
||||||
|
# Copy this file to .env and adjust values for your environment.
|
||||||
|
|
||||||
|
# Root password.
|
||||||
|
# The default is for local development only — always change for production.
|
||||||
|
MYSQL_ROOT_PASSWORD=mysql
|
||||||
|
|
||||||
|
# Database created automatically on first start (default: mysql).
|
||||||
|
MYSQL_DATABASE=mysql
|
||||||
|
|
||||||
|
# Additional user created automatically on first start (default: root).
|
||||||
|
MYSQL_USER=root
|
||||||
|
|
||||||
|
# Password for the additional user.
|
||||||
|
# The default is for local development only — always change for production.
|
||||||
|
MYSQL_PASSWORD=mysql
|
||||||
@@ -0,0 +1,36 @@
|
|||||||
|
# Docker Compose file for MySQL (Alpine)
|
||||||
|
#
|
||||||
|
# Usage:
|
||||||
|
# docker compose up -d
|
||||||
|
#
|
||||||
|
# Environment variables (see .env.example for details):
|
||||||
|
# MYSQL_ROOT_PASSWORD - Root password (default: mysql)
|
||||||
|
# MYSQL_DATABASE - Database created on first start (default: mysql)
|
||||||
|
# MYSQL_USER - Additional user created on first start (default: root)
|
||||||
|
# MYSQL_PASSWORD - Password for the additional user (default: mysql)
|
||||||
|
|
||||||
|
services:
|
||||||
|
mysql:
|
||||||
|
# For available image tags, see https://hub.docker.com/_/mysql
|
||||||
|
image: mysql:8-alpine
|
||||||
|
container_name: mysql
|
||||||
|
environment:
|
||||||
|
# Root password.
|
||||||
|
# Default value is for local development only — change for production.
|
||||||
|
- MYSQL_ROOT_PASSWORD=${MYSQL_ROOT_PASSWORD:-mysql}
|
||||||
|
# Database created automatically on first start.
|
||||||
|
- MYSQL_DATABASE=${MYSQL_DATABASE:-mysql}
|
||||||
|
# Additional user created automatically on first start.
|
||||||
|
- MYSQL_USER=${MYSQL_USER:-root}
|
||||||
|
# Password for the additional user.
|
||||||
|
# Default value is for local development only — change for production.
|
||||||
|
- MYSQL_PASSWORD=${MYSQL_PASSWORD:-mysql}
|
||||||
|
ports:
|
||||||
|
# Map host port 3306 to container port 3306 (MySQL default).
|
||||||
|
- "3306:3306"
|
||||||
|
volumes:
|
||||||
|
# Persist data beyond container lifetime.
|
||||||
|
- mysql_data:/var/lib/mysql
|
||||||
|
|
||||||
|
volumes:
|
||||||
|
mysql_data:
|
||||||
@@ -0,0 +1,9 @@
|
|||||||
|
# Redis (Alpine) — environment variables
|
||||||
|
# Copy this file to .env and adjust values for your environment.
|
||||||
|
|
||||||
|
# Password for client connections. By default Redis starts with no password
|
||||||
|
# (any client can connect). To require authentication:
|
||||||
|
# 1. Set REDIS_PASSWORD below
|
||||||
|
# 2. Uncomment the "command" line in docker-compose.yaml
|
||||||
|
# Clients authenticate with: AUTH <password>
|
||||||
|
# REDIS_PASSWORD=redis
|
||||||
@@ -0,0 +1,30 @@
|
|||||||
|
# Docker Compose file for Redis (Alpine)
|
||||||
|
#
|
||||||
|
# Usage:
|
||||||
|
# docker compose up -d
|
||||||
|
#
|
||||||
|
# By default, Redis starts with no password — any client can connect.
|
||||||
|
# To require a password, set REDIS_PASSWORD in your .env file and uncomment
|
||||||
|
# the "command" line below. Clients must then authenticate with AUTH
|
||||||
|
# <password>.
|
||||||
|
#
|
||||||
|
# Environment variables (see .env.example for details):
|
||||||
|
# REDIS_PASSWORD - Optional password for client connections
|
||||||
|
|
||||||
|
services:
|
||||||
|
redis:
|
||||||
|
# For available image tags, see https://hub.docker.com/_/redis
|
||||||
|
image: redis:8-alpine
|
||||||
|
container_name: redis
|
||||||
|
# To enable password authentication, set REDIS_PASSWORD in your .env file
|
||||||
|
# and uncomment the following line:
|
||||||
|
# command: redis-server --requirepass ${REDIS_PASSWORD}
|
||||||
|
ports:
|
||||||
|
# Map host port 6379 to container port 6379 (Redis default).
|
||||||
|
- "6379:6379"
|
||||||
|
volumes:
|
||||||
|
# Persist data beyond container lifetime.
|
||||||
|
- redis_data:/data
|
||||||
|
|
||||||
|
volumes:
|
||||||
|
redis_data:
|
||||||
@@ -0,0 +1,9 @@
|
|||||||
|
# Valkey (Alpine) — environment variables
|
||||||
|
# Copy this file to .env and adjust values for your environment.
|
||||||
|
|
||||||
|
# Password for client connections. By default Valkey starts with no password
|
||||||
|
# (any client can connect). To require authentication:
|
||||||
|
# 1. Set VALKEY_PASSWORD below
|
||||||
|
# 2. Uncomment the "command" line in docker-compose.yaml
|
||||||
|
# Clients authenticate with: AUTH <password>
|
||||||
|
# VALKEY_PASSWORD=valkey
|
||||||
@@ -0,0 +1,30 @@
|
|||||||
|
# Docker Compose file for Valkey (Alpine)
|
||||||
|
#
|
||||||
|
# Usage:
|
||||||
|
# docker compose up -d
|
||||||
|
#
|
||||||
|
# By default, Valkey starts with no password — any client can connect.
|
||||||
|
# To require a password, set VALKEY_PASSWORD in your .env file and uncomment
|
||||||
|
# the "command" line below. Clients must then authenticate with AUTH
|
||||||
|
# <password>.
|
||||||
|
#
|
||||||
|
# Environment variables (see .env.example for details):
|
||||||
|
# VALKEY_PASSWORD - Optional password for client connections
|
||||||
|
|
||||||
|
services:
|
||||||
|
valkey:
|
||||||
|
# For available image tags, see https://hub.docker.com/_/valkey
|
||||||
|
image: valkey/valkey:9-alpine
|
||||||
|
container_name: valkey
|
||||||
|
# To enable password authentication, set VALKEY_PASSWORD in your .env file
|
||||||
|
# and uncomment the following line:
|
||||||
|
# command: valkey-server --requirepass ${VALKEY_PASSWORD}
|
||||||
|
ports:
|
||||||
|
# Map host port 6379 to container port 6379 (Valkey default).
|
||||||
|
- "6379:6379"
|
||||||
|
volumes:
|
||||||
|
# Persist data beyond container lifetime.
|
||||||
|
- valkey_data:/data
|
||||||
|
|
||||||
|
volumes:
|
||||||
|
valkey_data:
|
||||||
@@ -0,0 +1,9 @@
|
|||||||
|
services:
|
||||||
|
vocechat:
|
||||||
|
image: privoce/vocechat-server:latest
|
||||||
|
container_name: vocechat
|
||||||
|
ports:
|
||||||
|
- "3000:3000"
|
||||||
|
volumes:
|
||||||
|
- /var/lib/vocechat/data:/home/vocechat-server/data
|
||||||
|
restart: always
|
||||||
+34
-3
@@ -94,12 +94,19 @@ set -e
|
|||||||
#
|
#
|
||||||
# Note: Starting the service requires appropriate privileges to manage system services.
|
# Note: Starting the service requires appropriate privileges to manage system services.
|
||||||
#
|
#
|
||||||
|
# Installing docker-sbx
|
||||||
|
#
|
||||||
|
# Set the SBX environment variable to "1" to also install the docker-sbx
|
||||||
|
# package alongside the regular Docker Engine packages:
|
||||||
|
#
|
||||||
|
# $ curl -fsSL https://get.docker.com | sudo SBX=1 sh
|
||||||
|
#
|
||||||
# ==============================================================================
|
# ==============================================================================
|
||||||
|
|
||||||
|
|
||||||
# Git commit from https://github.com/docker/docker-install when
|
# Git commit from https://github.com/docker/docker-install when
|
||||||
# the script was uploaded (Should only be modified by upload job):
|
# the script was uploaded (Should only be modified by upload job):
|
||||||
SCRIPT_COMMIT_SHA="5ce20f2eef3615d08fea941eda5a109e949e8ebf"
|
SCRIPT_COMMIT_SHA="2b32480025b223ebfddae9a3a8bef09027680f53"
|
||||||
|
|
||||||
# strip "v" prefix if present
|
# strip "v" prefix if present
|
||||||
VERSION="${VERSION#v}"
|
VERSION="${VERSION#v}"
|
||||||
@@ -131,6 +138,18 @@ mirror=''
|
|||||||
DRY_RUN=${DRY_RUN:-}
|
DRY_RUN=${DRY_RUN:-}
|
||||||
REPO_ONLY=${REPO_ONLY:-0}
|
REPO_ONLY=${REPO_ONLY:-0}
|
||||||
NO_AUTOSTART=${NO_AUTOSTART:-0}
|
NO_AUTOSTART=${NO_AUTOSTART:-0}
|
||||||
|
SBX=${SBX:-0}
|
||||||
|
|
||||||
|
# Provide a helpful usage statement when --help or any invalid argument is passed
|
||||||
|
# to the script. Exit code deliberately not included here as error depends on
|
||||||
|
# argument provided.
|
||||||
|
usage() {
|
||||||
|
echo
|
||||||
|
echo "USAGE: "
|
||||||
|
echo " ${0} [--channel <stable|test>] [--mirror <Aliyun|AzureChinaCloud>] [--version <VERSION>] [--setup-repo] [--no-autostart] [--dry-run] [--help]"
|
||||||
|
echo
|
||||||
|
}
|
||||||
|
|
||||||
while [ $# -gt 0 ]; do
|
while [ $# -gt 0 ]; do
|
||||||
case "$1" in
|
case "$1" in
|
||||||
--channel)
|
--channel)
|
||||||
@@ -155,8 +174,14 @@ while [ $# -gt 0 ]; do
|
|||||||
--no-autostart)
|
--no-autostart)
|
||||||
NO_AUTOSTART=1
|
NO_AUTOSTART=1
|
||||||
;;
|
;;
|
||||||
|
--help)
|
||||||
|
usage
|
||||||
|
exit 0
|
||||||
|
;;
|
||||||
--*)
|
--*)
|
||||||
echo "Illegal option $1"
|
echo "Illegal option $1"
|
||||||
|
usage
|
||||||
|
exit 1
|
||||||
;;
|
;;
|
||||||
esac
|
esac
|
||||||
shift $(( $# > 0 ? 1 : 0 ))
|
shift $(( $# > 0 ? 1 : 0 ))
|
||||||
@@ -540,7 +565,7 @@ do_install() {
|
|||||||
centos.8|centos.7|rhel.7)
|
centos.8|centos.7|rhel.7)
|
||||||
deprecation_notice "$lsb_dist" "$dist_version"
|
deprecation_notice "$lsb_dist" "$dist_version"
|
||||||
;;
|
;;
|
||||||
debian.buster|debian.stretch|debian.jessie)
|
debian.bullseye|debian.buster|debian.stretch|debian.jessie)
|
||||||
deprecation_notice "$lsb_dist" "$dist_version"
|
deprecation_notice "$lsb_dist" "$dist_version"
|
||||||
;;
|
;;
|
||||||
raspbian.buster|raspbian.stretch|raspbian.jessie)
|
raspbian.buster|raspbian.stretch|raspbian.jessie)
|
||||||
@@ -549,7 +574,7 @@ do_install() {
|
|||||||
ubuntu.focal|ubuntu.bionic|ubuntu.xenial|ubuntu.trusty)
|
ubuntu.focal|ubuntu.bionic|ubuntu.xenial|ubuntu.trusty)
|
||||||
deprecation_notice "$lsb_dist" "$dist_version"
|
deprecation_notice "$lsb_dist" "$dist_version"
|
||||||
;;
|
;;
|
||||||
ubuntu.oracular|ubuntu.mantic|ubuntu.lunar|ubuntu.kinetic|ubuntu.impish|ubuntu.hirsute|ubuntu.groovy|ubuntu.eoan|ubuntu.disco|ubuntu.cosmic)
|
ubuntu.questing|ubuntu.oracular|ubuntu.mantic|ubuntu.lunar|ubuntu.kinetic|ubuntu.impish|ubuntu.hirsute|ubuntu.groovy|ubuntu.eoan|ubuntu.disco|ubuntu.cosmic)
|
||||||
deprecation_notice "$lsb_dist" "$dist_version"
|
deprecation_notice "$lsb_dist" "$dist_version"
|
||||||
;;
|
;;
|
||||||
fedora.*)
|
fedora.*)
|
||||||
@@ -631,6 +656,9 @@ do_install() {
|
|||||||
if version_gte "28.2"; then
|
if version_gte "28.2"; then
|
||||||
pkgs="$pkgs docker-model-plugin"
|
pkgs="$pkgs docker-model-plugin"
|
||||||
fi
|
fi
|
||||||
|
if [ "$SBX" = "1" ]; then
|
||||||
|
pkgs="$pkgs docker-sbx"
|
||||||
|
fi
|
||||||
if ! is_dry_run; then
|
if ! is_dry_run; then
|
||||||
set -x
|
set -x
|
||||||
fi
|
fi
|
||||||
@@ -743,6 +771,9 @@ do_install() {
|
|||||||
if version_gte "23.0"; then
|
if version_gte "23.0"; then
|
||||||
pkgs="$pkgs docker-buildx-plugin docker-model-plugin"
|
pkgs="$pkgs docker-buildx-plugin docker-model-plugin"
|
||||||
fi
|
fi
|
||||||
|
if [ "$SBX" = "1" ]; then
|
||||||
|
pkgs="$pkgs docker-sbx"
|
||||||
|
fi
|
||||||
if ! is_dry_run; then
|
if ! is_dry_run; then
|
||||||
set -x
|
set -x
|
||||||
fi
|
fi
|
||||||
|
|||||||
Reference in new issue
Block a user