-
Notifications
You must be signed in to change notification settings - Fork 24
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
Apple M1 / Big Sur #49
Comments
Hi @lmorroni Can you try installing it with Homebrew after uninstalling the gem? https://brew.sh |
Thank you, sir. That worked! |
Nice! You're welcome! :) |
Sorry, spoke too soon. Looks like
Here's the docker ps -a output
I have a generic ~/.dory.yml file freshly generated. |
Ah, yeah, that's because the docker images aren't build for the ARM architecture. :( |
I do not mind helping here. Can you point me towards the Dockerfile? |
@lmorroni You might actually be able to run the image with |
I got this working but I had to rebuild the dinghy-http-proxy docker container first. I'm not sure how I can contribute this but I am providing my shell commands below. Hope this helps.
|
I tried to build the docker images for ARM but I have only tested on x86_64.
---
dory:
# Be careful if you change the settings of some of
# these services. They may not talk to each other
# if you change IP Addresses.
# For example, resolv expects a nameserver listening at
# the specified address. dnsmasq normally does this,
# but if you disable dnsmasq, it
# will make your system look for a name server that
# doesn't exist.
dnsmasq:
enabled: true
domains: # array of domains that will be resolved to the specified address
- domain: docker # you can set '#' for a wilcard
address: 127.0.0.1 # return for queries against the domain
container_name: dory_dnsmasq
port: 53 # port to listen for dns requests on. must be 53 on linux. can be anything that's open on macos
# kill_others: kill processes bound to the port we need (see previous setting 'port')
# Possible values:
# ask (prompt about killing each time. User can accept/reject)
# yes|true (go aheand and kill without asking)
# no|false (don't kill, and don't even ask)
kill_others: ask
service_start_delay: 5 # seconds to wait after restarting systemd services
image: tripox/dory-dnsmasq:latest
nginx_proxy:
enabled: true
container_name: dory_dinghy_http_proxy
https_enabled: true
ssl_certs_dir: '' # leave as empty string to use default certs
port: 80 # port 80 is default for http
tls_port: 443 # port 443 is default for https
image: tripox/dory-http-proxy:latest
resolv:
enabled: true
nameserver: 127.0.0.1
port: 53 # port where the nameserver listens. On linux it must be 53 |
My test on this one failed. I'm glad you showed me the image config option though. I can use that with the images that I built and it works. Here is the docker output from the failed container dory_dinghy_http_proxy
|
That's certainly an interesting error and not one I had expected. Need to get one of those Raspberry Pi running. 😄 Thank you for your time and input. I appreciate it. |
Oh, dinghy-http-proxy uses Go to compile for x86. Now it makes sense. |
Hey @FreedomBen |
I've got Dory working on my M1 by switching the Edit: I've just built |
Hi @taybenlor
The only thing different from this and the default config is the change in |
I can confirm this works on M1. I'll take a look at this. |
It works for me on an M1 too! Thanks @mikkelblyme I don't know if this is the right place, or should I create another issue, but for me when if I'm trying to access my site on Can someone point me in the right direction about how to create/make a cert that is accepted by the browser? |
@kristof-kasa No problem, but you should thank https://github.com/taybenlor 🙂 You should be able to use a project like https://github.com/FiloSottile/mkcert to create certificates. |
@mikkelblyme Yes, thank you! With mkcert I managed to create everything correctly. If anyone interested in the setup: $ brew install mkcert
$ mkcert -install
$ mkdir certs
$ cd certs
$ mkcert custom-local-domain.com "*.custom-local-domain.com" localhost 127.0.0.1 ::1
$ cp custom-local-domain.com+4-key.pem default.key
$ cp custom-local-domain.com+4.pem default.crt In dnsmasq:
...
domains:
- domain: custom-local-domain.com
address: 127.0.0.1
...
nginx_proxy:
...
image: taybenlor/dory-http-proxy:latest
ssl_certs_dir: '/Users/<username>/code/local-dev-https-setup/certs'
... |
Hello,
Been using dory for a number of years on OSX. Just upgraded to the M1 chip and Big Sur. When I install dory using
gem install dory
and then I rundory
. I get the following error:Any ideas?
Thank You,
Larry
The text was updated successfully, but these errors were encountered: