Skip to content

Commit 32693f4

Browse files
committed
Update images
1 parent 43ac78b commit 32693f4

File tree

4 files changed

+17
-7
lines changed

4 files changed

+17
-7
lines changed

Diff for: README.md

+9-1
Original file line numberDiff line numberDiff line change
@@ -320,16 +320,24 @@ make install
320320

321321
## Testing locally
322322
A convenience docker-compose allows you to test the RDPGW locally. It uses [Keycloak](http://www.keycloak.org)
323-
and [xrdp](http://www.xrdp.org) and exposes it services on port 443. You will need to allow your browser
323+
and [xrdp](http://www.xrdp.org) and exposes it services on port 9443. You will need to allow your browser
324324
to connect to localhost with and self signed security certificate. For chrome set `chrome://flags/#allow-insecure-localhost`.
325325
The username to login to both Keycloak and xrdp is `admin` as is the password.
326326

327+
__NOTE__: The redirecting relies on DNS. Make sure to add ``127.0.0.1 keycloak`` to your `/etc/hosts` file to ensure
328+
that the redirect works.
329+
330+
__NOTE__: The local testing environment uses a self signed certificate. This works for MAC clients, but not for Windows.
331+
If you want to test it on Windows you will need to provide a valid certificate.
332+
327333
```bash
328334
cd dev/docker
329335
docker-compose build
330336
docker-compose up
331337
```
332338

339+
You can then connect to the gateway at `https://localhost:9443/connect` which will start the authentication flow.
340+
333341
## Use
334342
Point your browser to `https://your-gateway/connect`. After authentication
335343
and RDP file will download to your desktop. This file can be opened by one

Diff for: dev/docker/Dockerfile.xrdp

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
FROM rattydave/docker-ubuntu-xrdp-mate-custom:20.04
1+
FROM rattydave/docker-ubuntu-xrdp-mate-custom:latest
22

33
RUN cd /etc/xrdp/ && \
44
openssl req -x509 -newkey rsa:2048 -nodes -keyout key.pem -out cert.pem -days 3650 \

Diff for: dev/docker/docker-compose-arm64.yml

+4-3
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ services:
2828
xrdp:
2929
container_name: xrdp
3030
hostname: xrdp
31-
image: bolkedebruin/docker-ubuntu-xrdp-mate-rdpgw:20.04
31+
image: bolkedebruin/docker-ubuntu-xrdp-mate-rdpgw:latest
3232
ports:
3333
- 3389:3389
3434
restart: on-failure
@@ -43,11 +43,12 @@ services:
4343
- 9443:9443
4444
restart: on-failure
4545
depends_on:
46-
- keycloak
46+
keycloak:
47+
condition: service_healthy
4748
environment:
4849
RDPGW_SERVER__SESSION_STORE: file
4950
healthcheck:
5051
test: ["CMD", "curl", "-f", "http://keycloak:8080"]
51-
interval: 30s
52+
interval: 10s
5253
timeout: 10s
5354
retries: 10

Diff for: dev/docker/docker-compose.yml

+3-2
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ services:
3333
xrdp:
3434
container_name: xrdp
3535
hostname: xrdp
36-
image: bolkedebruin/docker-ubuntu-xrdp-mate-rdpgw:20.04
36+
image: bolkedebruin/docker-ubuntu-xrdp-mate-rdpgw:latest
3737
ports:
3838
- 3389:3389
3939
restart: on-failure
@@ -47,7 +47,8 @@ services:
4747
- 9443:9443
4848
restart: on-failure
4949
depends_on:
50-
- keycloak
50+
keycloak:
51+
condition: service_healthy
5152
healthcheck:
5253
test: ["CMD", "curl", "-f", "http://keycloak:8080"]
5354
interval: 30s

0 commit comments

Comments
 (0)