16 lines
1.0 KiB
Docker
16 lines
1.0 KiB
Docker
FROM gentoo/portage AS portage
|
|
FROM gentoo/stage3
|
|
|
|
COPY --from=portage /var/db/repos/gentoo /var/db/repos/gentoo
|
|
COPY --chown=root:root ssh-keys/* /root/.ssh/
|
|
RUN (echo "MAKEOPTS=-j16"; echo "EMERGE_DEFAULT_OPTS=\"--quiet-build=y --autounmask-write\"") >>/etc/portage/make.conf && emerge eselect-repository dev-vcs/git gentoolkit
|
|
|
|
WORKDIR /var/db/repos/salfter
|
|
RUN eselect repository enable salfter && emaint sync -r salfter && ssh -o "StrictHostKeyChecking no" -p 222 git@git.alfter.us && git remote rm origin && git remote add origin ssh://git@git.alfter.us:222/salfter/portage && git pull origin master --rebase || true
|
|
RUN git branch --set-upstream-to=origin master && git rebase --skip || true
|
|
RUN git pull && git remote add gitlab ssh://git@gitlab.com/salfter/portage
|
|
RUN git config --global user.name "Scott Alfter" && git config --global user.email scott@alfter.us
|
|
|
|
RUN sed -i "s/^#en_US/en_US/" /etc/locale.gen && locale-gen && eselect locale set en_US.UTF-8 && . /etc/profile
|
|
RUN emerge joe && eselect editor set joe && . /etc/profile
|