@ -25,25 +25,16 @@ RUN apt-get update && apt-get install -y \
dosfstools \
dosfstools \
# to compile U-Boot
# to compile U-Boot
bc \
bc \
# to download gcc toolchain and mender-artifact
# to download mender-artifact
wget \
wget \
# to extract gcc toolchain
xz-utils \
# to download mender-convert and U-Boot sources
# to download mender-convert and U-Boot sources
git
git \
# To compile Mender client, U-boot or GRUB
gcc-arm-linux-gnueabihf
# Disable sanity checks made by mtools. These checks reject copy/paste operations on converted disk images.
# Disable sanity checks made by mtools. These checks reject copy/paste operations on converted disk images.
RUN echo "mtools_skip_check=1" >> $HOME /.mtoolsrc
RUN echo "mtools_skip_check=1" >> $HOME /.mtoolsrc
# Needed while we use older U-Boot version for Raspberry Pi
# https://tracker.mender.io/browse/MEN-2198
# Assumes $(pwd) is /
RUN wget -nc -q http://releases.linaro.org/components/toolchain/binaries/6.3-2017.05/arm-linux-gnueabihf/gcc-linaro-6.3.1-2017.05-x86_64_arm-linux-gnueabihf.tar.xz \
&& tar -xJf gcc-linaro-6.3.1-2017.05-x86_64_arm-linux-gnueabihf.tar.xz \
&& rm gcc-linaro-6.3.1-2017.05-x86_64_arm-linux-gnueabihf.tar.xz \
&& echo export PATH = $PATH :/gcc-linaro-6.3.1-2017.05-x86_64_arm-linux-gnueabihf/bin >> /root/.bashrc
RUN wget -q -O /usr/bin/mender-artifact https://d1b0l86ne08fsf.cloudfront.net/mender-artifact/$MENDER_ARTIFACT_VERSION /mender-artifact \
RUN wget -q -O /usr/bin/mender-artifact https://d1b0l86ne08fsf.cloudfront.net/mender-artifact/$MENDER_ARTIFACT_VERSION /mender-artifact \
&& chmod +x /usr/bin/mender-artifact
&& chmod +x /usr/bin/mender-artifact
@ -58,7 +49,7 @@ ENV MENDER_CLIENT_VERSION=$mender_client_version
# NOTE: we are assuming generic ARM board here, needs to be extended later
# NOTE: we are assuming generic ARM board here, needs to be extended later
ENV PATH " $PATH :/usr/local/go/bin:/gcc-linaro-6.3.1-2017.05-x86_64_arm-linux-gnueabihf/bin "
ENV PATH " $PATH :/usr/local/go/bin "
ENV GOPATH "/root/go"
ENV GOPATH "/root/go"
RUN go get github.com/mendersoftware/mender
RUN go get github.com/mendersoftware/mender