🗃️ Updated Dockerfile* and .env.scripts* 🗃️
Some checks failed
bun-1.0 / release-bun-1_0 (push) Failing after 55s
release-tag / release-image (push) Failing after 24s
bun-1.1 / release-bun-1_1 (push) Failing after 50s
bun-1 / release-bun-1 (push) Failing after 1h34m14s

Dockerfile
Dockerfile.1.0
Dockerfile.1.1
.env.scripts
.env.scripts.1.0
.env.scripts.1.1
.gitea/workflows/docker-1_0.yaml
.gitea/workflows/docker-1_1.yaml
.gitea/workflows/docker.1.yaml
.gitea/workflows/docker.yaml
rootfs/root/docker/setup/05-custom.sh
rootfs/usr/local/bin/entrypoint.sh
rootfs/usr/local/etc/docker/functions/entrypoint.sh
This commit is contained in:
casjay
2025-11-29 11:06:56 -05:00
parent d5844f5a10
commit e56fd19396
13 changed files with 2145 additions and 1282 deletions

View File

@@ -1,6 +1,6 @@
#!/usr/bin/env bash
# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
##@Version : 202509161144-git
##@Version : 202511291200-git
# @@Author : CasjaysDev
# @@Contact : CasjaysDev <docker-admin@casjaysdev.pro>
# @@License : MIT
@@ -8,7 +8,7 @@
# @@Copyright : Copyright 2023 CasjaysDev
# @@Created : Mon Aug 28 06:48:42 PM EDT 2023
# @@File : 05-custom.sh
# @@Description : script to run custom
# @@Description : script to install Bun
# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
# shellcheck shell=bash
# shellcheck disable=SC2016
@@ -24,15 +24,35 @@ set -o pipefail
# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
# Set env variables
exitCode=0
LANG_VERSION="${LANG_VERSION:-latest}"
# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
# Predefined actions
echo "Installing Bun version: ${LANG_VERSION}"
# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
# Main script
# Install Bun
if [ "$LANG_VERSION" = "latest" ]; then
echo "Installing latest Bun..."
curl -fsSL https://bun.sh/install | bash || exitCode=1
else
echo "Installing Bun v${LANG_VERSION}..."
curl -fsSL https://bun.sh/install | bash -s "bun-v${LANG_VERSION}" || exitCode=1
fi
# Move to /usr/local/bin
if [ -f "$HOME/.bun/bin/bun" ]; then
mv "$HOME/.bun/bin/bun" /usr/local/bin/bun || exitCode=1
mv "$HOME/.bun/bin/bunx" /usr/local/bin/bunx || exitCode=1
rm -rf "$HOME/.bun"
echo "Bun installed successfully"
bun --version || exitCode=1
else
echo "Bun installation failed" >&2
exitCode=1
fi
# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
# Set the exit code
#exitCode=$?
# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
exit $exitCode
# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
# ex: ts=2 sw=2 et filetype=sh