DataGrip by JetBrains running inside a docker container
372
This was a test made to achieve running DataGrip inside a docker container
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
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
Content type
Image
Digest
Size
936.6 MB
Last updated
almost 10 years ago
docker pull sabino/datagrip