ociTools: fixing outdated documentation

This commit is contained in:
Katharina Fey 2019-09-09 08:04:22 +01:00
parent 585f30c958
commit e72ec381b2
No known key found for this signature in database
GPG Key ID: F972AEEA2887D547

View File

@ -31,10 +31,10 @@
<title>Build Container</title> <title>Build Container</title>
<programlisting> <programlisting>
buildContainer { buildContainer {
cmd = with pkgs; writeScript "run.sh" '' args = [ (with pkgs; writeScript "run.sh" ''
#!${bash}/bin/bash #!${bash}/bin/bash
${coreutils}/bin/exec ${bash}/bin/bash ${coreutils}/bin/exec ${bash}/bin/bash
''; <co xml:id='ex-ociTools-buildContainer-1' /> '').outPath ]; <co xml:id='ex-ociTools-buildContainer-1' />
mounts = { mounts = {
"/data" = { "/data" = {
@ -51,7 +51,7 @@ buildContainer {
<calloutlist> <calloutlist>
<callout arearefs='ex-ociTools-buildContainer-1'> <callout arearefs='ex-ociTools-buildContainer-1'>
<para> <para>
<varname>cmd</varname> specifies the program to run inside the container. <varname>args</varname> specifies a set of arguments to run inside the container.
This is the only required argument for <varname>buildContainer</varname>. This is the only required argument for <varname>buildContainer</varname>.
All referenced packages inside the derivation will be made available All referenced packages inside the derivation will be made available
inside the container inside the container