public inbox for ecos-discuss@sourceware.org
 help / color / mirror / Atom feed
From: Sergei Gavrikov <sergei.gavrikov@gmail.com>
To: eCos Discuss <ecos-discuss@ecos.sourceware.org>
Subject: [ECOS] Using docker as wayback machine
Date: Sat, 02 Apr 2016 20:38:00 -0000	[thread overview]
Message-ID: <alpine.DEB.2.10.1604022205080.23922@sg-probook> (raw)

[-- Attachment #1: Type: TEXT/PLAIN, Size: 1779 bytes --]

Hi

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).

Sergei

   ----------------------------------------------------------------->8
   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!
   ENV ECOS_INSTALL_VERSION ae816c83f082

   # To reduce download times, please choose the site nearest to you
   # http://ecos.sourceware.org/mirror.html

   RUN install -d /opt/ecos/tools/bin && curl -sL http://mirrors.kernel.org/sources.redhat.com/ecos/anoncvs/ecos-tools-bin-110209.i386linux.tar.bz2 | tar -xjf - -C /opt/ecos/tools/bin ecosconfig

   RUN curl -sL http://mirrors.kernel.org/sources.redhat.com/ecos/gnutools/i386linux/ecos-gnutools-arm-eabi-20120623.i386linux.tar.bz2 | tar -xjf - -C /opt/ecos

   RUN curl -sL http://hg-pub.ecoscentric.com/ecos/archive/${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}
   ----------------------------------------------------------------->8

[-- Attachment #2: S/MIME Cryptographic Signature --]
[-- Type: APPLICATION/pkcs7-signature, Size: 1695 bytes --]

                 reply	other threads:[~2016-04-02 20:38 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=alpine.DEB.2.10.1604022205080.23922@sg-probook \
    --to=sergei.gavrikov@gmail.com \
    --cc=ecos-discuss@ecos.sourceware.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).