Files
ifconfig/README.md
T

80 lines
1.9 KiB
Markdown
Raw Normal View History

2022-11-14 13:03:16 -05:00
## 👋 Welcome to ifconfig 🚀
2022-02-14 16:45:10 -05:00
2026-05-12 20:06:51 -04:00
ifconfig README
2022-11-14 13:03:16 -05:00
## Install my system scripts
2022-02-14 16:45:10 -05:00
```shell
2022-11-14 13:03:16 -05:00
sudo bash -c "$(curl -q -LSsf "https://github.com/systemmgr/installer/raw/main/install.sh")"
sudo systemmgr --config && sudo systemmgr install scripts
2022-02-14 16:45:10 -05:00
```
2026-05-12 20:06:51 -04:00
## Automatic install/update
```shell
dockermgr update ifconfig
```
## Install and run container
```shell
dockerHome="/var/lib/srv/$USER/docker/casjaysdevdocker/ifconfig/ifconfig/latest/rootfs"
mkdir -p "/var/lib/srv/$USER/docker/ifconfig/rootfs"
git clone "https://github.com/dockermgr/ifconfig" "$HOME/.local/share/CasjaysDev/dockermgr/ifconfig"
cp -Rfva "$HOME/.local/share/CasjaysDev/dockermgr/ifconfig/rootfs/." "$dockerHome/"
docker run -d \
--restart always \
--privileged \
--name casjaysdevdocker-ifconfig-latest \
--hostname ifconfig \
-e TZ=${TIMEZONE:-America/New_York} \
-v "$dockerHome/data:/data:z" \
-v "$dockerHome/config:/config:z" \
-p 80:80 \
casjaysdevdocker/ifconfig:latest
```
## via docker-compose
```yaml
version: "2"
services:
ProjectName:
image: casjaysdevdocker/ifconfig
container_name: casjaysdevdocker-ifconfig
environment:
- TZ=America/New_York
- HOSTNAME=ifconfig
volumes:
- "/var/lib/srv/$USER/docker/casjaysdevdocker/ifconfig/ifconfig/latest/rootfs/data:/data:z"
- "/var/lib/srv/$USER/docker/casjaysdevdocker/ifconfig/ifconfig/latest/rootfs/config:/config:z"
ports:
- 80:80
restart: always
```
2022-11-14 13:03:16 -05:00
## Get source files
2026-05-12 20:06:51 -04:00
2022-02-14 16:45:10 -05:00
```shell
2026-05-12 20:06:51 -04:00
dockermgr download src casjaysdevdocker/ifconfig
2022-02-14 16:45:10 -05:00
```
2026-05-12 20:06:51 -04:00
2022-11-14 13:03:16 -05:00
OR
2026-05-12 20:06:51 -04:00
2022-02-14 16:45:10 -05:00
```shell
2022-11-14 13:03:16 -05:00
git clone "https://github.com/casjaysdevdocker/ifconfig" "$HOME/Projects/github/casjaysdevdocker/ifconfig"
2022-02-14 16:45:10 -05:00
```
2026-05-12 20:06:51 -04:00
2022-11-14 13:03:16 -05:00
## Build container
2026-05-12 20:06:51 -04:00
2022-02-14 16:45:10 -05:00
```shell
2022-11-14 13:03:16 -05:00
cd "$HOME/Projects/github/casjaysdevdocker/ifconfig"
buildx
2022-02-14 16:45:10 -05:00
```
2026-05-12 20:06:51 -04:00
2022-11-14 13:03:16 -05:00
## Authors
2026-05-12 20:06:51 -04:00
🤖 casjay: [Github](https://github.com/casjay) 🤖
⛵ casjaysdevdocker: [Github](https://github.com/casjaysdevdocker) [Docker](https://hub.docker.com/u/casjaysdevdocker) ⛵