🗃️ Committing everything that changed 🗃️

Dockerfile
.env.scripts
README.md
This commit is contained in:
casjay
2024-10-12 16:20:59 -04:00
parent 4e0d665e1a
commit b81ac063d7
3 changed files with 20 additions and 29 deletions

View File

@@ -13,25 +13,24 @@ archlinux README
## Automatic install/update
```shell
dockermgr update archlinux
dockermgr update os archlinux
```
## Install and run container
```shell
mkdir -p "$HOME/.local/share/srv/docker/archlinux/rootfs"
mkdir -p "/var/lib/srv/root/docker/casjaysdev/archlinux/latest"
git clone "https://github.com/dockermgr/archlinux" "$HOME/.local/share/CasjaysDev/dockermgr/archlinux"
cp -Rfva "$HOME/.local/share/CasjaysDev/dockermgr/archlinux/rootfs/." "$HOME/.local/share/srv/docker/archlinux/rootfs/"
cp -Rfva "$HOME/.local/share/CasjaysDev/dockermgr/archlinux/rootfs/." "/var/lib/srv/root/docker/casjaysdev/archlinux/latest/"
docker run -d \
--restart always \
--privileged \
--name casjaysdevdocker-archlinux \
--name casjaysdev-archlinux-latest \
--hostname archlinux \
-e TZ=${TIMEZONE:-America/New_York} \
-v "$HOME/.local/share/srv/docker/casjaysdevdocker-archlinux/rootfs/data:/data:z" \
-v "$HOME/.local/share/srv/docker/casjaysdevdocker-archlinux/rootfs/config:/config:z" \
-p 80:80 \
casjaysdevdocker/archlinux:latest
-v "/var/lib/srv/root/docker/casjaysdev/archlinux/latest/data:/data:z" \
-v "/var/lib/srv/root/docker/casjaysdev/archlinux/latest/config:/config:z" \
casjaysdev/archlinux:latest
```
## via docker-compose
@@ -40,39 +39,31 @@ casjaysdevdocker/archlinux:latest
version: "2"
services:
ProjectName:
image: casjaysdevdocker/archlinux
container_name: casjaysdevdocker-archlinux
image: casjaysdev/archlinux
container_name: casjaysdev-archlinux-latest
environment:
- TZ=America/New_York
- HOSTNAME=archlinux
volumes:
- "$HOME/.local/share/srv/docker/casjaysdevdocker-archlinux/rootfs/data:/data:z"
- "$HOME/.local/share/srv/docker/casjaysdevdocker-archlinux/rootfs/config:/config:z"
ports:
- 80:80
- "/var/lib/srv/root/docker/casjaysdev/archlinux/latest/data:/data:z"
- "/var/lib/srv/root/docker/casjaysdev/archlinux/latest/config:/config:z"
restart: always
```
## Get source files
```shell
dockermgr download src casjaysdevdocker/archlinux
```
OR
```shell
git clone "https://github.com/casjaysdevdocker/archlinux" "$HOME/Projects/github/casjaysdevdocker/archlinux"
dockermgr download src os archlinux
```
## Build container
```shell
cd "$HOME/Projects/github/casjaysdevdocker/archlinux"
buildx
git clone "https://github.com/dockersrc/archlinux" "$HOME/Projects/github/dockersrc/archlinux"
cd "$HOME/Projects/github/dockersrc/archlinux" && buildx all
```
## Authors
🤖 casjay: [Github](https://github.com/casjay) 🤖
⛵ casjaysdevdocker: [Github](https://github.com/casjaysdevdocker) [Docker](https://hub.docker.com/u/casjaysdevdocker) ⛵
⛵ casjaysdevdocker: [Github](https://github.com/dockersrc) [Docker](https://hub.docker.com/u/casjaysdevdocker) ⛵