josh-project / josh

Just One Single History
https://josh-project.github.io/josh/
MIT License
1.49k stars 55 forks source link

Add arm support for josh-proxy #1305

Open hgezim opened 10 months ago

hgezim commented 10 months ago

It would be nice to run it on a Mac M1/M2 without using emulation.

christian-schilling commented 8 months ago

Hi @hgezim, I am developing and running josh-proxy on M1 and M2 without emulation regularly without issues, so I'm wondering what exactly you are reporting here 🤔 Are you asking for an ARM docker image? True we don't have that, but it can easily be built.

bklebe commented 5 months ago

True we don't have that, but it can easily be built.

Hi, I'm struggling to build it on M1. Do you have advice on what commands to use? Here's what I've tried:

docker build github.com/josh-project/josh

Which results in the error:

ERROR: failed to solve: git: pull access denied, repository does not exist or may require authorization: server message: insufficient_scope: authorization failed

I've also tried the command from Getting Started (https://josh-project.github.io/josh/guide/gettingstarted.html):

docker run \
--name josh-proxy \
--detach \
--publish 8000:8000 \
--env JOSH_REMOTE=https://github.com \
--volume josh-vol:/data/git \
joshproject/josh-proxy:latest >/dev/null

Which results in:

Unable to find image 'joshproject/josh-proxy:latest' locally
latest: Pulling from joshproject/josh-proxy
docker: no matching manifest for linux/arm64/v8 in the manifest list entries.
See 'docker run --help'.

Any help would be appreciated :)