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