Re: How to run a one time command at the end of a build ?
Hi,
Sebastian Hilbert wrote (10 Feb 2010 16:34:58 GMT) :
> Is there any way/mechanism one can issue a set of commands when building the
> image has finished ?
I guess you mean when the chroot has been initialized, but not
compressed and converted to binary format. Feel free to correct me
as needed.
> I am thinking of something along the lines.
> /etc/init.d/postgresql start
> gm-bootstrap_server
> /etc/init.d/postgresql stop
> This could be used to change some files, create symlinks etc. The goal is to
> have the database filled already at build time so the user will have a better
> experience.
This is possible: have a look to chroot_local-hooks in
the documentation.
Bye,
--
intrigeri <intrigeri@boum.org>
| GnuPG key @ https://gaffer.ptitcanardnoir.org/intrigeri/intrigeri.asc
| OTR fingerprint @ https://gaffer.ptitcanardnoir.org/intrigeri/otr-fingerprint.asc
| The impossible just takes a bit longer.
Reply to: