Skip to content
This repository has been archived by the owner on Jul 24, 2020. It is now read-only.

Add fontconfig and ttf-dejavu packages to allow running GUI-mode/x11 forwarding #2

Merged
merged 2 commits into from
Jul 7, 2019

Conversation

er1c
Copy link
Contributor

@er1c er1c commented Jun 17, 2019

I'm interested in getting this added to the underlying jmeter docker image, so that https://github.com/egaillardon/jmeter-plugins can get updated to use it.

This allows supporting X11-forwarding/GUI mode:

image

Running JMeter from Docker

JMeter Docker Image

From: https://github.com/egaillardon/jmeter-plugins

Install Quartz:

  • Install the latest XQuartz X11 server (https://www.xquartz.org/) and run it
  • Activate the option ‘Allow connections from network clients’ in XQuartz settings
  • Quit & restart XQuartz (to activate the setting)

Run Interactive UI:

# allow access from localhost
xhost + 127.0.0.1


docker pull egaillardon/jmeter-plugins
docker run -e DISPLAY=host.docker.internal:0 --interactive --tty --rm egaillardon/jmeter-plugins jmeter.sh

@er1c
Copy link
Contributor Author

er1c commented Jun 18, 2019

I also just added the alpn-boot jar/JVM_ARGS environment variable to get the HTTP2 plugin to work.

@egaillardon egaillardon closed this Jul 7, 2019
@egaillardon egaillardon reopened this Jul 7, 2019
@egaillardon egaillardon merged commit a6a8c03 into egaillardon:master Jul 7, 2019
@egaillardon
Copy link
Owner

Thank you Eric. This will be included in the next image version :)

egaillardon added a commit that referenced this pull request Jul 7, 2019
egaillardon added a commit that referenced this pull request Jul 7, 2019
@er1c
Copy link
Contributor Author

er1c commented Jul 7, 2019

Thanks @egaillardon

It might be worth adding instructions for getting the X11 Forwarding in the README.md, I guess I was just being too lazy and wasn't quite sure how you were organizing it. I added some comments in the PR that might prove to be a good foundation for the README.md

Small note, in the change log, I would update these:

Add fontconfig and ttf-dejavu packages to allow running GUI-mode/x11. => * Add fontconfig and ttf-dejavu packages to allow running GUI-mode via x11 forwarding.

Add alpn-boot support for HTTP2 plugin forwarding. => * Add alpn-boot support for HTTP2 plugin.

The ALPN-boot is needed to support the HTTP2 protocol, it doesn't really have anything to do with forwarding. The GUI-support works through "X11 Forwarding"

@egaillardon
Copy link
Owner

Thanks @er1c
An unlucky copy paste :(
I'm going to correct and to add instructions.

@hydrz hydrz mentioned this pull request Dec 6, 2019
@hydrz
Copy link

hydrz commented Dec 6, 2019

Thanks @er1c @egaillardon

I found that you can use the following command to run on Linux

Run Interactive UI on Linux :

# allow access from localhost
xhost + 127.0.0.1
docker pull egaillardon/jmeter

docker run --rm -v /tmp/.X11-unix:/tmp/.X11-unix -e DISPLAY=unix$DISPLAY egaillardon/jmeter jmeter.sh

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants