Developing on an Apple silicon Mac

11 views
Skip to first unread message

Ben Fairless

unread,
Jul 16, 2024, 9:12:08 PM (10 days ago) Jul 16
to alavet...@googlegroups.com
Hi everyone,

During the period I had taken a break from working on Right to Know I upgraded my computer to a Mac with Apple Silicon (ARM).

I’m now having no end of trouble trying to set up a development environment - apparently, this is a common issue for all of the Apple silicon based MacBooks.

Does anyone have any helpful pointers on setting up a development environment on a ARM Mac? Would appreciate any guidance at all at this point.

Thanks
Ben

Graeme Porteous

unread,
Jul 17, 2024, 4:51:37 AM (10 days ago) Jul 17
to alavet...@googlegroups.com
Hi Ben,

We use Apple Silicon based Mac here at mySociety without any issues.

Running Alaveteli on your Mac we would recommend using the Docker
scripts which comes with the source code.

Basic high level instructions I would recommend would be:
1. Install the macOS command line tools - `xcode-select --install`
2. Install homebrew - https://brew.sh/
3. Install OrbStack/Docker - `brew install orbstack`
4. Clone Alaveteli - git clone https://github.com/mysociety/alaveteli.git

You can then use our guides for running Alaveteli using Docker here:
https://alaveteli.org/docs/installing/docker/

Let me know how you get on,


--
Graeme Porteous
gra...@mysociety.org
> --
> You received this message because you are subscribed to the Google Groups "Alaveteli Dev" group.
> To unsubscribe from this group and stop receiving emails from it, send an email to alaveteli-de...@googlegroups.com.
> To view this discussion on the web visit https://groups.google.com/d/msgid/alaveteli-dev/CAKnAbpYwjmP2ygGE-TLyhQkKUxZ2cDrU80VazAXGttUwhUjp3g%40mail.gmail.com.

Ben Fairless

unread,
Jul 17, 2024, 5:10:24 AM (10 days ago) Jul 17
to alavet...@googlegroups.com
Thanks Graeme - Right to Know is a few versions behind (0.38.4). I’m not sure if docker is available that far back?

Graeme Porteous

unread,
Jul 17, 2024, 5:22:51 AM (10 days ago) Jul 17
to alavet...@googlegroups.com
Yes, you're correct. Docker support got added in 0.39.

The changes between 0.38 and 0.39 are relevantly minor so the upgrade
shouldn't been hard, or you could attempt to backport the 0.39 version
of docker-compose.yml [1] and the docker directory [2] back to your
0.38.x install. I would imagine that should work fine for a
development environment.

[1] https://github.com/mysociety/alaveteli/blob/0.39.0.0/docker-compose.yml
[2] https://github.com/mysociety/alaveteli/tree/0.39.0.0/docker

--
Graeme Porteous
gra...@mysociety.org
> To view this discussion on the web visit https://groups.google.com/d/msgid/alaveteli-dev/CAKnAbpZBYomB%3D5uYi%3DTCu4%2BzEO%3DkmRA0N3oQm9DbdVn4LKEmTw%40mail.gmail.com.
Reply all
Reply to author
Forward
0 new messages