diff --git a/docker/ubuntu32/Dockerfile b/docker/ubuntu32/Dockerfile new file mode 100644 index 000000000..3788a8fd8 --- /dev/null +++ b/docker/ubuntu32/Dockerfile @@ -0,0 +1,34 @@ +# VERSION: 0.1 +# DESCRIPTION: Image to build N1 and create a .deb and .rpm file for 32-bit systems, derived from Atom's Dockerfile + +# Base docker image +FROM 32bit/ubuntu:14.04 + +# Force noninteractive mode +ENV DEBIAN_FRONTEND noninteractive + +# Setup NodeSource repository for Node LTS v4.x +RUN apt-get update && apt-get install -y curl +RUN curl -sL https://deb.nodesource.com/setup_4.x | bash - + +# Correct errors with libpam-systemd (indirect dependency of libnotify4) +RUN /bin/ln -sf /bin/true /sbin/initctl +RUN /usr/bin/touch /etc/init.d/systemd-logind + +# Install dependencies (NodeSource setup runs `apt-get update` for us) +RUN apt-get -y install \ + build-essential \ + git \ + fakeroot \ + libgconf2-4 \ + libgnome-keyring-dev \ + libgtk2.0-0 \ + libnotify4 \ + rpm \ + nodejs \ + xvfb + +#RUN npm install -g npm@3.3.10 --loglevel error + +ADD . /n1 +WORKDIR /n1 diff --git a/script/cibuild-n1-ubuntu32 b/script/cibuild-n1-ubuntu32 new file mode 100755 index 000000000..dafa755ea --- /dev/null +++ b/script/cibuild-n1-ubuntu32 @@ -0,0 +1,13 @@ +#!/bin/bash + +set -e + +# --rm \ +docker build -t n1-32 -f ./docker/ubuntu32/Dockerfile . +docker run \ + --env="CI=true" \ + --volume="$HOME"/.npm:/root/.npm \ + --volume="$HOME"/.nylas/.apm:/root/.nylas/.apm \ + --volume="$HOME"/.nylas/electron:/root/.nylas/electron \ + n1-32 /usr/bin/linux32 /n1/script/cibuild +docker rmi n1-32