Sign inSign up

jamesmstone/webstorm

By jamesmstone

Updated about 9 years ago

webstorm

Image
0

232

jamesmstone/webstorm repository overview

WebStorm + OpenJDK 8

Example usage:
webstorm(){
	x11host
	docker run -d \
		-e DISPLAY=$X11HOST:0.0 \
		-e "TZ=America/Chicago" \
		-v $HOME/Workspace/.intellij:/root/.IdeaIC15 \
		--volumes-from github \
		--volumes-from m2 \
		--name webstorm \
		psharkey/webstorm
}
Parameter explanation:
  • Set the DISPLAY variable using the value (from the helper function below)
  • Set the timezone (to your local value)
  • Map a volume to persist the IntelliJ IDEA preferences
  • Map volumes from github and m2 data containers created for toolbox
X11 helper function:
# Define a variable to use for the X11 host IP
x11host(){
	ACTIVE_MACHINE=$(docker-machine active)
	X11HOST="$(docker-machine inspect $ACTIVE_MACHINE \
		| grep HostOnlyCIDR \
		| awk '{print $2}' \
		| sed 's/"//g' \
		| cut -f1 -d"/")"
}
X11 Alternative

Refer to psharkey/novnc for an alternative X11 configuration.

Tag summary

Content type

Image

Digest

Size

415.6 MB

Last updated

about 9 years ago

docker pull jamesmstone/webstorm