Skip to content
This repository has been archived by the owner on Apr 23, 2024. It is now read-only.

Can we use 'docker-compose' for arm64 architecture? If now what changes we have to make to run it on arm64 ? #302

Closed
AmoghSaxena opened this issue Apr 1, 2022 · 10 comments
Labels
enhancement New feature or request

Comments

@AmoghSaxena
Copy link

I have a Raspberry Pi 4 (8GB Variant) but I guess this image does not work on. Can you make a new Image for the same or can you guide me to make that container run on arm64?

@AmoghSaxena AmoghSaxena added the enhancement New feature or request label Apr 1, 2022
@gadgethome
Copy link

What errors are you getting when you install it using docker?

@AmoghSaxena
Copy link
Author

AmoghSaxena commented Apr 11, 2022

What errors are you getting when you install it using docker?

It just Stucks on the yarn install process

Wait I'll share the logs!

root@rexter-vps:/workstation/teledrive/docker# docker-compose up
Creating network "docker_default" with the default driver
Creating volume "docker_teledrive_data" with default driver
Pulling db (postgres:13)...
13: Pulling from library/postgres
2203022c5aa9: Pull complete
b2f00ab4a1e1: Pull complete
2b22b1386f53: Pull complete
11c3c25ab25a: Pull complete
630f1d9d0b94: Pull complete
a7fbc6770c3e: Pull complete
80ddc1b1ef9a: Pull complete
358dd17f48c0: Pull complete
a5eea223739c: Pull complete
57921216c0f8: Pull complete
22181341d518: Pull complete
24d4bd78d484: Pull complete
05f1e70fcc79: Pull complete
Digest: sha256:43568014f86275fd51992b9c8a6cf528d3acb6da8bcabfac04ed5abecb56a1c1
Status: Downloaded newer image for postgres:13
Pulling redis (redis:6)...
6: Pulling from library/redis
2203022c5aa9: Already exists
351baab5a437: Pull complete
e2e1d93c343f: Pull complete
89a822d3cbc1: Pull complete
9d6319760889: Pull complete
5fdac3843d5b: Pull complete
Digest: sha256:69a3ab2516b560690e37197b71bc61ba245aafe4525ebdece1d8a0bc5669e3e2
Status: Downloaded newer image for redis:6
Building teledrive
Step 1/12 : FROM node:16.14.0 as build
 ---> 78a186e50fd5
Step 2/12 : ARG REACT_APP_TG_API_ID
 ---> Using cache
 ---> d4a013ffd42b
Step 3/12 : ARG REACT_APP_TG_API_HASH
 ---> Using cache
 ---> 78ae94e870b6
Step 4/12 : WORKDIR /apps
 ---> Using cache
 ---> 28738b6dc131
Step 5/12 : COPY yarn.lock .
 ---> 9651c3b838ef
Step 6/12 : COPY package.json .
 ---> 779026b9b931
Step 7/12 : COPY server/package.json server/package.json
 ---> b679ccdce791
Step 8/12 : COPY web/package.json web/package.json
 ---> 1bbb3ad0b53d
Step 9/12 : COPY docker/.env .
 ---> fae53278524a
Step 10/12 : RUN yarn install
 ---> Running in e0f43e8ee499
yarn install v1.22.17
[1/4] Resolving packages...
[2/4] Fetching packages...
error An unexpected error occurred: "https://registry.yarnpkg.com/antd/-/antd-4.18.3.tgz: getaddrinfo EAI_AGAIN registry.yarnpkg.com".
info If you think this is a bug, please open a bug report with the information provided in "/apps/yarn-error.log".
info Visit https://yarnpkg.com/en/docs/cli/install for documentation about this command.
info There appears to be trouble with your network connection. Retrying...
info There appears to be trouble with your network connection. Retrying...
info There appears to be trouble with your network connection. Retrying...
info There appears to be trouble with your network connection. Retrying...
ERROR: Service 'teledrive' failed to build: The command '/bin/sh -c yarn install' returned a non-zero code: 1

I think this is because the yarn tar file its uses is supported for amd64

We can fix it by manually installing yarn using npm and apt repos and fix the issue. But that is not in Dockerfile.

@mgilangjanuar
Copy link
Owner

That's because the network problem, your device can't access to https://registry.yarnpkg.com/

@AmoghSaxena
Copy link
Author

That's because the network problem, your device can't access to https://registry.yarnpkg.com/

Its able to reach... I am successfully able to ping it and curl it and getting the right response.

here is the logs

root@rexter-vps:/workstation/teledrive/docker# curl https://registry.yarnpkg.com
{"db_name":"registry","engine":"couch_bt_engine","doc_count":2780286,"doc_del_count":334,"update_seq":17669857,"purge_seq":0,"compact_running":false,"sizes":{"active":56908834265,"external":170367705369,"file":57384147606},"disk_size":57384147606,"data_size":56908834265,"other":{"data_size":170367705369},"instance_start_time":"1649321461975719","disk_format_version":7,"committed_update_seq":17669854,"compacted_seq":17663833,"uuid":"d8db915449574fe1dbb729e34426a075"}root@rexter-
vps:/workstation/teledrive/docker# ping registry.yarnpkg.com
PING yarn.npmjs.org (104.16.18.35) 56(84) bytes of data.
64 bytes from 104.16.18.35 (104.16.18.35): icmp_seq=1 ttl=59 time=5.17 ms
64 bytes from 104.16.18.35 (104.16.18.35): icmp_seq=2 ttl=59 time=5.22 ms
^C
--- yarn.npmjs.org ping statistics ---
2 packets transmitted, 2 received, 0% packet loss, time 1001ms
rtt min/avg/max/mdev = 5.170/5.193/5.216/0.023 ms
root@rexter-vps:/workstation/teledrive/docker# 

Even though when I i try to install this in other ARM devices including my Raspberry Pi4 8GB model still same issues on them.

@AmoghSaxena
Copy link
Author

Any Update on it ?

@mgilangjanuar
Copy link
Owner

Not yet, you can contribute for this by create a pull request to staging branch

@AmoghSaxena
Copy link
Author

Not yet, you can contribute for this by create a pull request to staging branch

Sure!
Working on it!.

@rapdodge
Copy link

Same issue, stuck on yarn install...

image
image

Amlogic S905W 2GB RAM

@AmoghSaxena
Copy link
Author

Same issue, stuck on yarn install...

image image

Amlogic S905W 2GB RAM

@rapdodge I am working on the Fix. I'll update soon So that we will be able to use it on Arm64 Processors as well.

Once tested I will make a pull request and he can verify and merge it for further process in staging branch

This was referenced May 21, 2022
@birdup000
Copy link
Collaborator

Arm64 should work just fine for docker if any more issues come about we can re-open this discussion. Thank you!!

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

5 participants