Skip to content

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

@cdockterTG

Description

@cdockterTG

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"]`

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions