2015-06-05 19:24:11 +02:00
|
|
|
# VERSION: 0.1
|
2015-10-07 02:57:52 +02:00
|
|
|
# DESCRIPTION: Create the atom editor in a container
|
2015-06-05 19:24:11 +02:00
|
|
|
# AUTHOR: Jessica Frazelle <jess@docker.com>
|
2014-10-19 06:40:41 +02:00
|
|
|
# COMMENTS:
|
2015-10-07 02:57:52 +02:00
|
|
|
# This file describes how to build the atom editor
|
2015-06-05 19:24:11 +02:00
|
|
|
# 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
|
2015-08-01 18:58:09 +02:00
|
|
|
# it uses electron(https://github.com/atom/electron)
|
2015-06-05 19:24:11 +02:00
|
|
|
# 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 \
|
2015-06-05 20:55:25 +02:00
|
|
|
# -e DISPLAY=unix$DISPLAY atom
|
2014-10-19 06:40:41 +02:00
|
|
|
#
|
|
|
|
|
|
|
|
# Base docker image
|
2016-02-04 21:11:11 +01:00
|
|
|
FROM debian:jessie
|
2014-10-19 06:40:41 +02:00
|
|
|
MAINTAINER Jessica Frazelle <jess@docker.com>
|
|
|
|
|
|
|
|
# Install dependencies
|
2015-10-07 02:57:52 +02:00
|
|
|
RUN apt-get update && apt-get install -y \
|
2016-02-04 21:11:11 +01:00
|
|
|
git \
|
2015-10-07 02:57:52 +02:00
|
|
|
gconf2 \
|
|
|
|
gconf-service \
|
|
|
|
gvfs-bin \
|
2015-11-04 00:43:28 +01:00
|
|
|
libasound2 \
|
|
|
|
libgconf-2-4 \
|
|
|
|
libgnome-keyring-dev \
|
|
|
|
libgtk2.0-0 \
|
2015-10-07 02:57:52 +02:00
|
|
|
libnotify4 \
|
2015-11-04 00:43:28 +01:00
|
|
|
libnss3 \
|
|
|
|
libxtst6 \
|
2016-02-04 21:11:11 +01:00
|
|
|
xdg-utils \
|
2015-10-07 02:57:52 +02:00
|
|
|
--no-install-recommends \
|
2015-11-04 00:43:28 +01:00
|
|
|
&& rm -rf /var/lib/apt/lists/*
|
2014-10-19 06:40:41 +02:00
|
|
|
|
2016-02-11 01:39:42 +01:00
|
|
|
ENV ATOM_VERSION 1.5.1
|
2015-06-14 03:53:22 +02:00
|
|
|
|
2016-02-04 21:11:11 +01:00
|
|
|
# download the source
|
|
|
|
RUN buildDeps=' \
|
|
|
|
ca-certificates \
|
|
|
|
curl \
|
|
|
|
' \
|
|
|
|
&& set -x \
|
|
|
|
&& apt-get update && apt-get install -y $buildDeps --no-install-recommends \
|
|
|
|
&& rm -rf /var/lib/apt/lists/* \
|
|
|
|
&& curl -sSL https://github.com/atom/atom/releases/download/v${ATOM_VERSION}/atom-amd64.deb -o /tmp/atom-amd64.deb \
|
2015-10-07 02:57:52 +02:00
|
|
|
&& dpkg -i /tmp/atom-amd64.deb \
|
2016-02-04 21:11:11 +01:00
|
|
|
&& rm -rf /tmp/*.deb \
|
|
|
|
&& apt-get purge -y --auto-remove $buildDeps
|
2014-10-19 06:40:41 +02:00
|
|
|
|
|
|
|
# Autorun atom
|
2015-10-07 02:57:52 +02:00
|
|
|
ENTRYPOINT [ "atom", "--foreground" ]
|