chore: perform GNU/Linux builds on Debian Jessie docker containers (#1319)

We recently hit an issue where Etcher builds produced on Ubuntu relied
on a too new glibc version, making them incompatible with GNU/Linux
distributions such as Debian Jessie.

As a solution, we will start producing builds on Debian Jessie, which
ensures that the builds will be compatible with the majority of
GNU/Linux versions out there.

Signed-off-by: Juan Cruz Viotti <jviotti@openmailbox.org>
This commit is contained in:
Juan Cruz Viotti 2017-04-20 12:23:13 -04:00 committed by GitHub
parent 880ca257a6
commit b93fd86092
4 changed files with 5 additions and 4 deletions

View File

@ -1,4 +1,4 @@
FROM toopher/ubuntu-i386:14.04
FROM 32bit/debian:jessie
# Install dependencies
RUN apt-get update && apt-get install -y \

View File

@ -1,4 +1,4 @@
FROM ubuntu:14.04
FROM debian:jessie
# Install dependencies
RUN apt-get update && apt-get install -y \

View File

@ -31,11 +31,11 @@ const template = fs.readFileSync(path.join(currentDirectory, 'Dockerfile.templat
_.each([
{
architecture: 'i686',
image: 'toopher/ubuntu-i386:14.04'
image: '32bit/debian:jessie'
},
{
architecture: 'x86_64',
image: 'ubuntu:14.04'
image: 'debian:jessie'
}
], (options) => {
const result = _.template(template)(options);

View File

@ -89,6 +89,7 @@ done
# The `-t` and TERM setup is needed to display coloured output.
docker run -t \
--env "TERM=xterm-256color" \
--env "TARGET_ARCH=$ARGV_ARCHITECTURE" \
${DOCKER_ENVVARS[@]+"${DOCKER_ENVVARS[@]}"} \
--cap-add SYS_ADMIN \
--device /dev/fuse:/dev/fuse:mrw \