commit 3a815fcfcbdb1ff2b8b3fe0e1daa7110c433a025 Author: saces Date: Wed Jun 3 00:04:12 2020 +0200 some starting point diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..7d6afb3 --- /dev/null +++ b/.gitignore @@ -0,0 +1,2 @@ +/etc-portage/* +/portajohn-db/* diff --git a/README.asc b/README.asc new file mode 100644 index 0000000..646356e --- /dev/null +++ b/README.asc @@ -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 + diff --git a/docker-compose.yaml b/docker-compose.yaml new file mode 100644 index 0000000..5b40407 --- /dev/null +++ b/docker-compose.yaml @@ -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 + diff --git a/ubuntu/Dockerfile b/ubuntu/Dockerfile new file mode 100644 index 0000000..526f243 --- /dev/null +++ b/ubuntu/Dockerfile @@ -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"] \ No newline at end of file