Skip to content

Instantly share code, notes, and snippets.

@fdv
Created September 28, 2014 19:55
Show Gist options
  • Save fdv/3e9efd8fbbd26edaa880 to your computer and use it in GitHub Desktop.
Save fdv/3e9efd8fbbd26edaa880 to your computer and use it in GitHub Desktop.
Premier coup :
FROM ubuntu:14.04
RUN echo build $(date)
RUN apt-get update
RUN apt-get install nagios-nrpre-server
RUN apt-get upgrade
CMD nagios-nrpe-server
Tu build ton container nrpe, et ensuite :
FROM nrpe
RUN echo build $(date)
RUN apt-get update
RUN apt-get upgrade
RUN apt-get install nagios-nrpre-server
CMD nagios-nrpe-server
Puis, tu kill les container en run, tu mets à jour, et tu run
Normalement (à valider), le truc du echo devrait te permettre de toujours lancer l'apt-get. A placer où tu veux histoire de ne pas tout rejouer sur un container long.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment