docker-netbeans

NetBeans in a container

  • 所有者: fgrehm/docker-netbeans
  • 平台:
  • 许可证: MIT License
  • 分类:
  • 主题:
  • 喜欢:
    0
      比较:

Github星跟踪图

docker-netbeans

NetBeans v8.0.1 in a Docker container

Requirements

  • Docker 1.2+ (should work fine on 1.0+ but I haven't tried)
  • An X11 socket

Quickstart

Assuming $HOME/bin is on your PATH and that you are able to run docker
commands without sudo,
you can use the provided netbeans script to start a disposable
NetBeans Docker container with your project sources mounted at /home/developer/workspace
within the container:

# The image size is currently 1.131 GB, so go grab a coffee while Docker downloads it
docker pull fgrehm/netbeans:v8.0.1
L=$HOME/bin/netbeans && curl -sL https://github.com/fgrehm/docker-netbeans/raw/master/netbeans > $L && chmod +x $L
cd /path/to/java/project
netbeans

Once you close NetBeans the container will be removed and no traces of it will be
kept on your machine (apart from the Docker image of course).

Making plugins persist between sessions

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 -ti --rm \
           -e DISPLAY=$DISPLAY \
           -v /tmp/.X11-unix:/tmp/.X11-unix \
           -v `pwd`/.netbeans-docker:/home/developer/.netbeans \
           -v `pwd`:/workspace \
           fgrehm/netbeans:v8.0.1

Help! I started the container but I don't see the NetBeans screen

You might have an issue with the X11 socket permissions since the default user
used by the base image has an user and group ids set to 1000, in that case
you can run either create your own base image with the appropriate ids or run
xhost + on your machine and try again.

概览

名称与所有者fgrehm/docker-netbeans
主编程语言Shell
编程语言Shell (语言数: 1)
平台
许可证MIT License
发布数0
创建于2014-09-10 14:49:55
推送于2015-11-28 17:21:56
最后一次提交2014-09-11 00:26:32
星数150
关注者数13
派生数51
提交数5
已启用问题?
问题数2
打开的问题数2
拉请求数0
打开的拉请求数1
关闭的拉请求数0
已启用Wiki?
已存档?
是复刻?
已锁定?
是镜像?
是私有?
去到顶部