diff --git a/content/markdown/docker.markdown b/content/markdown/docker.markdown index 8fbff55..273f8de 100644 --- a/content/markdown/docker.markdown +++ b/content/markdown/docker.markdown @@ -19,18 +19,22 @@ docker run -it --name builder_aarch64 -v "$(pwd)":/workspace --platform=linux/a Download the prebuilt image and run the Docker container: ```bash -docker pull --platform=linux/arm64 ghcr.io/monkeyx-net/portmaster-build-templates/portmaster-builder:x86_64-latest +docker pull --platform=linux/x86_64 ghcr.io/monkeyx-net/portmaster-build-templates/portmaster-builder:x86_64-latest docker run --rm --privileged multiarch/qemu-user-static --reset -p yes -docker run -it --name builder_aarch64 -v "$(pwd)":/workspace --platform=linux/arm64 ghcr.io/monkeyx-net/portmaster-build-templates/portmaster-builder:x86_64-latest +docker run -it --name builder_x86_64 -v "$(pwd)":/workspace --platform=linux/x86_64 ghcr.io/monkeyx-net/portmaster-build-templates/portmaster-builder:x86_64-latest ``` ## Copy files from Container to Host -Ensure the relevant docker container is running +The -v argument opens the Docker workspace folder in the folder you run docker from. Which means that workspace folder is on the host machine. + + +## Start the docker containers again. + ```bash -docker container start builder32 -docker container start builder64 -docker container start builderx86_64 +docker container start builder_aarch64 +docker container start builder_x86_64 ``` -The -v argument opens the Docker workspace folder in the folder you run docker from. Which means that workspace folder is on the host machine. + +The following tool can be useful for managing container. [Arcane](https://github.com/getarcaneapp/arcane) diff --git a/docs/docker.html b/docs/docker.html deleted file mode 100644 index fe8963b..0000000 --- a/docs/docker.html +++ /dev/null @@ -1,364 +0,0 @@ - - - - - - - - - - - - - - - - - Port Tools - - - - - - - - - - - - - - - - - - - - - - - - - - -
-
-
-
-
-

- Using Docker with PortMaster. -

-

- The docker file and supporting images are aimed at helping to support compiling ports to use with Portmaster as per the - - PM Build Guide - -

-

- How to use the image -

-

- 32-bit ARM -

-

- Download the prebuilt image and run the Docker container using: -

-
docker pull monkeyx/retro_builder:arm32
-docker run --rm --privileged multiarch/qemu-user-static --reset -p yes
-docker run --privileged -it --platform=linux/armhf --name builder32 monkeyx/retro_builder:arm32 bash
-
-

- 64-bit ARM -

-

- Download the prebuilt image and run the Docker container using: -

-
docker pull monkeyx/retro_builder:arm64
-docker run --rm --privileged multiarch/qemu-user-static --reset -p yes
-docker run --privileged -it --platform=linux/arm64 --name builder64 monkeyx/retro_builder:arm64 bash
-
-

- 64-bit X86_64 -

-

- Download the prebuilt image and run the Docker container using: -

-
docker pull monkeyx/retro_builder:x86_64
-docker run --rm --privileged multiarch/qemu-user-static --reset -p yes
-docker run --privileged -it --platform=linux/amd64 --name builderx86_64 monkeyx/retro_builder:x86_64 bash
-
-

- Copy files from Container to Host -

-

- Ensure the relevant docker container is running -

-
docker container start builder32
-docker container start builder64
-docker container start builderx86_64
-
-

- Copy the files -

-

- docker cp - - :/file/path/within/container /host/path/target -docker cp - - :/file/path/within/container /host/path/target -

-

- Example -

-
docker cp builder32:/root/file .
-
-

- How to build the image -

-

- 32-bit ARM -

-

- Execute the following on your machine: -

-
git clone https://github.com/monkeyx-net/retro_builder_docker.git
-cd retro_builder_docker
-docker build . --platform linux/arm/v7 -t monkeyx/retro_builder:arm32
-
-

- 64-bit ARM -

-

- Execute the following on your machine: -

-
git clone https://github.com/monkeyx-net/retro_builder_docker.git
-cd retro_builder_docker
-docker build . --platform linux/arm64 -t monkeyx/retro_builder:arm64
-
-

- 64-bit x86_64 -

-

- Execute the following on your machine: -

-
git clone https://github.com/monkeyx-net/retro_builder_docker.git
-cd retro_builder_docker
-docker build . --platform linux/amd64 -t monkeyx/retro_builder:x86_64
-
- -
- -
- -