2015-06-05 20:55:25 +02:00
|
|
|
# VERSION: 0.1
|
|
|
|
# DESCRIPTION: Create sublime-text 3 container with its dependencies (https://www.sublimetext.com/3)
|
|
|
|
# AUTHOR: Christian Koep <christian.koep@fom-net.de>
|
2015-05-27 22:05:59 +02:00
|
|
|
# USAGE:
|
2015-06-05 19:24:11 +02:00
|
|
|
# # Build sublime-text 3 image
|
|
|
|
# docker build -t sublime-text:3 .
|
2015-05-27 22:05:59 +02:00
|
|
|
#
|
2015-06-05 19:24:11 +02:00
|
|
|
# # Run the container and mount the local settings and your code
|
|
|
|
# docker run -it \
|
2015-06-05 20:55:25 +02:00
|
|
|
# -v $HOME/.config/sublime-text-3/:/root/.config/sublime-text-3 \
|
|
|
|
# -v $HOME/development:/root/development \
|
|
|
|
# -v /tmp/.X11-unix:/tmp/.X11-unix \
|
|
|
|
# -e DISPLAY=$DISPLAY sublime-text:3
|
2015-05-27 22:05:59 +02:00
|
|
|
#
|
|
|
|
# POSSIBLE ISSUES:
|
2015-06-05 19:24:11 +02:00
|
|
|
# # 'Gtk: cannot open display: :0'
|
|
|
|
# Try to set 'DISPLAY=your_host_ip:0' or run 'xhost +' on your host.
|
|
|
|
# (see: http://stackoverflow.com/questions/28392949/running-chromium-inside-docker-gtk-cannot-open-display-0)
|
2015-05-27 22:05:59 +02:00
|
|
|
#
|
|
|
|
|
|
|
|
FROM debian:jessie
|
|
|
|
MAINTAINER Christian Koep <christian.koep@fom-net.de>
|
2015-06-05 20:55:25 +02:00
|
|
|
|
2015-05-27 22:05:59 +02:00
|
|
|
RUN apt-get update && apt-get -y install \
|
2015-06-06 04:57:44 +02:00
|
|
|
ca-certificates \
|
|
|
|
curl \
|
2015-06-05 19:24:11 +02:00
|
|
|
tar \
|
|
|
|
bzip2 \
|
|
|
|
libglib2.0-0 \
|
|
|
|
libx11-6 \
|
|
|
|
libcairo2 \
|
|
|
|
libpango-1.0-0 \
|
|
|
|
libpangocairo-1.0-0 \
|
2015-06-06 04:57:44 +02:00
|
|
|
libgtk2.0-0 \
|
2015-06-07 02:48:44 +02:00
|
|
|
--no-install-recommends \
|
|
|
|
&& rm -rf /var/lib/apt/lists/*
|
2015-06-05 20:55:25 +02:00
|
|
|
|
2016-05-14 17:20:34 +02:00
|
|
|
RUN curl -sSL "https://download.sublimetext.com/sublime_text_3_build_3114_x64.tar.bz2" -o /tmp/sublime.tar.bz2 \
|
2015-06-06 04:57:44 +02:00
|
|
|
&& mkdir -p /usr/src/sublime_text \
|
|
|
|
&& tar -xjf /tmp/sublime.tar.bz2 -C /usr/src/sublime_text --strip-components 1 \
|
|
|
|
&& rm /tmp/sublime.tar.bz2*
|
2015-06-05 20:55:25 +02:00
|
|
|
|
2015-06-06 04:57:44 +02:00
|
|
|
CMD ["/usr/src/sublime_text/sublime_text", "-w"]
|