Sign inSign up

seudev/jaspersoft-studio

By seudev

•Updated almost 6 years ago

A dockerized Jaspersoft Studio CE desktop application.

Image
0

261

seudev/jaspersoft-studio repository overview

⁠Dockerized Jaspersoft Studio

jaspersoft-studio

⁠What is it?

dockerized-jaspersoft-studio-256px

A dockerized Jaspersoft Studio CE⁠ desktop application.

⁠Installation

⁠Docker Pull
docker pull seudev/jaspersoft-studio:5.5.1
⁠Allow access to the X server

Jaspersoft Studio is a GUI application, then to run it in a docker container is necessary allow access to the X server. Execute the below script to allow it:

if ! grep -q "xhost +local:root" ~/.profile; then
    printf "\n# Allow access to the X server, using the local root user\nxhost +local:root\n" >> ~/.profile
    xhost +local:root
fi

Note: The xhost +local:root command can be executed directly, without be append to ~./profile file, but this mode is necessary re-execute each system boot.

⁠Create a shortcut on the desktop and in the Start Menu (Optional)

Run the below script to download and configure the shortcut in your desktop and in the Start Menu.

mkdir -p ~/seudev/dockerized-apps/jaspersoft-studio/5.5.1 \
&& wget https://raw.githubusercontent.com/seudev/dockerized-apps/master/jaspersoft-studio/jaspersoft-studio -O ~/seudev/dockerized-apps/jaspersoft-studio/5.5.1/jaspersoft-studio \
&& wget https://raw.githubusercontent.com/seudev/dockerized-apps/master/jaspersoft-studio/dockerized-jaspersoft-studio-256px.png -O ~/seudev/dockerized-apps/jaspersoft-studio/dockerized-jaspersoft-studio-256px.png \
&& wget https://raw.githubusercontent.com/seudev/dockerized-apps/master/jaspersoft-studio/com.seudev.jaspersoft-studio.desktop -O ~/Desktop/com.seudev.jaspersoft-studio.5.5.1.desktop \
&& sed -i "s/<version>/5.5.1/" ~/seudev/dockerized-apps/jaspersoft-studio/5.5.1/jaspersoft-studio \
&& sed -i "s/<version>/5.5.1/" ~/Desktop/com.seudev.jaspersoft-studio.5.5.1.desktop \
&& sed -i "s/<user>/$USER/" ~/Desktop/com.seudev.jaspersoft-studio.5.5.1.desktop \
&& chmod 755 ~/seudev/dockerized-apps/jaspersoft-studio/5.5.1/jaspersoft-studio ~/Desktop/com.seudev.jaspersoft-studio.5.5.1.desktop \
&& cp ~/Desktop/com.seudev.jaspersoft-studio.5.5.1.desktop ~/.local/share/applications

Note: If you want to change the Jaspersoft Studio version, theme mode or other parameter, then open the ~/seudev/dockerized-apps/jaspersoft-studio/5.5.1/jaspersoft-studio file with a text editor and edit it.

⁠Using Dockerized Jaspersoft Studio

Note: If you has created a shortcut skip this section and just double click Dockerized Jaspersoft Studio shortcut, localizated in your desktop.

docker run -it --rm \
    --network host \
    -v ~/dev-workspace:/root/dev-workspace \
    -v ~/seudev/dockerized-apps/jaspersoft-studio/JaspersoftWorkspace:/root/JaspersoftWorkspace \
    -e DISPLAY=$DISPLAY \
    -v /tmp/.X11-unix:/tmp/.X11-unix:ro \
    -e GTK_THEME=Adwaita:dark \
    seudev/jaspersoft-studio:5.5.1
⁠docker run parameters
parameterDescription
--network hostUse it if you need to access some database server directly on the host machine.
-v ~/dev-workspaceUse the ~/dev-workspace local directory to share something with the container.
-v ~/seudev/dockerized-apps/jaspersoft-studio/volumes/JaspersoftWorkspaceBind the ~/seudev/dockerized-apps/jaspersoft-studio/volumes/JaspersoftWorkspace local directory to cache the workspace.
-e DISPLAY=$DISPLAYSet the DISPLAY environment variable with same local value. It's used by X server.
-v /tmp/.X11-unix:/tmp/.X11-unix:roBind the /tmp/.X11-unix local directory in read only mode. It's used by X server.
-e GTK_THEME=Adwaita:lightSet the light mode.
-e GTK_THEME=Adwaita:darkSet the dark mode.
⁠Building this image:
docker build -t seudev/jaspersoft-studio:5.5.1 .

⁠Uninstall

If you want uninstall this dockerized application, then execute the below scripts:

  1. Remove the docker image: docker image rm jaspersoft-studio:5.5.1
  2. Remove the version folder: rm -rf ~/seudev/dockerized-apps/jaspersoft-studio/5.5.1
  3. Remove the shortcut from the Desktop: rm -f ~/Desktop/com.seudev.jaspersoft-studio.5.5.1.desktop
  4. Remove the shortcut from the Start Menu: rm -f ~/.local/share/applications/com.seudev.jaspersoft-studio.5.5.1.desktop
  5. If you want remove the generated volumes (JaspersoftWorkspace): sudo rm -rf ~/seudev/dockerized-apps/jaspersoft-studio/volumes
  6. If you want remove all dbeaver folder (generated volumes, icon and all version folders): sudo rm -rf ~/seudev/dockerized-apps/jaspersoft-studio

⁠Licensing

seudev/dockerized-apps is provided and distributed under the Apache Software License 2.0⁠.

Refer to LICENSE for more information.

Tag summary

Content type

Image

Digest

Size

932.1 MB

Last updated

almost 6 years ago

docker pull seudev/jaspersoft-studio:5.5.1