2015-10-07 02:57:52 +02:00
|
|
|
# DESCRIPTION: Create the atom editor in a container
|
2016-09-20 00:25:05 +02:00
|
|
|
# AUTHOR: Jessie Frazelle <jess@linux.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
|
2016-10-25 22:37:56 +02:00
|
|
|
# wget https://raw.githubusercontent.com/jessfraz/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-09-19 20:12:01 +02:00
|
|
|
FROM debian:stretch
|
2017-03-09 19:14:37 +01:00
|
|
|
LABEL maintainer "Jessie Frazelle <jess@linux.com>"
|
2014-10-19 06:40:41 +02:00
|
|
|
|
|
|
|
# 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 \
|
2016-09-20 16:38:46 +02:00
|
|
|
libcap2 \
|
2015-11-04 00:43:28 +01:00
|
|
|
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 \
|
2016-11-24 13:36:45 +01:00
|
|
|
libxkbfile1 \
|
|
|
|
libxss1 \
|
2015-11-04 00:43:28 +01:00
|
|
|
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
|
|
|
|
2017-06-19 16:18:17 +02:00
|
|
|
ENV ATOM_VERSION 1.18.0
|
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" ]
|