Update 'documentation/setup.md'
This commit is contained in:
@@ -1,51 +1,19 @@
|
|||||||
# Setup
|
# Setup
|
||||||
|
|
||||||
## Host LXC Container
|
|
||||||
|
|
||||||
``` bash
|
|
||||||
#set vars
|
|
||||||
containername=gitsrv01
|
|
||||||
```
|
|
||||||
|
|
||||||
### Create Container
|
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
lxc launch ubuntu $containername -p enxd0374555c1f8_macvlan && \
|
git clone https://git.limbosolutions.com/limbosolutions.com/git.limbosolutions.com
|
||||||
lxc config set $containername "security.nesting" "true" && \
|
cd git.limbosolutions.com
|
||||||
lxc exec $containername -- bash -c "apt update -y && apt upgrade -y && apt install --yes fuse-overlayfs" && \
|
chmod +x /scripts
|
||||||
lxc exec $containername -- bash -c "cd ~/ && curl -fsSL https://get.docker.com -o get-docker.sh && sh get-docker.sh" && \
|
./scripts/setup-lxc.sh
|
||||||
|
|
||||||
```
|
```
|
||||||
|
Setup using portainer [docker compose](docker/docker-compose.yaml).
|
||||||
|
|
||||||
For more information:
|
|
||||||
|
|
||||||
- [LXC/Docker](/kb/lxc/documentation/running-docker.md)
|
|
||||||
|
|
||||||
#### Portainer
|
# Remove
|
||||||
|
|
||||||
##### Create
|
|
||||||
|
|
||||||
```bash
|
|
||||||
lxc exec $containername -- bash -c "docker run -d -p 8000:8000 -p 9443:9443 --name portainer --restart=always -v /var/run/docker.sock:/var/run/docker.sock -v portainer_data:/data portainer/portainer-ce:latest" && \
|
|
||||||
lxc exec $containername -- bash -c "docker container list"
|
|
||||||
```
|
|
||||||
|
|
||||||
##### Remove
|
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
lxc exec $containername -- bash -c "docker rm portainer --force"
|
lxc exec $containername -- bash -c "docker rm portainer --force"
|
||||||
```
|
```
|
||||||
|
|
||||||
For more information:
|
|
||||||
|
|
||||||
- [Install Portainer](/kb/portainer/)
|
|
||||||
|
|
||||||
### Remove
|
|
||||||
|
|
||||||
```bash
|
|
||||||
lxc rm $containername --force
|
|
||||||
```
|
|
||||||
|
|
||||||
## Setup Gitea
|
|
||||||
|
|
||||||
Setup using [docker compose](docker/docker-compose.yaml).
|
|
||||||
|
|||||||
Reference in New Issue
Block a user