fix(build): add ubuntu 32-bit docker build

This commit is contained in:
mbilker 2016-02-15 19:19:36 -05:00
parent 55687d3d9f
commit b953711b67
2 changed files with 47 additions and 0 deletions

View file

@ -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

13
script/cibuild-n1-ubuntu32 Executable file
View file

@ -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