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

Error: Unable to locate package bgpstream -- Building in Dockerfile #243

Open
cdockterTG opened this issue Jan 11, 2024 · 1 comment
Open

Comments

@cdockterTG
Copy link

cdockterTG commented Jan 11, 2024

Hey, all! Hoping for some guidance on this. I've been trying to get my python app up and running inside a docker container & keep bumping into this error when trying to build the image: ERROR [6/9] RUN apt-get update && apt-get install -y bgpstream

What I've tried:

  1. Several different variations of installing the bgpstream packages. I had a similar issue on my host machine (macOS, M2 chip), but was able to resolve it by exporting some variables as outlined in the docs.

  2. I've tried starting from the caida/bgpstream:latest docker image instead, but ran into an issue regarding a key verification error. I felt less equipped to handle that.

Hoping for some ideas for further debugging.

Here's my Dockerfile:
`FROM ubuntu:20.04

-- Create a consistent working directory
WORKDIR /bgp-routing

--Necessary for the ubuntu version
RUN apt-get update && apt-get install -y software-properties-common

-- Install required packages to install bgpstream & other requirements.
RUN apt-get update && apt-get install -y
python3.9
curl
sudo
wget
python3-pip

-- one liner to install bgpstream reqs. Link here: https://bgpstream.caida.org/docs/install/pybgpstream
RUN curl -s https://pkg.caida.org/os/$(lsb_release -si|awk '{print tolower($0)}')/bootstrap.sh | bash

RUN apt-get update && apt-get install -y bgpstream

-- Copy requirements file
COPY requirements.txt .

-- Install requirements based off of venv
RUN pip3 install -r requirements.txt

-- Copy files in the app folder
COPY ./app ./app

-- Commands executed in order to start the program. -u command prints console statements to container logs.
CMD ["python3", "-u", "./app/main.py"]`

@brendonj
Copy link
Contributor

Can you rerun the build using docker build --progress=plain --no-cache so any error messages can be seen clearly? The repository setup and package fetching commands look ok to me at first glance.

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