RADIUSdesk

logo

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
getting_started:docker_image [2022/10/04 20:17]
admin
getting_started:docker_image [2023/04/19 10:54] (current)
admin [Create the Docker containers]
Line 11: Line 11:
 <code bash> <code bash>
 USER="system" USER="system"
 +
 +sudo apt-get update
 +sudo apt-get install -y \
 +    ca-certificates \
 +    curl \
 +    gnupg \
 +    lsb-release
 +
 +sudo curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo gpg --dearmor -o /usr/share/keyrings/docker-archive-keyring.gpg
 +
 +echo \
 +  "deb [arch=$(dpkg --print-architecture) signed-by=/usr/share/keyrings/docker-archive-keyring.gpg] https://download.docker.com/linux/ubuntu \
 +  $(lsb_release -cs) stable" | sudo tee /etc/apt/sources.list.d/docker.list > /dev/null
 +
 sudo apt-get update 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-ce docker-ce-cli containerd.io docker-compose-plugin
Line 27: Line 41:
 ===== Create the Docker containers ===== ===== Create the Docker containers =====
   * We include everything to create the RADIUSdesk docker containers with the RADIUSdesk (rdcore) repository.   * We include everything to create the RADIUSdesk docker containers with the RADIUSdesk (rdcore) repository.
-  * Check out the +  * Check out the **rdcore** git repository. 
 +<code bash> 
 +cd ~ 
 +sudo git clone https://github.com/RADIUSdesk/rdcore.git 
 +</code> 
 +  * Mount the rdcore top directory to the **rdcore/docker/rdcore** directory 
 +<code bash> 
 +cd rdcore/docker 
 +sudo mkdir rdcore 
 +sudo mount --bind ../../rdcore ./rdcore 
 +</code> 
 +  * Run the **local_build.sh** script. 
 +<code bash> 
 +./local_build.sh 
 +</code> 
 +  * 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 
 +//docker-credential-desktop not installed or not available in PATH// 
 +  * The cure was to edit **~/.docker/config.json** and replace **"credsStore"** by **"credStore"**. 
 +<code javascript> 
 +
 +        "auths": {}, 
 +        "credStore": "desktop", 
 +        "currentContext": "default" 
 +
 +</code> 
 +</WRAP> 
 + 
 +  * After it completed you can confirm it is running 
 +<code bash> 
 +docker container ls 
 +CONTAINER ID   IMAGE                  COMMAND                  CREATED             STATUS             PORTS                                                                                                        NAMES 
 +98339a6a1b57   docker_radiusdesk      "/bin/sh -c '/usr/bi…"   About an hour ago   Up About an hour   0.0.0.0:80->80/tcp, :::80->80/tcp, 0.0.0.0:1812-1813->1812-1813/udp, :::1812-1813->1812-1813/udp, 9000/tcp   radiusdesk 
 +db3c6fa81d8b   bitnami/mariadb:10.5   "/opt/bitnami/script…"   2 hours ago         Up 2 hours         3306/
 +</code> 
 +  * Open a browser and go to the IP Address of the host running the docker containers.