Sign inSign up

bbania/netbeans

By bbania

•Updated about 10 years ago

Docker image with Netbeans IDE (Java EE bundle)

Image
0

401

bbania/netbeans repository overview

⁠Netbeans IDE

This is a Docker image that lets you run Netbeans IDE (Java EE bundle) without the need to install it.

⁠Image tags

⁠Running the container

⁠Mac OSX
brew install socat
brew cask install xquartz
open -a XQuartz

In XQuartz start socat

socat TCP-LISTEN:6000,reuseaddr,fork UNIX-CLIENT:\"$DISPLAY\"

In another terminal window

docker run -e DISPLAY=$(ifconfig vboxnet0 | grep 'inet ' | cut -d' ' -f2):0 -it bbania/netbeans:<docker_tag>
⁠Persistent data

NetBeans plugins are kept on $HOME/.netbeans inside the container, so if you want to keep them around after you close it, you'll need to share it with your host.

For example:

docker run -e DISPLAY=$(ifconfig vboxnet0 | grep 'inet ' | cut -d' ' -f2):0 \
           -v `pwd`/.netbeans-docker:/home/developer/.netbeans \
           -it bbania/netbeans:<docker_tag>

⁠Build from this repo

⁠MAC OSX

Run the following to build the image:

docker build --build-arg DISPLAY=$(ifconfig vboxnet0 | grep 'inet ' | cut -d' ' -f2):0 \
             -t <username>/netbeans:<docker_tag> .

Tag summary

Content type

Image

Digest

Size

380.7 MB

Last updated

about 10 years ago

docker pull bbania/netbeans:8.1-alpine