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

Docker issues: jessie binary-amd64 packages not found #174

Open
rcoenen opened this issue Mar 27, 2019 · 3 comments
Open

Docker issues: jessie binary-amd64 packages not found #174

rcoenen opened this issue Mar 27, 2019 · 3 comments

Comments

@rcoenen
Copy link

rcoenen commented Mar 27, 2019

Hi,

I've added the lines suggested in the wiki to my docker-compose.yaml file in gekko root directory:

version: '3'
services:
  gekko:
    build: ./
    volumes:
      - ./volumes/gekko/history:/usr/src/app/history
      - ./config.js:/usr/src/app/config.js
    links:
      - redis
#      - postgresql
    environment:
     - HOST
     - PORT
    ports: # you can comment this out when using the nginx frontend
      - "${PORT}:${PORT}"
  japonicus:
    build: ../japonicus-gekko/
    volumes:
      - ./volumes/gekko-japonicus:/usr/src/app/output
    links:
      - gekko
    ports:
      - 5000:5000

I've then used the following command to build and start from the gekko root directory:

docker-compose up --build

However after a few commands I get the following error:

redis uses an image, skipping
Building gekko
Step 1/17 : FROM node:8
 ---> 6a23819b932c
Step 2/17 : ENV HOST localhost
 ---> Using cache
 ---> 0b6fd1844d97
Step 3/17 : ENV PORT 3000
 ---> Using cache
 ---> bd7e22ebde87
Step 4/17 : RUN mkdir -p /usr/src/app
 ---> Using cache
 ---> c590b3598926
Step 5/17 : WORKDIR /usr/src/app
 ---> Using cache
 ---> 14081145fe42
Step 6/17 : RUN npm install -g --production node-gyp &&     npm cache clean --force
 ---> Using cache
 ---> b6c2c051e0db
Step 7/17 : COPY package.json .
 ---> Using cache
 ---> 8c273a3caca8
Step 8/17 : RUN npm install --production &&     npm install --production [email protected] [email protected] [email protected] pg &&     npm cache clean --force
 ---> Using cache
 ---> 32823625ae00
Step 9/17 : WORKDIR exchange
 ---> Using cache
 ---> 2b7d412beaac
Step 10/17 : COPY exchange/package.json .
 ---> Using cache
 ---> b180018ef5a6
Step 11/17 : RUN npm install --production &&     npm cache clean --force
 ---> Using cache
 ---> b37aa4d3cecf
Step 12/17 : WORKDIR ../
 ---> Using cache
 ---> 21adf3ad1ea2
Step 13/17 : COPY . /usr/src/app
 ---> Using cache
 ---> 602367cc18d7
Step 14/17 : EXPOSE 3000
 ---> Using cache
 ---> fbc4c721dbbb
Step 15/17 : RUN chmod +x /usr/src/app/docker-entrypoint.sh
 ---> Using cache
 ---> c009833e456e
Step 16/17 : ENTRYPOINT ["/usr/src/app/docker-entrypoint.sh"]
 ---> Using cache
 ---> 67c83ae604f2
Step 17/17 : CMD ["--config", "config.js", "--ui"]
 ---> Using cache
 ---> b5477003bd7f
Successfully built b5477003bd7f
Successfully tagged gekko_gekko:latest
Building japonicus
Step 1/15 : FROM python:3.6.6-jessie
 ---> 5bbbc44620fb
Step 2/15 : ENV LANG en_US.UTF-8
 ---> Using cache
 ---> 53cbba07b640
Step 3/15 : RUN apt-get update -y
 ---> Running in 07bce133433a
Get:1 http://security.debian.org jessie/updates InRelease [44.9 kB]
Ign http://deb.debian.org jessie InRelease
Ign http://deb.debian.org jessie-updates InRelease
Get:2 http://deb.debian.org jessie Release.gpg [2420 B]
Ign http://deb.debian.org jessie-updates Release.gpg
Get:3 http://deb.debian.org jessie Release [148 kB]
Ign http://deb.debian.org jessie-updates Release
Err http://deb.debian.org jessie-updates/main amd64 Packages
  
Err http://deb.debian.org jessie-updates/main amd64 Packages
  
Get:4 http://security.debian.org jessie/updates/main amd64 Packages [822 kB]
Get:5 http://deb.debian.org jessie/main amd64 Packages [9098 kB]
Err http://deb.debian.org jessie-updates/main amd64 Packages
  
Err http://deb.debian.org jessie-updates/main amd64 Packages
  404  Not Found
Fetched 10.1 MB in 8s (1231 kB/s)
W: Failed to fetch http://deb.debian.org/debian/dists/jessie-updates/main/binary-amd64/Packages  404  Not Found

E: Some index files failed to download. They have been ignored, or old ones used instead.
ERROR: Service 'japonicus' failed to build: The command '/bin/sh -c apt-get update -y' returned a non-zero code: 100

Any ideas of what is causing the issue?

Thanks

@rcoenen
Copy link
Author

rcoenen commented Mar 27, 2019

Update: answering own question:
in /japonicus/Dockerfile
add this line
RUN sed -i '/jessie-updates/d' /etc/apt/sources.list # Now archived
before
RUN apt-get update -y

@Gab0
Copy link
Owner

Gab0 commented Mar 27, 2019

Cool bro, make a pull request if you wish or I change it later myself, no problem.
cheers!

@rcoenen
Copy link
Author

rcoenen commented Mar 27, 2019

Cool bro, make a pull request if you wish or I change it later myself, no problem.
cheers!

I am a total noob no idea how to create pull requests lol

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

No branches or pull requests

2 participants