agtic / chronos

5 stars 6 forks source link

Error while building docker container #1 #3

Closed fardin-developer closed 3 months ago

fardin-developer commented 3 months ago

docker-compose up --build

19.13 Ign:15 http://archive.raspbian.org/raspbian stretch/contrib all Packages
19.17 Fetched 218 kB in 18s (11.6 kB/s)
19.17 Reading package lists...
19.28 W: The repository 'http://archive.raspbian.org/raspbian stretch Release' does not have a Release file.
19.28 E: Failed to fetch http://archive.raspbian.org/raspbian/dists/stretch/firmware/source/Sources  404  Not Found
19.28 E: Some index files failed to download. They have been ignored, or old ones used instead.
------
failed to solve: process "/bin/sh -c apt-get update -y && apt-get install python2.7 python-pip cron sqlite3 nginx libssl-dev vim -y" did not complete successfully: exit code: 100
agtic commented 3 months ago

Sorry @fardin-developer , I thought I commented on this last week, but I must have neglected to submit. I've seen this error before. It can be resolved by adding one line to the Dockerfile to addlegacy.raspbian.org apt sources list:

RUN echo "deb http://legacy.raspbian.org/raspbian stretch main contrib non-free rpi" > /etc/apt/sources.list
fardin-developer commented 3 months ago

Sorry @fardin-developer , I thought I commented on this last week, but I must have neglected to submit. I've seen this error before. It can be resolved by adding one line to the Dockerfile to addlegacy.raspbian.org apt sources list:

RUN echo "deb http://legacy.raspbian.org/raspbian stretch main contrib non-free rpi" > /etc/apt/sources.list

Okay, I got it. Let me fix it and complete the task

fardin-developer commented 3 months ago

Hey, please check the docker file and update it. Due to this issue i am stuck and have not solve the main isse (sepration of frontend and backend )

fardin-developer commented 3 months ago

Sorry @fardin-developer , I thought I commented on this last week, but I must have neglected to submit. I've seen this error before. It can be resolved by adding one line to the Dockerfile to addlegacy.raspbian.org apt sources list:

RUN echo "deb http://legacy.raspbian.org/raspbian stretch main contrib non-free rpi" > /etc/apt/sources.list

plz reply as soon as possible.......

agtic commented 3 months ago

Sorry for the delay @fardin-developer. I'm traveling at the moment. I worked on it a bit today and committed a few changes directly to the master branch, but I wasn't able to finish testing them as my internet connection is a bit slow. Feel free to try it with the changes, but I can do some more testing in the coming days.

agtic commented 3 months ago

Note that I've added the porting to Python 3 issue to gitpay

agtic commented 3 months ago

I just tried building to docker container on an Amazon EC2 instance. It takes a long them and hasn't finished yet, but it gets past the previous errors you were seeing.

agtic commented 3 months ago

Docker build is now working. The changes were committed to the master branch directly as I'm traveling and had limited time.