Merge pull request #870 from balena-io/node8

Upgrade to node 8 for supported architectures
This commit is contained in:
CameronDiver 2019-01-25 18:56:40 +00:00 committed by GitHub
commit e9c4b3bb9c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -2,27 +2,37 @@ ARG ARCH=amd64
# The node version here should match the version of the runtime image which is # The node version here should match the version of the runtime image which is
# specified in the base-image subdirectory in the project # specified in the base-image subdirectory in the project
FROM resin/rpi-node:6.13.1-slim as rpi-node-base FROM balenalib/raspberry-pi-node:8-run as rpi-node-base
FROM resin/armv7hf-node:6.13.1-slim as armv7hf-node-base FROM balenalib/armv7hf-node:8-run as armv7hf-node-base
FROM resin/aarch64-node:6.13.1-slim as aarch64-node-base FROM balenalib/aarch64-node:8-run as aarch64-node-base
RUN [ "cross-build-start" ] RUN [ "cross-build-start" ]
RUN sed -i '/security.debian.org jessie/d' /etc/apt/sources.list RUN sed -i '/security.debian.org jessie/d' /etc/apt/sources.list
RUN [ "cross-build-end" ] RUN [ "cross-build-end" ]
FROM resin/amd64-node:6.13.1-slim as amd64-node-base FROM balenalib/amd64-node:8-run as amd64-node-base
RUN echo '#!/bin/sh\nexit 0' > /usr/bin/cross-build-start && chmod +x /usr/bin/cross-build-start \ RUN echo '#!/bin/sh\nexit 0' > /usr/bin/cross-build-start && chmod +x /usr/bin/cross-build-start \
&& echo '#!/bin/sh\nexit 0' > /usr/bin/cross-build-end && chmod +x /usr/bin/cross-build-end && echo '#!/bin/sh\nexit 0' > /usr/bin/cross-build-end && chmod +x /usr/bin/cross-build-end
FROM resin/i386-node:6.13.1-slim as i386-node-base FROM balenalib/i386-node:8-run as i386-node-base
RUN echo '#!/bin/sh\nexit 0' > /usr/bin/cross-build-start && chmod +x /usr/bin/cross-build-start \ RUN echo '#!/bin/sh\nexit 0' > /usr/bin/cross-build-start && chmod +x /usr/bin/cross-build-start \
&& echo '#!/bin/sh\nexit 0' > /usr/bin/cross-build-end && chmod +x /usr/bin/cross-build-end && echo '#!/bin/sh\nexit 0' > /usr/bin/cross-build-end && chmod +x /usr/bin/cross-build-end
FROM i386-node-base as i386-nlp-node-base FROM resin/i386-node:6.13.1-slim as i386-nlp-node-base
RUN echo '#!/bin/sh\nexit 0' > /usr/bin/cross-build-start && chmod +x /usr/bin/cross-build-start \
&& echo '#!/bin/sh\nexit 0' > /usr/bin/cross-build-end && chmod +x /usr/bin/cross-build-end
# Setup webpack building base images
# We always do the webpack build on amd64, cause it's way faster
FROM amd64-node-base as rpi-node-build
FROM amd64-node-base as amd64-node-build
FROM amd64-node-base as armv7hf-node-build
FROM amd64-node-base as aarch64-node-build
FROM amd64-node-base as i386-node-build
FROM balenalib/amd64-node:6-build as i386-nlp-node-build
############################################################################## ##############################################################################
# We always do the webpack build on amd64, cause it's way faster FROM $ARCH-node-build as node-build
FROM amd64-node-base as node-build
WORKDIR /usr/src/app WORKDIR /usr/src/app
@ -101,7 +111,7 @@ RUN [ "cross-build-end" ]
############################################################################## ##############################################################################
# Minimal runtime image # Minimal runtime image
FROM resin/$ARCH-supervisor-base:v1.3.0 FROM balena/$ARCH-supervisor-base:v1.4.4
ARG ARCH ARG ARCH
ARG VERSION=master ARG VERSION=master
ARG DEFAULT_MIXPANEL_TOKEN=bananasbananas ARG DEFAULT_MIXPANEL_TOKEN=bananasbananas