mirror of
https://github.com/Foundry376/Mailspring.git
synced 2026-01-20 07:48:53 +08:00
fix(build): add ubuntu 32-bit docker build
This commit is contained in:
parent
55687d3d9f
commit
b953711b67
2 changed files with 47 additions and 0 deletions
34
docker/ubuntu32/Dockerfile
Normal file
34
docker/ubuntu32/Dockerfile
Normal 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
13
script/cibuild-n1-ubuntu32
Executable 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
|
||||
Loading…
Add table
Reference in a new issue