initial commit
This commit is contained in:
2
.gitignore
vendored
Normal file
2
.gitignore
vendored
Normal file
@@ -0,0 +1,2 @@
|
||||
*~
|
||||
id_*
|
||||
17
Dockerfile
Normal file
17
Dockerfile
Normal file
@@ -0,0 +1,17 @@
|
||||
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 emerge eselect-repository dev-vcs/git joe && eselect repository enable salfter && emaint sync -r salfter && sed -i "s/\/bin\/nano/\/usr\/bin\/joe/" /etc/profile
|
||||
WORKDIR /var/db/repos/salfter
|
||||
RUN ssh -o "StrictHostKeyChecking no" -p 222 git@gitlab.alfter.us && git remote rm origin && git remote add origin ssh://git@gitlab.alfter.us:222/salfter/portage && git pull origin master --rebase || true
|
||||
RUN git branch --set-upstream-to=origin master && git rebase --skip && git pull && git remote add gitlab ssh://gitlab.com/salfter/portage
|
||||
CMD [ "tail", "-f", "/dev/null" ]
|
||||
|
||||
# 12 git remote rm origin
|
||||
# 13 git remote add origin ssh://git@gitlab.alfter.us:222/salfter/portage
|
||||
# 14 git pull origin master
|
||||
# 15 git pull origin master --rebase
|
||||
# 16 git rebase --skip
|
||||
# 17 git pull
|
||||
# 18 git branch --set-upstream-to=origin master
|
||||
12
README.md
Normal file
12
README.md
Normal file
@@ -0,0 +1,12 @@
|
||||
Portage Overlay Maintenance
|
||||
===========================
|
||||
|
||||
This container allows for easy maintenance of a Portage overlay on a
|
||||
non-Gentoo system. It sets up a Gentoo container, pulls in an overlay, and
|
||||
adds a few tools to facilitate maintenance. It's set up to work with my
|
||||
overlay, but editing the Dockerfile should allow you to work with any
|
||||
overlay you want.
|
||||
|
||||
Copy the SSH keys you need to access your Git repo into the ssh-keys
|
||||
directory, then set it up with ```docker compose up -d```. Enter the
|
||||
running container with ``docker exec -it gentoo bash -l```.
|
||||
5
docker-compose.yml
Normal file
5
docker-compose.yml
Normal file
@@ -0,0 +1,5 @@
|
||||
services:
|
||||
gentoo:
|
||||
build: .
|
||||
image: salfter/gentoo
|
||||
container_name: gentoo
|
||||
0
ssh-keys/.keepdir
Normal file
0
ssh-keys/.keepdir
Normal file
Reference in New Issue
Block a user