Sign inSign up

sabino/datagrip

By sabino

Updated almost 10 years ago

DataGrip by JetBrains running inside a docker container

Image
2

372

sabino/datagrip repository overview

Intellij Datagrip

This was a test made to achieve running DataGrip inside a docker container

Running

Create a cool folder in your home called .datagrip Inside this folder create another one named .docker

This folder will be mapped as the home folder for the user which will run the image.

Then, cast the command bellow

docker run -ti --rm -e DISPLAY=$DISPLAY -v /tmp/.X11-unix:/tmp/.X11-unix -v ~/.datagrip/.docker:/home/developer  -v ~/.datagrip/workspace sabino/datagrip

Alias

You can easily save this command inside a .sh file or create an alias like so:

alias datagrip="mkdir -p ~/.datagrip && mkdir -p ~/.datagrip/.docker && mkdir -p ~/.datagrip/workspace && docker run --rm -e DISPLAY=$DISPLAY -v /tmp/.X11-unix:/tmp/.X11-unix -v ~/.datagrip/.docker:/home/developer -v ~/.datagrip/workspace sabino/datagrip &"

Save it in your .bashrc or .profile then cast from any terminal:

datagrip

Tag summary

Content type

Image

Digest

Size

936.6 MB

Last updated

almost 10 years ago

docker pull sabino/datagrip