Update images

This commit is contained in:
Bolke de Bruin 2024-03-18 12:07:56 +01:00
parent 43ac78bf57
commit 32693f4197
4 changed files with 17 additions and 7 deletions

View file

@ -320,16 +320,24 @@ make install
## Testing locally ## Testing locally
A convenience docker-compose allows you to test the RDPGW locally. It uses [Keycloak](http://www.keycloak.org) A convenience docker-compose allows you to test the RDPGW locally. It uses [Keycloak](http://www.keycloak.org)
and [xrdp](http://www.xrdp.org) and exposes it services on port 443. You will need to allow your browser and [xrdp](http://www.xrdp.org) and exposes it services on port 9443. You will need to allow your browser
to connect to localhost with and self signed security certificate. For chrome set `chrome://flags/#allow-insecure-localhost`. to connect to localhost with and self signed security certificate. For chrome set `chrome://flags/#allow-insecure-localhost`.
The username to login to both Keycloak and xrdp is `admin` as is the password. The username to login to both Keycloak and xrdp is `admin` as is the password.
__NOTE__: The redirecting relies on DNS. Make sure to add ``127.0.0.1 keycloak`` to your `/etc/hosts` file to ensure
that the redirect works.
__NOTE__: The local testing environment uses a self signed certificate. This works for MAC clients, but not for Windows.
If you want to test it on Windows you will need to provide a valid certificate.
```bash ```bash
cd dev/docker cd dev/docker
docker-compose build docker-compose build
docker-compose up docker-compose up
``` ```
You can then connect to the gateway at `https://localhost:9443/connect` which will start the authentication flow.
## Use ## Use
Point your browser to `https://your-gateway/connect`. After authentication Point your browser to `https://your-gateway/connect`. After authentication
and RDP file will download to your desktop. This file can be opened by one and RDP file will download to your desktop. This file can be opened by one

View file

@ -1,4 +1,4 @@
FROM rattydave/docker-ubuntu-xrdp-mate-custom:20.04 FROM rattydave/docker-ubuntu-xrdp-mate-custom:latest
RUN cd /etc/xrdp/ && \ RUN cd /etc/xrdp/ && \
openssl req -x509 -newkey rsa:2048 -nodes -keyout key.pem -out cert.pem -days 3650 \ openssl req -x509 -newkey rsa:2048 -nodes -keyout key.pem -out cert.pem -days 3650 \

View file

@ -28,7 +28,7 @@ services:
xrdp: xrdp:
container_name: xrdp container_name: xrdp
hostname: xrdp hostname: xrdp
image: bolkedebruin/docker-ubuntu-xrdp-mate-rdpgw:20.04 image: bolkedebruin/docker-ubuntu-xrdp-mate-rdpgw:latest
ports: ports:
- 3389:3389 - 3389:3389
restart: on-failure restart: on-failure
@ -43,11 +43,12 @@ services:
- 9443:9443 - 9443:9443
restart: on-failure restart: on-failure
depends_on: depends_on:
- keycloak keycloak:
condition: service_healthy
environment: environment:
RDPGW_SERVER__SESSION_STORE: file RDPGW_SERVER__SESSION_STORE: file
healthcheck: healthcheck:
test: ["CMD", "curl", "-f", "http://keycloak:8080"] test: ["CMD", "curl", "-f", "http://keycloak:8080"]
interval: 30s interval: 10s
timeout: 10s timeout: 10s
retries: 10 retries: 10

View file

@ -33,7 +33,7 @@ services:
xrdp: xrdp:
container_name: xrdp container_name: xrdp
hostname: xrdp hostname: xrdp
image: bolkedebruin/docker-ubuntu-xrdp-mate-rdpgw:20.04 image: bolkedebruin/docker-ubuntu-xrdp-mate-rdpgw:latest
ports: ports:
- 3389:3389 - 3389:3389
restart: on-failure restart: on-failure
@ -47,7 +47,8 @@ services:
- 9443:9443 - 9443:9443
restart: on-failure restart: on-failure
depends_on: depends_on:
- keycloak keycloak:
condition: service_healthy
healthcheck: healthcheck:
test: ["CMD", "curl", "-f", "http://keycloak:8080"] test: ["CMD", "curl", "-f", "http://keycloak:8080"]
interval: 30s interval: 30s