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
|
2018-05-31 15:58:55 +02:00
|
|
|
FROM debian:stretch-slim
|
|
|
|
|
2017-03-09 19:14:37 +01:00
|
|
|
LABEL maintainer "Jessie Frazelle <jess@linux.com>"
|
2014-10-19 06:40:41 +02:00
|
|
|
|
2018-05-31 15:58:55 +02:00
|
|
|
# Tell debconf to run in non-interactive mode
|
|
|
|
ENV DEBIAN_FRONTEND noninteractive
|
|
|
|
|
|
|
|
RUN apt-get update && apt-get install -y \
|
|
|
|
apt-transport-https \
|
|
|
|
ca-certificates \
|
|
|
|
curl \
|
|
|
|
gnupg \
|
|
|
|
--no-install-recommends
|
|
|
|
|
|
|
|
# Add the atom debian repo
|
|
|
|
RUN curl -sSL https://packagecloud.io/AtomEditor/atom/gpgkey | apt-key add -
|
|
|
|
RUN sh -c 'echo "deb [arch=amd64] https://packagecloud.io/AtomEditor/atom/any/ any main" > /etc/apt/sources.list.d/atom.list'
|
|
|
|
|
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 \
|
2018-05-31 15:58:55 +02:00
|
|
|
atom \
|
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 \
|
2017-09-22 14:50:39 +02:00
|
|
|
libx11-xcb-dev \
|
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
|
|
|
|
|
|
|
# Autorun atom
|
2015-10-07 02:57:52 +02:00
|
|
|
ENTRYPOINT [ "atom", "--foreground" ]
|