forked from portajohn/portajohn
some starting point
This commit is contained in:
commit
3a815fcfcb
4 changed files with 61 additions and 0 deletions
2
.gitignore
vendored
Normal file
2
.gitignore
vendored
Normal file
|
@ -0,0 +1,2 @@
|
|||
/etc-portage/*
|
||||
/portajohn-db/*
|
11
README.asc
Normal file
11
README.asc
Normal file
|
@ -0,0 +1,11 @@
|
|||
== portajohn
|
||||
|
||||
Since John came up with the idea of this portage hack, this project is called 'portajohn' in John's honor.
|
||||
|
||||
|
||||
=== run it
|
||||
|
||||
docker-compose build
|
||||
|
||||
docker-compose run portajohn /bin/bash
|
||||
|
16
docker-compose.yaml
Normal file
16
docker-compose.yaml
Normal file
|
@ -0,0 +1,16 @@
|
|||
version: "3.6"
|
||||
services:
|
||||
portajohn:
|
||||
build:
|
||||
context: ./ubuntu
|
||||
dockerfile: Dockerfile
|
||||
environment:
|
||||
- USER_UID=1000
|
||||
- USER_GID=1000
|
||||
# restart: always
|
||||
volumes:
|
||||
- ./etc-portage:/etc/portage
|
||||
- ./portajohn-db:/var/db/portajohn-db
|
||||
- /etc/timezone:/etc/timezone:ro
|
||||
- /etc/localtime:/etc/localtime:ro
|
||||
|
32
ubuntu/Dockerfile
Normal file
32
ubuntu/Dockerfile
Normal file
|
@ -0,0 +1,32 @@
|
|||
FROM ubuntu:20.04
|
||||
|
||||
VOLUME /etc/portage
|
||||
VOLUME /var/db/portajohn-db
|
||||
|
||||
RUN apt-get update && apt-get install -y \
|
||||
git \
|
||||
zstd \
|
||||
python3 \
|
||||
python3-distutils \
|
||||
python3-pip \
|
||||
build-essential \
|
||||
rsync
|
||||
|
||||
RUN DEBIAN_FRONTEND=noninteractive apt-get install -y tzdata
|
||||
|
||||
RUN apt-get install -y mc
|
||||
|
||||
RUN useradd -U -r -s /bin/false portage
|
||||
|
||||
WORKDIR /portajohn
|
||||
|
||||
RUN git clone https://github.com/gentoo/portage.git; \
|
||||
cd portage; \
|
||||
python3 setup.py install; \
|
||||
pip3 install gemato
|
||||
|
||||
|
||||
RUN cd /; \
|
||||
emerge --version
|
||||
|
||||
CMD ["/bin/bash"]
|
Loading…
Reference in a new issue