[PATCH 1/1] Dockerfile: download binaries for Nokia RX-51

Pali Rohár pali at kernel.org
Fri Jan 13 19:41:51 CET 2023


On Friday 13 January 2023 19:25:01 Heinrich Schuchardt wrote:
> Downloading files for a test may fail if the server is offline.
> It is preferable to provide the files in our Docker image.
> 
> Signed-off-by: Heinrich Schuchardt <heinrich.schuchardt at canonical.com>
> ---
>  tools/docker/Dockerfile | 9 +++++++++
>  1 file changed, 9 insertions(+)
> 
> diff --git a/tools/docker/Dockerfile b/tools/docker/Dockerfile
> index 202a8145af..ee44668ae0 100644
> --- a/tools/docker/Dockerfile
> +++ b/tools/docker/Dockerfile
> @@ -213,6 +213,15 @@ RUN git clone https://github.com/stefanberger/swtpm /tmp/swtpm && \
>  	make install && \
>  	rm -rf /tmp/swtpm
>  
> +# Files to run Nokia RX-51 (aka N900) tests
> +RUN mkdir -p /opt/nokia && \
> +	cd /opt/nokia && \
> +	wget https://raw.githubusercontent.com/pali/u-boot-maemo/master/debian/u-boot-gen-combined && \

If you are downloading it from github then use github.com URI, e.g.:
https://github.com/pali/u-boot-maemo/raw/master/debian/u-boot-gen-combined

And set executable bit for the downloaded script because HTTP/wget does
not transfer file attributes.

> +	wget http://repository.maemo.org/qemu-n900/qemu-n900.tar.gz && \
> +	wget http://repository.maemo.org/pool/maemo5.0/free/k/kernel/kernel_2.6.28-20103103+0m5_armel.deb && \
> +	wget http://repository.maemo.org/pool/maemo5.0/free/g/glibc/libc6_2.5.1-1eglibc27+0m5_armel.deb && \
> +	wget http://repository.maemo.org/pool/maemo5.0/free/b/busybox/busybox_1.10.2.legal-1osso30+0m5_armel.deb
> +
>  # Create our user/group
>  RUN echo uboot ALL=NOPASSWD: ALL > /etc/sudoers.d/uboot
>  RUN useradd -m -U uboot
> -- 
> 2.37.2
> 


More information about the U-Boot mailing list