CouchDB installation issue on Apple Silicon chip

@Esther_Moturi & @Kymoraa, @mrjones has just documented a simpler way for running the CHT in dev mode on Apple Silicon machines. I tested it this morning and it worked nicely:

Here are the steps:

node -v && npm -v
v20.11.0
10.2.4

In the directory of the cloned cht-core (latest master branch), I ran:

npm ci
npm run build-dev

docker build -t couchdb-apple-silicon couchdb/.
mkdir -p ~/cht-docker
curl -s -o ~/cht-docker/docker-compose.yml https://staging.dev.medicmobile.org/_couch/builds_4/medic:medic:master/docker-compose/cht-couchdb.yml
cat > ~/cht-docker/couchdb-override.yml << EOF
version: '3.9'
services:
    couchdb:
        image: couchdb-apple-silicon
        ports:
            - "5984:5984"
            - "5986:5986"
EOF

I then run the three npm run commands in the Developing section, and managed to have the CHT open at http://localhost:5988/ correctly.

@Esther_Moturi, when you have some time, can you please try this simplified approach?

1 Like