Skip to content
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

Raspberry Pi build fixes, package upgrades, debian upgrade #22

Merged
merged 1 commit into from
Aug 17, 2024

Conversation

shalva-an
Copy link
Contributor

This PR:

  1. Package upgrades
  2. Dockerbuild

Docker image kept rebooting on Raspberry Pi 5.
The upgrades to packages fixed the issues.
Also upgraded the debain base to resolve security issues.

This potentially closes:
#11
#16
#19

Log from building:

❯ docker build -t airtag:latest .
[+] Building 250.0s (14/14) FINISHED                                                                                                                                                             docker:default
 => [internal] load build definition from Dockerfile                                                                                                                                                       0.0s
 => => transferring dockerfile: 1.09kB                                                                                                                                                                     0.0s
 => [internal] load metadata for docker.io/arm64v8/debian:stable-slim                                                                                                                                      0.4s
 => [internal] load .dockerignore                                                                                                                                                                          0.1s
 => => transferring context: 2B                                                                                                                                                                            0.0s
 => [internal] load build context                                                                                                                                                                          0.1s
 => => transferring context: 6.02MB                                                                                                                                                                        0.0s
 => [builder 1/5] FROM docker.io/arm64v8/debian:stable-slim@sha256:d64396aaa6a90a2ab61fde89dc34f21b97b1e1374e042ee43b262a2e3ffccf26                                                                        2.6s
 => => resolve docker.io/arm64v8/debian:stable-slim@sha256:d64396aaa6a90a2ab61fde89dc34f21b97b1e1374e042ee43b262a2e3ffccf26                                                                                0.0s
 => => sha256:d64396aaa6a90a2ab61fde89dc34f21b97b1e1374e042ee43b262a2e3ffccf26 529B / 529B                                                                                                                 0.0s
 => => sha256:41399e59b39af43e06937ca1de1388cc2e339bef8d244dbf170391ba5cfc340c 1.48kB / 1.48kB                                                                                                             0.0s
 => => sha256:5876b85c0fb4a8a530bf0d95cd92239ceda3169ff11c7cab7a78de16078c26fd 29.16MB / 29.16MB                                                                                                           1.5s
 => => extracting sha256:5876b85c0fb4a8a530bf0d95cd92239ceda3169ff11c7cab7a78de16078c26fd                                                                                                                  0.7s
 => [builder 2/5] RUN apt-get update && apt-get install --no-install-recommends -y ca-certificates ldc git clang dub libz-dev libssl-dev  && apt-get clean  && rm -rf /var/lib/apt/lists/*                40.7s
 => [stage-1 2/5] RUN apt-get update && apt-get install --no-install-recommends -y ca-certificates curl  && apt-get clean  && rm -rf /var/lib/apt/lists/*                                                 16.2s
 => [stage-1 3/5] WORKDIR /opt/                                                                                                                                                                            0.2s
 => [builder 3/5] WORKDIR /opt/                                                                                                                                                                            0.1s
 => [builder 4/5] COPY . .                                                                                                                                                                                 0.2s
 => [builder 5/5] RUN DC=ldc2 dub build -c "static" --build-mode allAtOnce -b release --compiler=ldc2                                                                                                    204.7s
 => [stage-1 4/5] COPY --from=builder /opt/anisette-v3-server /opt/anisette-v3-server                                                                                                                      0.2s
 => [stage-1 5/5] RUN useradd -ms /bin/bash Alcoholic  && mkdir /home/Alcoholic/.config/anisette-v3/lib/ -p  && chown -R Alcoholic /home/Alcoholic/  && chmod -R +wx /home/Alcoholic/  && chown -R Alcoho  0.5s
 => exporting to image                                                                                                                                                                                     0.2s
 => => exporting layers                                                                                                                                                                                    0.2s
 => => writing image sha256:8a7f4329c171471f937ac00c9b3348c267ee9e3264f61dabd4928b4d56c3e0bc                                                                                                               0.0s
 => => naming to docker.io/library/airtag:latest

I'm using it with another project:
https://github.com/dchristl/macless-haystack

docker network create mh-network
docker run -d --restart always --name anisette -p 6969:6969 --volume anisette-v3_data:/home/Alcoholic/.config/anisette-v3/lib/ --network mh-network airtag:latest
docker run -it --restart unless-stopped --name macless-haystack -p 6176:6176 --volume mh_data:/app/endpoint/data --network mh-network christld/macless-haystack

@Moris-Shalon
Copy link

nope, still facing same issue

$ DC=ldc2 dub build -c "static" --build-mode allAtOnce -b release --compiler=ldc2
Invalid SemVer format: fe879b1148767767481b9c2753d4fd741cb2d7fa

Just nevermind. I am using docker image instead. I just wanted to build this anisette-v3 from source, cause there was no pre-built binary for aarch64 (ARM64) machines on Linux. But Docker image works fine on Raspberry Pi OS 64-bit, based on Debian bullseye, and it suits me, so I don't actually need to build anisette from source right now

@KYLE-HILL
Copy link

Thanks for submitting the PR! I am looking forward to this resolving my issue. I'm also using this with Macless-Haystack. Fingers crossed this gets merged soon!

@Dadoum Dadoum merged commit 53d5203 into Dadoum:main Aug 17, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants