ethanaobrien/ew

Rasberry Pi 4 not working

Closed this issue · 3 comments

Steps to reproduce:

  1. Pull repository
  2. Move docker-compose.yml and Dockerfile to root of project
/ew# ll
total 100
drwxr-xr-x 10 root root  4096 Jul 14 12:52 ./
drwxr-xr-x  4 root root  4096 Jul 14 03:47 ../
drwxr-xr-x  8 root root  4096 Jul 14 03:48 .git/
-rw-r--r--  1 root root    66 Jul 14 03:48 .gitattributes
drwxr-xr-x  3 root root  4096 Jul 14 03:48 .github/
-rw-r--r--  1 root root   140 Jul 14 03:48 .gitignore
-rw-r--r--  1 root root   690 Jul 14 03:48 Cargo.toml
-rw-r--r--  1 root root   741 Jul 14 03:48 Dockerfile
-rw-r--r--  1 root root 35129 Jul 14 03:48 LICENSE
drwxr-xr-x  2 root root  4096 Jul 14 03:48 asset_server/
drwxr-xr-x  2 root root  4096 Jul 14 12:44 data/
drwxr-xr-x  2 root root  4096 Jul 14 12:53 docker/
-rw-r--r--  1 root root   636 Jul 14 03:48 docker-compose.yml
drwxr-xr-x  2 root root  4096 Jul 14 03:48 logs/
-rw-r--r--  1 root root   732 Jul 14 03:48 readme.md
drwxr-xr-x  3 root root  4096 Jul 14 03:48 src/
drwxr-xr-x  3 root root  4096 Jul 14 03:48 webui/
  1. Run docker compose build
[+] Building 2296.6s (22/22) FINISHED                                                                                                                  docker:default
 => [sif2-ew internal] load build definition from Dockerfile                                                                                                     0.2s
 => => transferring dockerfile: 780B                                                                                                                             0.0s
 => [sif2-ew internal] load metadata for docker.io/library/debian:bookworm-slim                                                                                  0.8s
 => [sif2-ew internal] load metadata for docker.io/library/debian:latest                                                                                         0.8s
 => [sif2-ew internal] load .dockerignore                                                                                                                        0.1s
 => => transferring context: 2B                                                                                                                                  0.0s
 => [sif2-ew builder  1/11] FROM docker.io/library/debian:latest@sha256:1dc55ed6871771d4df68d393ed08d1ed9361c577cfeb903cd684a182e8a3e3ae                        24.0s
 => => resolve docker.io/library/debian:latest@sha256:1dc55ed6871771d4df68d393ed08d1ed9361c577cfeb903cd684a182e8a3e3ae                                           0.1s
 => => sha256:b5d17b1bf167551f6780b6fc5c59205a40d16e644087f32e2c604ebb023da5ae 529B / 529B                                                                       0.0s
 => => sha256:f753e4d18c7075845e84d759f49d57529f268aa7a262b517fd9f3d62749890eb 1.48kB / 1.48kB                                                                   0.0s
 => => sha256:0bd1f8180c504ba389021ce74895ed487ccd8c70e2d9af3707934bc801ba28d8 49.59MB / 49.59MB                                                                 6.2s
 => => sha256:1dc55ed6871771d4df68d393ed08d1ed9361c577cfeb903cd684a182e8a3e3ae 1.85kB / 1.85kB                                                                   0.0s
 => => extracting sha256:0bd1f8180c504ba389021ce74895ed487ccd8c70e2d9af3707934bc801ba28d8                                                                       15.6s
 => [sif2-ew stage-1 1/5] FROM docker.io/library/debian:bookworm-slim@sha256:f528891ab1aa484bf7233dbcc84f3c806c3e427571d75510a9d74bb5ec535b33                    0.4s
 => => resolve docker.io/library/debian:bookworm-slim@sha256:f528891ab1aa484bf7233dbcc84f3c806c3e427571d75510a9d74bb5ec535b33                                    0.1s
 => => sha256:a072bae1875dbe8aa104dc74c1e1fc769788c29e92b810e88e50176f1f9dc9d6 1.48kB / 1.48kB                                                                   0.0s
 => => sha256:f528891ab1aa484bf7233dbcc84f3c806c3e427571d75510a9d74bb5ec535b33 1.85kB / 1.85kB                                                                   0.0s
 => => sha256:27bbe43b39866e03f09fc09b1dd6edeb392b8103658b113a07b1a53b49519b26 529B / 529B                                                                       0.0s
 => [sif2-ew internal] load build context                                                                                                                        6.6s
 => => transferring context: 49.23MB                                                                                                                             3.5s
 => [sif2-ew stage-1 2/5] RUN mkdir -p /root/ew/                                                                                                                 7.0s
 => [sif2-ew builder  2/11] RUN apt update && apt install -y curl libssl-dev perl git gcc make                                                                 110.4s
 => [sif2-ew builder  3/11] RUN curl -fsSL https://deb.nodesource.com/setup_22.x | bash                                                                         25.6s 
 => [sif2-ew builder  4/11] RUN apt update && apt install -y nodejs                                                                                             46.8s 
 => [sif2-ew builder  5/11] RUN curl -sSf https://sh.rustup.rs | sh -s -- -y --no-modify-path --default-toolchain stable --profile minimal                      65.2s 
 => [sif2-ew builder  6/11] WORKDIR /ew/                                                                                                                         1.1s 
 => [sif2-ew builder  7/11] COPY ./ ./                                                                                                                           9.8s 
 => [sif2-ew builder  8/11] WORKDIR /ew/webui/                                                                                                                   0.2s 
 => [sif2-ew builder  9/11] RUN npm i && npm run build                                                                                                          42.1s 
 => [sif2-ew builder 10/11] WORKDIR /ew/                                                                                                                         0.2s 
 => [sif2-ew builder 11/11] RUN . "$HOME/.cargo/env" && cargo build --release                                                                                 1964.0s 
 => [sif2-ew stage-1 3/5] COPY --from=builder /ew/target/release/ew /root/ew/ew                                                                                  1.5s 
 => [sif2-ew stage-1 4/5] COPY ./docker/start.sh /root/ew/start.sh                                                                                               0.2s 
 => [sif2-ew stage-1 5/5] RUN chmod +x /root/ew/start.sh                                                                                                         1.4s 
 => [sif2-ew] exporting to image                                                                                                                                 1.1s 
 => => exporting layers                                                                                                                                          1.0s 
 => => writing image sha256:ccaf252b1e6e86c04b515fcf031c508d988c9b350daf3a3c5c44eccd6d0b371a                                                                     0.0s 
 => => naming to docker.io/library/sif2-ew:latest                                                                                                                0.0s

I re-ran it again and I don't seem to have an issue getting it to run... Maybe I did something wrong last night? Anyways, I'll close this since it's fine.

CONTAINER ID   IMAGE                                    COMMAND                  CREATED         STATUS                 PORTS                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               NAMES
61fc175f13bc   sif2-ew:latest                           "/root/ew/start.sh"      2 minutes ago   Up 2 minutes           0.0.0.0:8081->8081/tcp, :::8081->8081/tcp                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           sif2-ew

@ethanaobrien fyi

root@61fc175f13bc:~/ew# ldd ew
	linux-vdso.so.1 (0x0000ffffb1e80000)
	libgcc_s.so.1 => /lib/aarch64-linux-gnu/libgcc_s.so.1 (0x0000ffffb0ff0000)
	libm.so.6 => /lib/aarch64-linux-gnu/libm.so.6 (0x0000ffffb0f50000)
	libc.so.6 => /lib/aarch64-linux-gnu/libc.so.6 (0x0000ffffb0da0000)
	/lib/ld-linux-aarch64.so.1 (0x0000ffffb1e43000)

Seems good!

Good to hear!