Created
September 28, 2014 19:55
-
-
Save fdv/3e9efd8fbbd26edaa880 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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