mirror of
https://github.com/balena-io/etcher.git
synced 2025-07-23 03:06:38 +00:00
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:
parent
880ca257a6
commit
b93fd86092
@ -1,4 +1,4 @@
|
|||||||
FROM toopher/ubuntu-i386:14.04
|
FROM 32bit/debian:jessie
|
||||||
|
|
||||||
# Install dependencies
|
# Install dependencies
|
||||||
RUN apt-get update && apt-get install -y \
|
RUN apt-get update && apt-get install -y \
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
FROM ubuntu:14.04
|
FROM debian:jessie
|
||||||
|
|
||||||
# Install dependencies
|
# Install dependencies
|
||||||
RUN apt-get update && apt-get install -y \
|
RUN apt-get update && apt-get install -y \
|
||||||
|
@ -31,11 +31,11 @@ const template = fs.readFileSync(path.join(currentDirectory, 'Dockerfile.templat
|
|||||||
_.each([
|
_.each([
|
||||||
{
|
{
|
||||||
architecture: 'i686',
|
architecture: 'i686',
|
||||||
image: 'toopher/ubuntu-i386:14.04'
|
image: '32bit/debian:jessie'
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
architecture: 'x86_64',
|
architecture: 'x86_64',
|
||||||
image: 'ubuntu:14.04'
|
image: 'debian:jessie'
|
||||||
}
|
}
|
||||||
], (options) => {
|
], (options) => {
|
||||||
const result = _.template(template)(options);
|
const result = _.template(template)(options);
|
||||||
|
@ -89,6 +89,7 @@ done
|
|||||||
# The `-t` and TERM setup is needed to display coloured output.
|
# The `-t` and TERM setup is needed to display coloured output.
|
||||||
docker run -t \
|
docker run -t \
|
||||||
--env "TERM=xterm-256color" \
|
--env "TERM=xterm-256color" \
|
||||||
|
--env "TARGET_ARCH=$ARGV_ARCHITECTURE" \
|
||||||
${DOCKER_ENVVARS[@]+"${DOCKER_ENVVARS[@]}"} \
|
${DOCKER_ENVVARS[@]+"${DOCKER_ENVVARS[@]}"} \
|
||||||
--cap-add SYS_ADMIN \
|
--cap-add SYS_ADMIN \
|
||||||
--device /dev/fuse:/dev/fuse:mrw \
|
--device /dev/fuse:/dev/fuse:mrw \
|
||||||
|
Loading…
x
Reference in New Issue
Block a user