-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathfeed.xml
444 lines (312 loc) · 35 KB
/
feed.xml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
<channel>
<title></title>
<description>Singularity allows a non-privileged user to 'swap out' the operating system on the host for one they control. So if the host system is running RHEL6 but your application runs in Ubuntu, you can create an Ubuntu image, install your applications into that image, copy the image to another host, and run your application on that host in it's native Ubuntu environment! Singularity also allows you to leverage the resources of whatever host you are on. This includes HPC interconnects, resource managers, file systems, GPUs and/or accelerators, etc.</description>
<link>http://localhost:4005/</link>
<atom:link href="http://localhost:4005/feed.xml" rel="self" type="application/rss+xml"/>
<pubDate>Wed, 26 Jul 2017 15:28:25 -0400</pubDate>
<lastBuildDate>Wed, 26 Jul 2017 15:28:25 -0400</lastBuildDate>
<generator>Jekyll v3.4.3</generator>
<item>
<title>Penguin Computing Supports Singularity</title>
<description><p>Penguin Computing <a href="https://www.hpcwire.com/off-the-wire/penguin-computing-announces-support-singularity-containers-pod-hpc-cloud-scyld-clusterware-hpc-cluster-management-solution/" target="_blank">has announced</a> support for Singularity containers for it’s HPC Cloud (Penguin Computing On-Demand) and Scyld ClusterWare HPC management software! They have started <a href="https://github.com/PenguinComputing/pod" target="_blank">a public Github repository</a> of specification files for images, and we are excited to see reproducibility coming to the resource.</p>
<p>You can see their <a href="https://pod.penguincomputing.com/documentation/Singularity" target="_blank">documentation for Singularity containers</a> and to learn more about Penguin Computing,
visit <a href="https://www.penguincompting.com" target="_blank">Penguin Computing</a>.</p>
<p><img src="/assets/img/posts/news/penguin-computing.png" alt="/assets/img/posts/news/penguin-computing.png" /></p>
<p>Read about the details at the <a href="https://www.hpcwire.com/off-the-wire/penguin-computing-announces-support-singularity-containers-pod-hpc-cloud-scyld-clusterware-hpc-cluster-management-solution/" target="_blank">press release</a> on HPC Wire.</p>
</description>
<pubDate>Mon, 15 May 2017 00:00:00 -0400</pubDate>
<link>http://localhost:4005/2017-penguin-computing</link>
<guid isPermaLink="true">http://localhost:4005/2017-penguin-computing</guid>
</item>
<item>
<title>Singularity Manuscript</title>
<description><p>We are proud to announce that you can now <a href="http://journals.plos.org/plosone/article?id=10.1371/journal.pone.0177459" target="_blank">cite Singularity proper</a>! Our recent publication in PLOS One can be cited as follows:</p>
<div class="highlighter-rouge"><pre class="highlight"><code>Kurtzer GM, Sochat V, Bauer MW (2017)
Singularity: Scientific containers for mobility of compute.
PLoS ONE 12(5): e0177459. https://doi.org/10.1371/journal.pone.0177459
</code></pre>
</div>
<p>Thanks to all of our contributors and community for helping us clunky software folk properly put together this paper. Looking forward to more great things to come, woohoo!</p>
</description>
<pubDate>Thu, 11 May 2017 00:00:00 -0400</pubDate>
<link>http://localhost:4005/2017-singularity-manuscript</link>
<guid isPermaLink="true">http://localhost:4005/2017-singularity-manuscript</guid>
</item>
<item>
<title>SingularityWare LLC on HPC Wire</title>
<description><p>Greg and the new SingularityWare LLC. were recently <a href="https://www.hpcwire.com/2017/05/04/singularity-hpc-container-technology-moves-lab/" target="_blank">featured on HPC Wire</a> to announce changes to the organizational infrastructure (and primarily, how not much is changing at all!) and exciting underway for Singularity. Who is <a href="http://www.storagenewsletter.com/2017/05/rstor-io-new-storage-start-up-in-stealth-mode/" target="_blank">RStor</a>? What is to come for Singularity? Excited to learn more? <a href="https://www.hpcwire.com/2017/05/04/singularity-hpc-container-technology-moves-lab/" target="_blank">Check out the post</a>.</p>
<p><img src="assets/img/people/gmk.jpg" style="width:250px" /></p>
</description>
<pubDate>Thu, 04 May 2017 00:00:00 -0400</pubDate>
<link>http://localhost:4005/2017-singularity-llc-hpcwire</link>
<guid isPermaLink="true">http://localhost:4005/2017-singularity-llc-hpcwire</guid>
</item>
<item>
<title>Singularity Big Announcement</title>
<description><h3 id="notice-to-all-singularity-users-contributors-and-collaborators">Notice to all Singularity users, contributors, and collaborators</h3>
<p>This is an important announcement from Greg Kurtzer, founder and lead developer of Singularity.</p>
<p>Singularity continues to gain popularity and traction very quickly. This growth has been extremely demanding on my time and is outpacing my ability to sustain the broad amount of use cases for the rapidly expanding community with me working on it only part time. In order to meet this rapidly expanding growth, I have created a new organization, SingularityWare, LLC, which is dedicated to further developing Singularity, supporting the associated open source community and growing the project. To facilitate this, I have partnered with a company, RStor, Inc.</p>
<p>RStor is not only interested in the success of Singularity, as an open source, scientific enabling platform, but they are bringing their own very compelling and much needed cloud based storage/RDM platform to market. A partnership like this (containerized computing coupled with a cloud based storage platform) offers a very exciting and synergistic value to research computing.</p>
<p>In addition to continuing my leadership of Singularity (and the new LLC), I will be maintaining my association with Lawrence Berkeley National Laboratory, as a scientific advisor as well as continuing other efforts I am associated with (e.g. Warewulf and OpenHPC).</p>
<p>This means that I now have the resources and ability to both offer support for Singularity and hire key developers, and I would like to invite interested people to send me your resume! I am looking to hire both part time and full time staff engineers as well as University collaborations to fund interns, graduates and postdocs for Singularity development and relevant involvement.</p>
<p>Aside from additional resources, dedication, attention, and growth, the overall direction of the project will remain the same.</p>
<p>If you have any questions, comments or want to be part of this exciting new endeavor, please feel free to contact me directly.</p>
<p>Thank you!</p>
</description>
<pubDate>Fri, 28 Apr 2017 00:00:00 -0400</pubDate>
<link>http://localhost:4005/2017-singularity-llc</link>
<guid isPermaLink="true">http://localhost:4005/2017-singularity-llc</guid>
</item>
<item>
<title>Singularity 2.2.1 Security Release</title>
<description><p>For the full release announcement and downloads, please see <a target="_blank" href="https://github.com/singularityware/singularity/releases/tag/2.2.1">the release on Github</a>.</p>
<p>This release includes a fix for a Moderate Severity security issue, and other improvements to version 2.2.</p>
<h2 id="security-information">Security information:</h2>
<p>In versions of Singularity previous to 2.2.1, it was possible for a malicious user to create and manipulate specifically crafted raw devices within containers they own. Utilizing <code class="highlighter-rouge">MS_NODEV</code> as a container image mount option mitigates this potential vector of attack. As a result, this update should be implemented with high urgency. A big thanks to Mattias Wadenstein (@UMU in Sweden) for identifying and reporting this issue!</p>
<h3 id="other-improvements">Other improvements:</h3>
<ul>
<li>Fixed some leaky file descriptors</li>
<li>Cleaned up <code class="highlighter-rouge">*printf()</code> usage</li>
<li>Catch if user’s group is not properly defined</li>
</ul>
<p>Please report any additional bugs <a href="https://github.com/singularityware/singularity/issues/new" target="_blank">as issues</a>.</p>
<p>Thank you!</p>
</description>
<pubDate>Tue, 14 Feb 2017 00:00:00 -0500</pubDate>
<link>http://localhost:4005/release-2-2-1</link>
<guid isPermaLink="true">http://localhost:4005/release-2-2-1</guid>
</item>
<item>
<title>Getting Started with Singularity and Singularity Hub</title>
<description><p>So you want to put your scientific analysis in a nice package and run it on a cluster? You’ve probably heard of the container technology called Docker?</p>
<p><img src="/assets/img/tutorial/horsecarrot.png" /><br /></p>
<p>…too bad you can’t use it on your research cluster, because it introduces huge security issues. You’ve probably also heard of <a href="https://www.vagrantup.com/docs/virtualbox/" target="_blank">virtual machines</a>, but most clusters won’t let you run those either. What options does this leave us? Oh wait, duh, you are reading this website. You already know the answer to this question.</p>
<!-- this handles the automatic toc. use ## for subheads to auto-generate the on-page minitoc. if you use html tags, you must supply an ID for the heading element in order for it to appear in the minitoc. -->
<script>
$( document ).ready(function() {
// Handler for .ready() called.
$('#toc').toc({ minimumHeaders: 0, listType: 'ul', showSpeed: 0, headers: 'h2,h3,h4' });
/* this offset helps account for the space taken up by the floating toolbar. */
$('#toc').on('click', 'a', function() {
var target = $(this.getAttribute('href'))
, scroll_target = target.offset().top
$(window).scrollTop(scroll_target - 10);
return false
})
});
</script>
<div id="toc"></div>
<h2 id="getting-started">Getting Started</h2>
<h3 id="install-singularity">Install Singularity</h3>
<p>The easiest thing to do is to install Singularity on your local workstation:</p>
<div class="language-bash highlighter-rouge"><pre class="highlight"><code> sudo apt-get update
sudo apt-get -y install build-essential curl git sudo man vim autoconf libtool
git clone https://github.com/singularityware/singularity.git
<span class="nb">cd </span>singularity
./autogen.sh
./configure --prefix<span class="o">=</span>/usr/local
make
sudo make install
</code></pre>
</div>
<p>If you have the unfortunate situation of using a Mac, or just need a virtual machine, then you will want to follow the instructions <a href="http://singularity.lbl.gov/install-mac" target="_blank">here</a>. Basically, you need to install vagrant, virtual box, and then do this:</p>
<div class="language-bash highlighter-rouge"><pre class="highlight"><code>vagrant init ubuntu/trusty64
vagrant up
vagrant ssh -c /bin/sh <span class="sh">&lt;&lt;EOF
sudo apt-get update
sudo apt-get -y install build-essential curl git sudo man vim autoconf libtool
git clone https://github.com/singularityware/singularity.git
cd singularity
./autogen.sh
./configure --prefix=/usr/local
make
sudo make install
EOF
</span>vagrant ssh
</code></pre>
</div>
<p>Once you are in your Virtual Machine, or have Singularity up and running? Well, it’s time to go NUTS of course!</p>
<h3 id="a-little-about-singularity-hub">A little about Singularity Hub</h3>
<p><a href="https://singularity-hub.org" target="_blank">Singularity Hub</a> is an online registry for images. This means that you can connect a Github repo containing a build specification file to this website, and the image is going to build for you automatically, and be available programatically! We can talk more about how that happens later. If you want some quick details, you should check out the <a href="https://www.singularity-hub.org/faq" target="_blank">Usage Docs</a> on Singularity Hub.</p>
<h2 id="make-and-run-containers">Make and run containers</h2>
<h3 id="run-an-image">Run an image</h3>
<p>For this little preview, we are going to be first running an image, directly from Singularity Hub. This image is called <a href="https://singularity-hub.org/collections/24/" target="_blank">vsoch/singularity-images</a> and it’s associated with <a href="https://www.github.com/vsoch/singularity-images" target="_blank">the equivalent Github repository.</a></p>
<div class="language-bash highlighter-rouge"><pre class="highlight"><code>singularity run shub://vsoch/singularity-images
</code></pre>
</div>
<p><button style="color:white;margin-top:5px" class="btn btn-primary btn-lg asciinema-button" id="Pulling-and-running-a-Singularity-Hub-image">Show Video Tutorial</button></p>
<div class="hidden" id="asciinema-Pulling-and-running-a-Singularity-Hub-image">
<asciinema-player src="assets/asciicast/shub-pull.json" poster="data:text/plain,Pulling and running a Singularity Hub image" title="Pulling and running a Singularity Hub image" author="[email protected]" cols="100" rows="41" speed="2.0" theme="asciinema">
</asciinema-player>
</div>
<p>In the above, we use the Singularity Hub “unique resource identifier,” or <code class="highlighter-rouge">uri</code>, <code class="highlighter-rouge">shub://</code> which tells the software to run an image from Singularity Hub.</p>
<h3 id="create-an-image">Create an image</h3>
<p>Running is great, but what if we want to mess around on the command line, using an image we’ve created ourselves? We can do that by creating an image:</p>
<div class="language-bash highlighter-rouge"><pre class="highlight"><code>sudo singularity create analysis.img
sudo singularity import analysis.img docker://ubuntu:latest
singularity shell analysis.img
</code></pre>
</div>
<p><button style="color:white;margin-top:5px" class="btn btn-primary btn-lg asciinema-button" id="Create-and-shell-into-a-Singularity-image">Show Video Tutorial</button></p>
<div class="hidden" id="asciinema-Create-and-shell-into-a-Singularity-image">
<asciinema-player src="assets/asciicast/singularity-interact.json" poster="data:text/plain,Create and shell into a Singularity image" title="Create and shell into a Singularity image" author="[email protected]" cols="100" rows="41" speed="2.0" theme="asciinema">
</asciinema-player>
</div>
<p>In the above, we use the docker “unique resource identifier,” or <code class="highlighter-rouge">uri</code>, <code class="highlighter-rouge">docker://</code> which tells the software to import a docker image.</p>
<p>If we wanted to shell into the image and make it writable, meaning that we can write files and save changes, we would do this:</p>
<div class="language-bash highlighter-rouge"><pre class="highlight"><code>sudo singularity shell --writable analysis.img
</code></pre>
</div>
<p>Note that we need sudo, and also note that you wouldn’t be able to do this on a research cluster, because you don’t have sudo.</p>
<h3 id="create-a-reproducible-image">Create a reproducible image</h3>
<p>The problem with create an image, and then maybe writing stuff to it with <code class="highlighter-rouge">--writable</code> is that your work isn’t properly saved anywhere. You COULD ship and share the entire image, but that still doesn’t help to say what was done to it, and this is problematic. To help with this, we encourage you to create a build specification file, a file called <code class="highlighter-rouge">Singularity</code>. There are a few important sections you should know about. First, let’s look at a very simple file:</p>
<div class="language-bash highlighter-rouge"><pre class="highlight"><code>Bootstrap: docker
From: ubuntu:latest
%runscript
<span class="nb">echo</span> <span class="s2">"I can put here whatever I want to happen when the user runs my container!"</span>
<span class="nb">exec echo</span> <span class="s2">"Hello Monsoir Meatball"</span> <span class="s2">"</span><span class="nv">$@</span><span class="s2">"</span>
%post
<span class="nb">echo</span> <span class="s2">"Here we are installing software and other dependencies for the container!"</span>
apt-get update
apt-get install -y git
</code></pre>
</div>
<p>The important things to note. The header section says that we want to <code class="highlighter-rouge">Bootstrap</code> a docker image, specifically <code class="highlighter-rouge">From</code> ubuntu:latest. No, you don’t actually need Docker installed to run this, because the layers are pulled from their API endpoint.</p>
<p><button style="color:white;margin-top:5px" class="btn btn-primary btn-lg asciinema-button" id="Bootstrapping-an-image">Show Video Tutorial</button></p>
<div class="hidden" id="asciinema-Bootstrapping-an-image">
<asciinema-player src="assets/asciicast/singularity-bootstrap.json" poster="data:text/plain,Bootstrapping an image" title="Bootstrapping an image" author="[email protected]" cols="100" rows="41" speed="2.0" theme="asciinema">
</asciinema-player>
</div>
<p>Once you have your bootstrap file, and you know how to use Github, you are really good to go. You can add the file to repository, connect it to Singularity Hub, and it will build automatically and be available via the <code class="highlighter-rouge">shub://</code> endpoint. That’s it!</p>
</description>
<pubDate>Thu, 26 Jan 2017 00:00:00 -0500</pubDate>
<link>http://localhost:4005/singularity-tutorial</link>
<guid isPermaLink="true">http://localhost:4005/singularity-tutorial</guid>
</item>
<item>
<title>Building CentOS image (emphasis on Ubuntu host)</title>
<description><p>This recipe describes how to build a CentOS image using Singularity, with special emphasis for Ubuntu compatible host.</p>
<!-- this handles the automatic toc. use ## for subheads to auto-generate the on-page minitoc. if you use html tags, you must supply an ID for the heading element in order for it to appear in the minitoc. -->
<script>
$( document ).ready(function() {
// Handler for .ready() called.
$('#toc').toc({ minimumHeaders: 0, listType: 'ul', showSpeed: 0, headers: 'h2,h3,h4' });
/* this offset helps account for the space taken up by the floating toolbar. */
$('#toc').on('click', 'a', function() {
var target = $(this.getAttribute('href'))
, scroll_target = target.offset().top
$(window).scrollTop(scroll_target - 10);
return false
})
});
</script>
<div id="toc"></div>
<p><strong>NOTE: this tutorial is intended for <a href="http://singularity.lbl.gov/release-2-2">Singularity release 2.2</a>, and reflects standards for that version.</strong></p>
<h2 id="the-problem">The Problem</h2>
<p>In theory, an Ubuntu host can create/bootstrap a CentOS image by installing the <code class="highlighter-rouge">yum</code> package, which is a front-end controller for <a href="https://en.wikipedia.org/wiki/RPM_Package_Manager">RPM</a>. In order for this to work on Ubuntu, a software called <a href="https://en.wikipedia.org/wiki/Berkeley_DB">Berkeley DB</a> must be identical in version to the version expected by <code class="highlighter-rouge">yum</code>. Unfortunately, these two verisons tend to be different, and this situation poses a difficult challenge for Singularity to deal with. A perfectly working <code class="highlighter-rouge">centos.def</code> file that can bootstrap a CentOS image from a RHEL-compatible host will not work when executed on Ubuntu, yielding the following error:</p>
<div class="language-bash highlighter-rouge"><pre class="highlight"><code>YumRepo Error: All mirror URLs are not using ftp, http[s] or file.
Eg. Invalid release/
removing mirrorlist with no valid mirrors: /var/cache/yum/x86_64/<span class="nv">$releasever</span>/base/mirrorlist.txt
Error: Cannot find a valid baseurl <span class="k">for </span>repo: base
ERROR: Aborting with <span class="nv">RETVAL</span><span class="o">=</span>255
</code></pre>
</div>
<p>The error above results during the bootstrap process, and happens because Ubuntu is trying to use its version of Berkeley DB to create the RPM database in the CentOS image. Because of a version conflict, subsequent use of <code class="highlighter-rouge">yum</code> fails because it is unable parse the Berkeley DB.</p>
<p>This problem is not exclusive to Ubuntu. Other flavors of Linux likely have the same problem. In fact, building a CentOS image hosted by a newer CentOS host results in the same problem!</p>
<h2 id="potential-solutions">Potential Solutions</h2>
<p>There are a number of solutions:</p>
<ol>
<li>Obtain <code class="highlighter-rouge">db*_load</code> that match the Berkeley DB version for the version of CentOS being imaged, and add a conversion step during the Singularity bootstrap process.</li>
<li>Perform a double bootstrap process: First build a base container containg CentOS (e.g. import from docker) and then 2) use this image to build the final desired CentOS image. You can run a container from within another container with Singularity as long as you are root when you do it.</li>
<li>Go to a CentOS machine and create a basic singularity image, and copy this image to the Ubuntu machine. Since such an image already has working <code class="highlighter-rouge">/bin/sh</code>, <code class="highlighter-rouge">rpm</code>, <code class="highlighter-rouge">yum</code> commands, and an RPM database with the correct version of Berkeley DB, a subsequent <code class="highlighter-rouge">singularity bootstrap</code> on this image can successfully run <code class="highlighter-rouge">yum</code> to update and add additional software to this image.</li>
<li>Leverage <code class="highlighter-rouge">singularity import centos.img docker://centos:6</code> to seed the CentOS image.</li>
<li>Import the container from Singularity Hub, when this feature becomes available.</li>
</ol>
<h3 id="create-an-image-on-centos-option-3">Create an image on CentOS (Option 3)</h3>
<ol>
<li>Identify a CentOS machine with the same major version of CentOS you want to build. Don’t use a CentOS-7 machine to build a CentOS-6 machine, because it won’t work. (Building a CentOS-7 image on a CentOS-6 host works, but the RPM DB would actually be using an older version of Berkeley DB)</li>
<li>Install Singularity on this host. Locate the <a href="https://github.com/singularityware/singularity/blob/2.x/examples/centos.def">centos.def</a> file from the <code class="highlighter-rouge">example/</code> directory. Edit to your heart’s desire (eg change OSVersion).</li>
<li>Create the image, bootstrap, and run:</li>
</ol>
<div class="language-bash highlighter-rouge"><pre class="highlight"><code>sudo singularity create /tmp/centos.img
</code></pre>
</div>
<p>Bootstrap:</p>
<div class="language-bash highlighter-rouge"><pre class="highlight"><code>sudo singularity bootstrap /tmp/centos.img centos.def
</code></pre>
</div>
<p>Copy <code class="highlighter-rouge">/tmp/centos.img</code> to the host where you want to run the container (e.g. the Ubuntu host).
On the Ubuntu host, you can execute the CentOS container:</p>
<div class="language-bash highlighter-rouge"><pre class="highlight"><code>singularity shell centos.img
</code></pre>
</div>
<p>If further update is desired on this image, update the <code class="highlighter-rouge">centos.def</code> as desired, then run:</p>
<div class="language-bash highlighter-rouge"><pre class="highlight"><code>singularity bootstrap centos.img centos.def
</code></pre>
</div>
<p>At this stage, the bootstrap works because the container already has the minimum requirements to run <code class="highlighter-rouge">yum</code> from its own content. There isn’t a need to install <code class="highlighter-rouge">yum</code> on the Ubuntu host.</p>
<h3 id="bootstrap-a-docker-container-option-4">Bootstrap a Docker Container (Option 4)</h3>
<p>Instead of building your own seed CentOS image, the docker image imported using Option 4 can be used as well. Subsequent <code class="highlighter-rouge">singularity bootstrap</code> on such .img file works.</p>
<h3 id="pursuing-option-1-or-2">Pursuing Option 1 or 2</h3>
<p>You will need to find the binary for various versions of <code class="highlighter-rouge">db_load</code>, and perhaps rename them to things like <code class="highlighter-rouge">db43_load</code>, <code class="highlighter-rouge">db47_load</code>, etc. You will then need to update the <code class="highlighter-rouge">build-yum.sh</code> script that comes with the Singularity distribution, and add steps to convert the RPM DB files in <code class="highlighter-rouge">/var/lib/rpm</code> to the desired version of Berkeley DB utilized by the target OS release.</p>
<p>For further details of the above steps,
refer to <a href="https://groups.google.com/a/lbl.gov/forum/#!topic/singularity/gb-m2sjOLkM">this thread</a> on the mailing list, and look for postings by Tru Huynh.</p>
<h2 id="miscellaneous-troubleshooting-notes">Miscellaneous troubleshooting notes</h2>
<ul>
<li>The RPM command is NOT needed on the host to carry out the Singularity bootstrap process</li>
<li>Initial bootstrap from an empty image needs <code class="highlighter-rouge">yum</code>, but after a basic image with <code class="highlighter-rouge">/bin/sh</code> and <code class="highlighter-rouge">yum</code> in place, the <code class="highlighter-rouge">yum</code> installation from inside the container is called.</li>
<li>The RPM containing <code class="highlighter-rouge">db*_load</code> are different in different OS. Here is a helpful list:</li>
</ul>
<div class="highlighter-rouge"><pre class="highlight"><code>OS rpm path to db*_load
CentOS-6 db4-utils-4.7.25-20.el6_7.x86_64 /usr/bin/db_load
CentOS-6 compat-db43-4.3.29-15.el6.x86_64 /usr/bin/db42_load
CentOS-6 compat-db42-4.2.52-15.el6.x86_64 /usr/bin/db43_load
CentOS-7 libdb-utils-5.3.21-19.el7.x86_64 /usr/bin/db_load
</code></pre>
</div>
<ul>
<li>Unfortunately the <code class="highlighter-rouge">file</code> command provided by coreutils cannot give accurate version details of Berkeley DB used by the RPM database. <code class="highlighter-rouge">file /var/lib/rpm/Packages</code> returns “version 9” in both CentOS 6 and 7.</li>
<li>Unfortunately the <code class="highlighter-rouge">db_dump</code> command provided by <code class="highlighter-rouge">db4-utils</code> doesn’t help either. <code class="highlighter-rouge">db_dump -p /var/lib/rpm/Packages | head -1</code> always returns “VERSION=3”, for RPM DB found natively in RHEL-6 and 7 hosts.</li>
</ul>
<h3 id="be-careful-with-yum-release">Be careful with yum release</h3>
<p>If building CentOS image from an Ubuntu host, one can seemingly use <code class="highlighter-rouge">yum --releasever=6</code> to get <code class="highlighter-rouge">yum</code> to work and get a container to build. This kind of works, but some packages may be installed twice while others may not be consistent, since <code class="highlighter-rouge">yum</code> is not able to properly query the RPM database created in the first stage of the bootstrap process. This approach is <em>NOT</em> recommended for any long-lived container images.</p>
</description>
<pubDate>Tue, 27 Dec 2016 00:00:00 -0500</pubDate>
<link>http://localhost:4005/building-centos-image</link>
<guid isPermaLink="true">http://localhost:4005/building-centos-image</guid>
</item>
<item>
<title>HPC Roundup of 2016</title>
<description><p>If you weren’t aware, 2016 was a wild ride for HPC! Check <a href="https://www.hpcwire.com/2016/12/21/fast-rewind-2016-wild-ride-for-hpc/" target="_blank">HPC Wire’s fast rewind of 2016</a>, including everything from people to watch to containers to public policy and the unfortunate state of things.</p>
<p>Thanks to all of our users and contributers to an amazing 2016, and onward to an even better 2017!</p>
</description>
<pubDate>Thu, 22 Dec 2016 00:00:00 -0500</pubDate>
<link>http://localhost:4005/2016-hpcwire-roundup</link>
<guid isPermaLink="true">http://localhost:4005/2016-hpcwire-roundup</guid>
</item>
<item>
<title>Containers at SC on the D&G Podcast</title>
<description><p>Jamie Duncan from RedHat describes containers in enterprise and HPC on the <a href="https://dgshow.org/2016/12/130-bless-your-heart/" target="_blank">D&amp;G podcast</a>. Listen for Singularity, and Jamie describing its amazing uptake within the scientific community - around 14:50. If you missed Supercomputing, it might be interesting to hear how the uptake was perceived!</p>
</description>
<pubDate>Wed, 14 Dec 2016 00:00:00 -0500</pubDate>
<link>http://localhost:4005/2016-sc-podcast</link>
<guid isPermaLink="true">http://localhost:4005/2016-sc-podcast</guid>
</item>
<item>
<title>Qlustar announces Singularity support</title>
<description><p>On behalf of the Qluster team, we are proud to <a href="https://qlustar.com/news/singularities-docked-sandboxes-and-more" target="_blank">share the news</a> that Qlustar now supports Singularity! From the words of the team:</p>
<blockquote>
<blockquote>
<p>…just wanted to let you know that Qlustar now supports Singularity out of the box and in addition, we provide up-to-date Debian Singularity packages for Ubuntu and Debian in our new community repo.</p>
</blockquote>
</blockquote>
<p>For more details, see <a href="https://qlustar.com/news/singularities-docked-sandboxes-and-more" target="_blank">the news release</a>.</p>
</description>
<pubDate>Wed, 16 Nov 2016 00:00:00 -0500</pubDate>
<link>http://localhost:4005/2016-qlustar-support</link>
<guid isPermaLink="true">http://localhost:4005/2016-qlustar-support</guid>
</item>
</channel>
</rss>