sirixdb / sirix

SirixDB is an an embeddable, bitemporal, append-only database system and event store, storing immutable lightweight snapshots. It keeps the full history of each resource. Every commit stores a space-efficient snapshot through structural sharing. It is log-structured and never overwrites data. SirixDB uses a novel page-level versioning approach.
https://sirix.io
BSD 3-Clause "New" or "Revised" License
1.09k stars 243 forks source link

Cannot build docker-compose on arm64/aarch64 #681

Closed jtippett closed 7 months ago

jtippett commented 7 months ago

The current docker-compose build script does not function on my M1 mac:

 % docker compose build
[+] Building 3.2s (5/5) FINISHED                                               docker:desktop-linux
 => [server internal] load build definition from Dockerfile                                    0.0s
 => => transferring dockerfile: 1.83kB                                                         0.0s
 => [server internal] load .dockerignore                                                       0.0s
 => => transferring context: 2B                                                                0.0s
 => ERROR [server internal] load metadata for docker.io/library/gradle:jdk21-alpine            3.2s
 => ERROR [server internal] load metadata for docker.io/library/gradle:8.4-jdk21-graal         3.2s
 => [server auth] library/gradle:pull token for registry-1.docker.io                           0.0s
------
 > [server internal] load metadata for docker.io/library/gradle:jdk21-alpine:
------
------
 > [server internal] load metadata for docker.io/library/gradle:8.4-jdk21-graal:
------
failed to solve: gradle:jdk21-alpine: no match for platform in manifest sha256:039614406f658505c65357c71056442e65b30b3f19400199d96265c88261ecc6: not found

Not sure how to solve the above.

welcome[bot] commented 7 months ago

Thanks for opening your first issue 🦁 Your feedback, is the most valuable thing besides PRs 💚

jtippett commented 7 months ago

hi @JohannesLichtenberger can confirm the latest changes now work successfully for me. Awesome!

jtippett commented 7 months ago

Let me add one more comment. This line in the docker-compose file:

    volumes:
      - /opt/sirix/sirix-data:/opt/sirix/sirix-data

Causes the launch to fail unless the folder is specifically created and mapped in Docker. I was able to make it boot by creating a test folder in my user dir and making it available in Docker desktop app:

- /Users/james/sirix-data:/opt/sirix/sirix-data

JohannesLichtenberger commented 7 months ago

Thanks a lot. Can you check if it's working without the existing sirix-data folder? I've just committed a fix, hopefully: https://github.com/sirixdb/sirix/commit/90d31a879402460c5260ec13f1119bcc63c5a622