2015-06-05 19:24:11 +02:00
|
|
|
# VERSION: 0.1
|
|
|
|
# DESCRIPTION: Create the atom editor in a container
|
|
|
|
# AUTHOR: Jessica Frazelle <jess@docker.com>
|
2014-10-19 06:40:41 +02:00
|
|
|
# COMMENTS:
|
2015-06-05 19:24:11 +02:00
|
|
|
# This file describes how to build the atom editor
|
|
|
|
# in a container with all dependencies installed.
|
|
|
|
# Note: atom is not a node-webkit app,
|
|
|
|
# found this out a little too late into this example
|
|
|
|
# it uses atom-shell(https://github.com/atom/atom-shell)
|
|
|
|
# Tested on Debian Jessie.
|
2014-10-19 06:40:41 +02:00
|
|
|
# USAGE:
|
2015-06-05 19:24:11 +02:00
|
|
|
# # Download atom Dockerfile
|
|
|
|
# wget http://raw.githubusercontent.com/jfrazelle/dockerfiles/master/atom/Dockerfile
|
2014-10-19 06:40:41 +02:00
|
|
|
#
|
2015-06-05 19:24:11 +02:00
|
|
|
# # Build atom image
|
|
|
|
# docker build -t atom .
|
2014-10-19 06:40:41 +02:00
|
|
|
#
|
2015-06-05 19:24:11 +02:00
|
|
|
# docker run -v /tmp/.X11-unix:/tmp/.X11-unix \
|
|
|
|
# -e DISPLAY=unix$DISPLAY atom
|
2014-10-19 06:40:41 +02:00
|
|
|
#
|
|
|
|
|
|
|
|
# Base docker image
|
|
|
|
FROM debian:jessie
|
|
|
|
MAINTAINER Jessica Frazelle <jess@docker.com>
|
|
|
|
|
|
|
|
# Install dependencies
|
|
|
|
RUN apt-get update && apt-get install -y \
|
2015-06-05 19:24:11 +02:00
|
|
|
build-essential \
|
|
|
|
ca-certificates \
|
|
|
|
curl \
|
|
|
|
git \
|
|
|
|
libasound2 \
|
|
|
|
libgconf-2-4 \
|
|
|
|
libgnome-keyring-dev \
|
|
|
|
libgtk2.0-0 \
|
|
|
|
libnss3 \
|
|
|
|
libxtst6 \
|
|
|
|
--no-install-recommends
|
2014-10-19 06:40:41 +02:00
|
|
|
|
|
|
|
# install node
|
|
|
|
RUN curl -sL https://deb.nodesource.com/setup | bash -
|
|
|
|
RUN apt-get install -y nodejs
|
|
|
|
|
|
|
|
# clone atom
|
|
|
|
RUN git clone https://github.com/atom/atom /src
|
|
|
|
WORKDIR /src
|
|
|
|
RUN git fetch && git checkout $(git describe --tags `git rev-list --tags --max-count=1`)
|
|
|
|
RUN script/build && script/grunt install
|
|
|
|
|
|
|
|
# Autorun atom
|
|
|
|
CMD /usr/local/bin/atom --foreground --log-file /var/log/atom.log && tail -f /var/log/atom.log
|