EPICS Controls Argonne National Laboratory

Experimental Physics and
Industrial Control System

1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  2007  2008  2009  2010  2011  2012  2013  2014  2015  2016  2017  2018  2019  <20202021  2022  2023  2024  Index 1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  2007  2008  2009  2010  2011  2012  2013  2014  2015  2016  2017  2018  2019  <20202021  2022  2023  2024 
<== Date ==> <== Thread ==>

Subject: Re: [EXTERNAL] Re: How to run IOC in docker containers properly
From: Ryan Slominski via Tech-talk <tech-talk at aps.anl.gov>
To: xiao zhang <zxinmyth at gmail.com>
Cc: "tech-talk at aps.anl.gov" <tech-talk at aps.anl.gov>
Date: Wed, 24 Jun 2020 14:00:10 +0000
I was able to drop the image size down to about 20MB by removing the source code after compiling (whoops).

docker images slominskir/softioc:1.0.1
REPOSITORY           TAG                 IMAGE ID            CREATED             SIZE
slominskir/softioc   1.0.1               d8526a162221        16 minutes ago      20.2MB

Looks like busybox with musl would save a few MB over glibc busybox:

docker images busybox:musl
REPOSITORY          TAG                 IMAGE ID            CREATED             SIZE
busybox             musl                837140ee7fdf        3 weeks ago         1.47MB

docker images busybox:glibc
REPOSITORY          TAG                 IMAGE ID            CREATED             SIZE
busybox             glibc               7a2331af2292        3 weeks ago         5.2MB

Too bad EPICS appears to require glibc.   Looks like backtrace is one of the missing pieces only found in glibc.


From: xiao zhang <zxinmyth at gmail.com>
Sent: Wednesday, June 24, 2020 1:12 AM
To: Ryan Slominski <ryans at jlab.org>
Cc: tech-talk at aps.anl.gov <tech-talk at aps.anl.gov>
Subject: [EXTERNAL] Re: How to run IOC in docker containers properly
 
I wonder if any attempt to build EPICS Base against musl-libc instead of glibc has come to a good result. I have tried but no success.

If it is possible, it may lead to a even lighter container.

On Wed, 24 Jun 2020 at 06:10, Ryan Slominski via Tech-talk <tech-talk at aps.anl.gov> wrote:
How about how to build the smallest possible Docker image for a generic softioc?

Here is my first attempt (50MB):


Built epics-base with centos 7 then copy into a busybox image.  Seems like a hack, but works.



Replies:
Re: [EXTERNAL] Re: How to run IOC in docker containers properly Michael Davidsaver via Tech-talk
References:
Re: How to run IOC in docker containers properly Ryan Slominski via Tech-talk
Re: How to run IOC in docker containers properly xiao zhang via Tech-talk

Navigate by Date:
Prev: Re: Does IOC name have any restrictions ? Ralph Lange via Tech-talk
Next: Re: How to run IOC in docker containers properly Ben Franksen via Tech-talk
Index: 1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  2007  2008  2009  2010  2011  2012  2013  2014  2015  2016  2017  2018  2019  <20202021  2022  2023  2024 
Navigate by Thread:
Prev: Re: How to run IOC in docker containers properly xiao zhang via Tech-talk
Next: Re: [EXTERNAL] Re: How to run IOC in docker containers properly Michael Davidsaver via Tech-talk
Index: 1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  2007  2008  2009  2010  2011  2012  2013  2014  2015  2016  2017  2018  2019  <20202021  2022  2023  2024 
ANJ, 24 Jun 2020 Valid HTML 4.01! · Home · News · About · Base · Modules · Extensions · Distributions · Download ·
· Search · EPICS V4 · IRMIS · Talk · Bugs · Documents · Links · Licensing ·