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

FR: Support for ARM64 #42

Open
lindermayr opened this issue May 3, 2024 · 2 comments
Open

FR: Support for ARM64 #42

lindermayr opened this issue May 3, 2024 · 2 comments

Comments

@lindermayr
Copy link

Most of my Docker containers run on Raspberry Pi or in a free instance of Oracle Cloud. Unfortunately, they only support ARM64, so your software always exits with this error: exec /docker-entrypoint.sh: exec format error

I've found some instructions for adding multiple platform support, but in lack of programming skills, I cant do it on my own:
https://docs.docker.com/build/building/multi-platform/

Do you think it'd be possible to tweak your software to play nice with different architectures like ARM64? That'd be a huge help!

@mpdcampbell
Copy link
Owner

So fair warning, I haven't tested this at all. But I pushed some ARM builds under the edge tag.
In this line of the docker compose add the edge tag to pull the right image, then run the container as normal.
image: mpdcampbell/traefik-geoip-filter:edge

Let me know if works or not, when I have more time I'll test it on a Raspberry Pi.

@lindermayr
Copy link
Author

lindermayr commented May 5, 2024

Yes, seems to start. Thanks for the fast support.

It seems that it can't read the environment variable:

Running initial Maxmind database check
ERROR: The value of FILTER_TYPE environment variable should be 'allow' or 'block', exiting script.
/docker-entrypoint.sh: /docker-entrypoint.d/ is not empty, will attempt to perform configuration
/docker-entrypoint.sh: Looking for shell scripts in /docker-entrypoint.d/
/docker-entrypoint.sh: Launching /docker-entrypoint.d/10-listen-on-ipv6-by-default.sh
10-listen-on-ipv6-by-default.sh: info: IPv6 listen already enabled
/docker-entrypoint.sh: Sourcing /docker-entrypoint.d/15-local-resolvers.envsh
/docker-entrypoint.sh: Launching /docker-entrypoint.d/20-envsubst-on-templates.sh
/docker-entrypoint.sh: Launching /docker-entrypoint.d/30-tune-worker-processes.sh
/docker-entrypoint.sh: Launching /docker-entrypoint.d/50-startUp.sh
--------------------------------------
Running initial Maxmind database check
ERROR: The value of FILTER_TYPE environment variable should be 'allow' or 'block', exiting script.

This is my Docker-Compose:

geoipfilter:
image: mpdcampbell/traefik-geoip-filter:edge
 container_name: geoipfilter
    volumes:
         - ./geoip:/geoip
      environment:
         - MAXMIND_ID="0099999"
         - MAXMIND_KEY="blabla"
         - FILTER_TYPE="allow"
         - COUNTRY_CODES=FR
         

For testing you could also use a free ARM-VM (4 cores with 24G RAM) from Oracle: https://www.oracle.com/cloud/free/

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