Created
August 30, 2016 20:49
-
-
Save j-griffith/24e941536405822dd5615139e8251138 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
FROM gentoo/stage3-amd64 | |
MAINTAINER John Griffith <[email protected]> | |
RUN emerge-webrsync; etc-update --automode -5 | |
# The exit 0 below is a hack because we're going to get a 1 return code | |
# because of needed updates, but typically NOT because the sync failed | |
RUN emerge =app-portage/layman-2.3.0-r1 --autounmask-write; exit 0 | |
RUN etc-update --automode -5 | |
RUN echo "app-portage/layman git mercurial sync-plugin-portage" >> /etc/portage/package.use/app-portage | |
RUN emerge layman | |
RUN mkdir -p /etc/portage/repos.conf | |
COPY ./layman.conf /etc/portage/repos.conf/layman.conf | |
RUN layman-updater -R | |
RUN sed -i '/conf_type:/c\conf_type: repos.conf' /etc/layman/layman.cfg | |
RUN layman-updater -R | |
# Add an exit 0 incase the file DNE | |
RUN rm /var/lib/layman/make.conf; exit 0 | |
RUN sed -i '/source \/var\/lib\/layman\/make.conf/c\""' /etc/portage/make.conf | |
# Below we're just using the COPY cmd to pull over the solidfire.xml | |
# If you want you can use rsync internal on the container, but see the notes in the README.md | |
# about routes and priveleged containers. | |
# COPY ./solidfire.xml /etc/layman/overlays/solidfire.xml | |
#RUN echo "172.17.5.216 platform-gentoo.corp.solidfire.net" >> /etc/hosts | |
#RUN ip route add 172.17.5.216 via 172.17.0.1 dev eth0 | |
#RUN rsync 172.17.5.216::solidfire-portage/solidfire.xml /etc/layman/overlays/solidfire.xml | |
#RUN layman -d solidfire; exit 0 | |
#WORKDIR /etc/layman/overlays | |
#RUN layman -L | |
#RUN layman -a solidfire | |
#WORKDIR / | |
#RUN echo \ | |
#GENTOO_MIRRORS="ftp://platform-gentoo.corp.solidfire.net/solidfire-distfiles \ | |
#ftp://platform-gentoo.corp.solidfire.net/gentoo-distfiles" >>\ | |
#/etc/portage/make.conf | |
#RUN emerge --sync | |
#RUN rm /usr/portage/distfiles/bashutils-1.1.12.tgz; exit 0 | |
#RUN emerge=dev-util/bashutils-solidfire-1.1.12 --fetchonly |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment