24 lines
694 B
Bash
24 lines
694 B
Bash
#!/bin/bash
|
|
|
|
## Create a container
|
|
lxc launch ubuntu $LXC_CONTAINER_NAME -p $LXC_PROFILE && \
|
|
|
|
## Setup container for docker
|
|
curl - "https://git.limbosolutions.com/kb/lxc/raw/branch/main/scripts/lxc-config-docker-requirements.sh" | bash $LXC_CONTAINER_NAME
|
|
|
|
|
|
## update container
|
|
lxc exec $LXC_CONTAINER_NAME bash -c "apt update -y && apt upgrade -y"
|
|
|
|
## Install docker on lxc container
|
|
lxc exec $LXC_CONTAINER_NAME bash -c "curl -s \"https://git.limbosolutions.com/kb/docker/raw/branch/main/scripts/ubuntu-fuse-setup.sh\" | bash "
|
|
|
|
#install Portainer
|
|
lxc exec $LXC_CONTAINER_NAME bash -c "curl -s \"https://git.limbosolutions.com/kb/portainer/raw/branch/main/scripts/setup.sh\" | bash "
|
|
|
|
|
|
|
|
|
|
|
|
|