Skip to content

sysincz/java-applet-player

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

19 Commits
 
 
 
 
 
 
 
 

Repository files navigation

java-applet-player

original image desktopcontainers/java-applet-player

Java Applet Player

This is a Debian Stretch Container with installed Firefox, OpenJRE 8 and Java Applet.

Use this on Platforms where you don't want to install a JRE or need to use Java Applets and want to avoid using them directly.

The Security Settings of Icedtea Plugin set to LOW. So be careful and maybe only use this container when you trust the client. For example a Hardware Appliance or something similar.

It's based on DesktopContainers/base-debian

Environment variables and defaults

  • WEB_URL
    • specify the url the browser will point to by default e.g. the citrix login portal url

Usage: Run the Client

Simple SSH X11 Forwarding

Since it is an X11 GUI software, usage is in two steps:

1.a Run a background container as server or start existing one.

docker start jap || docker run -d --name jap \
-e 'WEB_URL=https://my-trusted-client/' \
-e 'WEB_URL_JAVA_EXCEPTION=https://my-trusted-client/'
sysincz/java-applet-player:v2.1

1.b Run directly X11

xhost +local:jap
docker run -it --rm --name jap \
-h 'jap'
-e "DISPLAY=${DISPLAY}" --entrypoint /usr/local/bin/ssh-app.sh -v "/tmp/.X11-unix:/tmp/.X11-unix" \
-e 'WEB_URL=https://my-trusted-client/' \
-e 'WEB_URL_JAVA_EXCEPTION=https://my-trusted-client/'
sysincz/java-applet-player:v2.1

2. Connect to the server using ssh -X (as many times you want).

 _Logging in with `ssh` automatically opens a firefox window_
ssh -o UserKnownHostsFile=/dev/null -o StrictHostKeyChecking=no \
-X app@$(docker inspect --format '{{ .NetworkSettings.IPAddress }}' jap)

3. Browse to your Java Applet providing server, start the client and enjoy.

You can configure firefox and set bookmarks. As long as you don't remove the container and you reuse the same container, all your changes persist. You could also tag and push your configuration to a registry to backup (should be your own private registry for your privacy).

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Packages

No packages published