mirror of
https://github.com/dockersrc/alpine
synced 2026-06-30 11:45:53 -04:00
9dd31bf983edc67fc61dc05f85861d5fe6d33e21
Build and Push 3.14 / build (push) Has been cancelled
Build and Push 3.15 / build (push) Has been cancelled
Build and Push 3.16 / build (push) Has been cancelled
Build and Push 3.17 / build (push) Has been cancelled
Build and Push 3.18 / build (push) Has been cancelled
Build and Push 3.19 / build (push) Has been cancelled
Build and Push 3.20 / build (push) Has been cancelled
Build and Push 3.21 / build (push) Has been cancelled
Build and Push 3.22 / build (push) Has been cancelled
Build and Push 3.23 / build (push) Has been cancelled
Build and Push edge / build (push) Has been cancelled
Build and Push / build (push) Has been cancelled
__exec_command was using ${arg:-} which only captured the first element
of the args array, then ran it through "$shell" $pre_exec "$cmdExec"
which effectively discarded everything after $1.
Running `docker run image sh -c 'go build ...'` would:
1. Set arg=("sh" "-c" "go build ...")
2. Set cmdExec="sh" (only first element)
3. Run bash --login -c "sh" (dropping -c and the actual command)
This broke any Makefile GO_DOCKER pattern that relied on passing multi-arg
commands. Simplified to just `exec "$@"` which passes all args through.
- rootfs/usr/local/etc/docker/functions/entrypoint.sh: rewrite __exec_command
rootfs/usr/local/etc/docker/functions/entrypoint.sh
👋 Welcome to alpine 🚀
alpine README
Install my system scripts
sudo bash -c "$(curl -q -LSsf "https://github.com/systemmgr/installer/raw/main/install.sh")"
sudo systemmgr --config && sudo systemmgr install scripts
Automatic install/update
dockermgr update os alpine
Install and run container
mkdir -p "/var/lib/srv/root/docker/casjaysdev/alpine/latest"
git clone "https://github.com/dockermgr/alpine" "$HOME/.local/share/CasjaysDev/dockermgr/alpine"
cp -Rfva "$HOME/.local/share/CasjaysDev/dockermgr/alpine/rootfs/." "/var/lib/srv/root/docker/casjaysdev/alpine/latest/"
docker run -d \
--restart always \
--privileged \
--name casjaysdev-alpine-latest \
--hostname alpine \
-e TZ=${TIMEZONE:-America/New_York} \
-v "/var/lib/srv/root/docker/casjaysdev/alpine/latest/data:/data:z" \
-v "/var/lib/srv/root/docker/casjaysdev/alpine/latest/config:/config:z" \
casjaysdev/alpine:latest
via docker-compose
version: "2"
services:
ProjectName:
image: casjaysdev/alpine
container_name: casjaysdev-alpine-latest
environment:
- TZ=America/New_York
- HOSTNAME=alpine
volumes:
- "/var/lib/srv/root/docker/casjaysdev/alpine/latest/data:/data:z"
- "/var/lib/srv/root/docker/casjaysdev/alpine/latest/config:/config:z"
restart: always
Get source files
dockermgr download src os alpine
Build container
git clone "https://github.com/dockersrc/alpine" "$HOME/Projects/github/dockersrc/alpine"
cd "$HOME/Projects/github/dockersrc/alpine" && buildx all
Authors
Description
Languages
Shell
94.5%
Edge
4.2%
Dockerfile
1.3%