This repository has been archived by the owner. It is now read-only.
Dockerfile of leipert/atom-apm
Switch branches/tags
Nothing to show
Clone or download
Pull request Compare This branch is 21 commits ahead, 2 commits behind kn1kn1:master.
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
templates
.gitignore
Dockerfile
README.md
dpkg-dep.sh
env.sh
getNewestRelease.js
increaseVersion.sh

README.md

Atom apm

Overview

Installs the Atom editor in the latest version. Gives you the possibility to run commands like apm test or apm install.

Comes with node, grunt & gulp preinstalled

Usage

With docker:

FROM leipert/atom-apm:latest
# Add Package To `/root` Dir
ENV HOME /root
ADD . $HOME
WORKDIR /root

# Install Package Dependencies
RUN apm install

# Start the Xvfb server with a display 99 and a virtual screen(monitor) 0.
RUN \
  start-stop-daemon --start --pidfile /tmp/xvfb_99.pid --make-pidfile \
    --background --exec /usr/bin/Xvfb -- :99 -screen 0 1024x768x24 -ac \
    +extension GLX +extension RANDR +render -noreset && \
  sleep 3 && \
  export DISPLAY=:99 && \
  apm test

With wercker ewok:

box: leipert/atom-apm
# Build definition
build:
  # The steps that will be executed on build
  steps:
    - npm-install
    - script:
        name: Run gulp
        code: gulp
    - script:
        name: Test package
        code: >
          start-stop-daemon --start --pidfile /tmp/xvfb_99.pid --make-pidfile
          --background --exec /usr/bin/Xvfb -- :99 -screen 0 1024x768x24 -ac
          +extension GLX +extension RANDR +render -noreset &&
          sleep 3 &&
          export DISPLAY=:99 &&
          apm test