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