2024-08-10 17:36:46 -04:00
|
|
|
## 👋 Welcome to alpine 🚀
|
|
|
|
|
|
|
|
alpine README
|
|
|
|
|
|
|
|
|
|
|
|
## Install my system scripts
|
|
|
|
|
|
|
|
```shell
|
|
|
|
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
|
|
|
|
|
|
|
|
```shell
|
2024-10-12 16:20:57 -04:00
|
|
|
dockermgr update os alpine
|
2024-08-10 17:36:46 -04:00
|
|
|
```
|
|
|
|
|
|
|
|
## Install and run container
|
|
|
|
|
|
|
|
```shell
|
2024-10-12 16:20:57 -04:00
|
|
|
mkdir -p "/var/lib/srv/root/docker/casjaysdev/alpine/latest"
|
2024-08-10 17:36:46 -04:00
|
|
|
git clone "https://github.com/dockermgr/alpine" "$HOME/.local/share/CasjaysDev/dockermgr/alpine"
|
2024-10-12 16:20:57 -04:00
|
|
|
cp -Rfva "$HOME/.local/share/CasjaysDev/dockermgr/alpine/rootfs/." "/var/lib/srv/root/docker/casjaysdev/alpine/latest/"
|
2024-08-10 17:36:46 -04:00
|
|
|
docker run -d \
|
|
|
|
--restart always \
|
|
|
|
--privileged \
|
2024-10-12 16:20:57 -04:00
|
|
|
--name casjaysdev-alpine-latest \
|
2024-08-10 17:36:46 -04:00
|
|
|
--hostname alpine \
|
|
|
|
-e TZ=${TIMEZONE:-America/New_York} \
|
2024-10-12 16:20:57 -04:00
|
|
|
-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
|
2024-08-10 17:36:46 -04:00
|
|
|
```
|
|
|
|
|
|
|
|
## via docker-compose
|
|
|
|
|
|
|
|
```yaml
|
|
|
|
version: "2"
|
|
|
|
services:
|
|
|
|
ProjectName:
|
2024-10-12 16:20:57 -04:00
|
|
|
image: casjaysdev/alpine
|
|
|
|
container_name: casjaysdev-alpine-latest
|
2024-08-10 17:36:46 -04:00
|
|
|
environment:
|
|
|
|
- TZ=America/New_York
|
|
|
|
- HOSTNAME=alpine
|
|
|
|
volumes:
|
2024-10-12 16:20:57 -04:00
|
|
|
- "/var/lib/srv/root/docker/casjaysdev/alpine/latest/data:/data:z"
|
|
|
|
- "/var/lib/srv/root/docker/casjaysdev/alpine/latest/config:/config:z"
|
2024-08-10 17:36:46 -04:00
|
|
|
restart: always
|
|
|
|
```
|
|
|
|
|
|
|
|
## Get source files
|
|
|
|
|
|
|
|
```shell
|
2024-10-12 16:20:57 -04:00
|
|
|
dockermgr download src os alpine
|
2024-08-10 17:36:46 -04:00
|
|
|
```
|
|
|
|
|
|
|
|
## Build container
|
|
|
|
|
|
|
|
```shell
|
2024-10-12 16:20:57 -04:00
|
|
|
git clone "https://github.com/dockersrc/alpine" "$HOME/Projects/github/dockersrc/alpine"
|
|
|
|
cd "$HOME/Projects/github/dockersrc/alpine" && buildx all
|
2024-08-10 17:36:46 -04:00
|
|
|
```
|
|
|
|
|
|
|
|
## Authors
|
|
|
|
|
|
|
|
🤖 casjay: [Github](https://github.com/casjay) 🤖
|
2024-10-12 16:20:57 -04:00
|
|
|
⛵ casjaysdevdocker: [Github](https://github.com/dockersrc) [Docker](https://hub.docker.com/u/casjaysdevdocker) ⛵
|