Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support for different architectures on docker and serving external IPs #19

Open
ballerburg9005 opened this issue May 6, 2023 · 2 comments

Comments

@ballerburg9005
Copy link

ballerburg9005 commented May 6, 2023

The current docker images build only for amd64 and thus cannot be run on Rasperry Pi or other machines.

You can use docker buildx to build multi-architecture as outlined in this howto:

https://ballerburg.us.to/howto-multi-architecture-builds-in-docker/

However, since this requires multiple small alterations on the build server, I am reluctant to create a PR for this.

Additionally, a common docker setup for darknet/altnet websites would look like this:

docker run --name HTTP -h http -v ${MY_HOST_DIR}/httpd:/var/www -d mylocalpkg/arm:lighttpd &
docker run --name TOR -d --link HTTP:httpd -v ${MY_HOST_DIR}/tor:/etc/tor mylocalpkg/arm:tor &
docker run --name I2P -d --link HTTP:httpd -p 10500:10500/udp -p 7070:7070 -v ${MY_HOST_DIR}/i2pd:/home/i2pd/data mylocalpkg/arm:i2p &

I had a brief look at the docker file, and it does not seem that it checks if the config directory is empty (because it was mounted as a docker volume). When an empty config directory is found, the image should automatically populate it with default config files.

Docker images are very useful on embedded systems, such as as TV box or a self-hosted server, so I would consider this a priority for a decentralized internet protocol.

@majestrate
Copy link
Contributor

majestrate commented May 6, 2023 via email

@ballerburg9005
Copy link
Author

Ok, thanks. I will make a PR soon.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants