Skip to content

Instantly share code, notes, and snippets.

@greenmind-sec
Created November 5, 2018 04:07
Show Gist options
  • Save greenmind-sec/c69424bc218dffbc0ac42041b6a8ec85 to your computer and use it in GitHub Desktop.
Save greenmind-sec/c69424bc218dffbc0ac42041b6a8ec85 to your computer and use it in GitHub Desktop.
ATOM IDE DOCKER

docker-atom-editor

Overview

Install and run the Atom editor from within a Docker container.

Building the image

Clone this repository, change into the source directory and run:

docker build . -t atom

Running Atom

docker run -d -v /tmp/.X11-unix/:/tmp/.X11-unix/ \
              -v /dev/shm:/dev/shm \
              -v ${HOME}/.atom:/home/atom/.atom \
              -e DISPLAY \
              jamesnetherton/docker-atom-editor

Note that -v /dev/shm:/dev/shm may be optional and can be replaced by --shm-size="<number><unit>".

RECOMENDAÇOES

sudo docker run -d -v /tmp/.X11-unix/:/tmp/.X11-unix/ -v ${pwd}:/ -e DISPLAY greenmind/atom:0.1
FROM ubuntu:latest
ENV ATOM_VERSION v1.22.1
RUN apt-get update && \
apt-get install -y --no-install-recommends \
ca-certificates \
curl \
fakeroot \
gconf2 \
gconf-service \
git \
gvfs-bin \
libasound2 \
libcap2 \
libgconf-2-4 \
libgtk2.0-0 \
libnotify4 \
libnss3 \
libxkbfile1 \
libxss1 \
libxtst6 \
libgl1-mesa-glx \
libgl1-mesa-dri \
python \
xdg-utils && \
apt-get clean && \
rm -rf /var/lib/apt/lists/* && \
curl -L https://github.com/atom/atom/releases/download/${ATOM_VERSION}/atom-amd64.deb > /tmp/atom.deb && \
dpkg -i /tmp/atom.deb && \
rm -f /tmp/atom.deb && \
useradd -d /home/atom -m atom
USER atom
CMD ["/usr/bin/atom","-f"]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment