This shows you the differences between two versions of the page.
| Next revision | Previous revision | ||
|
getting_started:docker_image [2022/10/04 20:05] admin created |
getting_started:docker_image [2023/04/19 10:54] (current) admin [Create the Docker containers] |
||
|---|---|---|---|
| Line 5: | Line 5: | ||
| * One container will be the database using MariaDB | * One container will be the database using MariaDB | ||
| * The other container will be the web server with Nginx, PHP and FreeRADIUS. | * The other container will be the web server with Nginx, PHP and FreeRADIUS. | ||
| + | |||
| + | ===== Install Docker ===== | ||
| + | * We assume you are a user called **system** on a standard Ubuntu install. | ||
| + | * Issue the following commands to install the Docker system on your machine. | ||
| + | <code bash> | ||
| + | USER=" | ||
| + | |||
| + | sudo apt-get update | ||
| + | sudo apt-get install -y \ | ||
| + | ca-certificates \ | ||
| + | curl \ | ||
| + | gnupg \ | ||
| + | lsb-release | ||
| + | |||
| + | sudo curl -fsSL https:// | ||
| + | |||
| + | echo \ | ||
| + | "deb [arch=$(dpkg --print-architecture) signed-by=/ | ||
| + | $(lsb_release -cs) stable" | ||
| + | |||
| + | sudo apt-get update | ||
| + | sudo apt-get -y install docker-ce docker-ce-cli containerd.io docker-compose-plugin | ||
| + | sudo apt-get -y install docker-compose | ||
| + | |||
| + | # Make docker run as non root | ||
| + | sudo usermod -aG docker $USER | ||
| + | sudo chmod 666 / | ||
| + | |||
| + | # customize with your own. | ||
| + | sudo mkdir -p /mnt/data | ||
| + | # make sure all future data in this folder can be created as non root | ||
| + | sudo chown $USER:$USER /mnt/data | ||
| + | </ | ||
| + | |||
| + | ===== Create the Docker containers ===== | ||
| + | * We include everything to create the RADIUSdesk docker containers with the RADIUSdesk (rdcore) repository. | ||
| + | * Check out the **rdcore** git repository. | ||
| + | <code bash> | ||
| + | cd ~ | ||
| + | sudo git clone https:// | ||
| + | </ | ||
| + | * Mount the rdcore top directory to the **rdcore/ | ||
| + | <code bash> | ||
| + | cd rdcore/ | ||
| + | sudo mkdir rdcore | ||
| + | sudo mount --bind ../ | ||
| + | </ | ||
| + | * Run the **local_build.sh** script. | ||
| + | <code bash> | ||
| + | ./ | ||
| + | </ | ||
| + | * There will be feedback on the screen as the two docker containers getting built. | ||
| + | |||
| + | <WRAP center round important 100%> | ||
| + | * On my one Ubuntu machine I got an error message about | ||
| + | // | ||
| + | * The cure was to edit **~/ | ||
| + | <code javascript> | ||
| + | { | ||
| + | " | ||
| + | " | ||
| + | " | ||
| + | } | ||
| + | </ | ||
| + | </ | ||
| + | |||
| + | * After it completed you can confirm it is running | ||
| + | <code bash> | ||
| + | docker container ls | ||
| + | CONTAINER ID | ||
| + | 98339a6a1b57 | ||
| + | db3c6fa81d8b | ||
| + | </ | ||
| + | * Open a browser and go to the IP Address of the host running the docker containers. | ||
| + | |||
| + | |||
| + | |||