Last active
December 30, 2015 17:59
-
-
Save juniorz/7865019 to your computer and use it in GitHub Desktop.
Base docker image
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
# garage-env/base | |
# volumes? | |
# env variables? | |
# ------------------------------------------------------------------- | |
# $ docker build -t garage-env/base git://gist.github.com/7865019.git | |
# ------------------------------------------------------------------- | |
# | |
# ------------------------------------------------------------------- | |
FROM stackbrew/ubuntu:saucy | |
MAINTAINER Reinaldo Junior <[email protected]> | |
RUN apt-get update && apt-get upgrade -y | |
# User | |
RUN groupadd --gid 9999 garage &&\ | |
useradd --uid 9999 --gid 9999 --comment "Garage" garage &&\ | |
usermod -L garage &&\ | |
mkdir -p /home/garage | |
# Build tools | |
ADD . /var/garage/ | |
RUN chmod -R 0775 /var/garage &&\ | |
chgrp -R garage /var/garage &&\ | |
rm -r /var/garage/Dockerfile /var/garage/.git | |
# Clean up APT when done. | |
RUN apt-get clean && rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/* | |
#USER garage | |
#ENV HOME /home/garage | |
VOLUME ["/garage"] | |
WORKDIR /garage | |
CMD ["/var/garage/info", "--help"] | |
#ENTRYPOINT ["/var/garage/info"] |
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
#!/bin/bash | |
echo "This is a base image for garage-env. You should extend it to create your own garage environments." |
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
#!/bin/bash | |
export LC_ALL=C DEBIAN_FRONTEND=noninteractive | |
apt-get install ${@:1} -y --no-install-recommends |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment