Using docker as wayback machine

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view

Using docker as wayback machine

Sergei Gavrikov-4

If you move(d) on x86_64 and want to continue work with your old eCos
projects you would try to use Docker for that. Perhaps someone finds
this way useful.

A short story by the subject.

Yesterday I needed to build 6-years old RedBoot image on 64-bit Linux
host and I successfully built it using <32-bit> docker container.  There
is an example of `Dockerfile' for building one old eCos project for ARM
target below.  As you can see for <i386/ubuntu> image you need to
install only GNU Make and Tcl interpreter (it uses to run heapgen.tcl
script) CURL is an option as you can use Docker [COPY] command to build
own image(s).


   FROM i386/ubuntu

   RUN apt-get update && apt-get install -y --no-install-recommends \
   curl \
   make \
   tcl \
   && rm -rf /var/lib/apt/lists/*

   ### If you want to build "tip", change the next line accordingly!

   # To reduce download times, please choose the site nearest to you

   RUN install -d /opt/ecos/tools/bin && curl -sL | tar -xjf - -C /opt/ecos/tools/bin ecosconfig

   RUN curl -sL | tar -xjf - -C /opt/ecos

   RUN curl -sL${ECOS_INSTALL_VERSION}.tar.bz2 | tar -xjf - -C /opt/ecos

   ENV ECOS_REPOSITORY /opt/ecos/ecos-${ECOS_INSTALL_VERSION}/packages

   ENV PATH /opt/ecos/gnutools/arm-eabi/bin:/opt/ecos/tools/bin:${PATH}

smime.p7s (2K) Download Attachment