Skip to content

Commit

Permalink
chore(pipelined): devcontainer and bazel-base use needed depencies (m…
Browse files Browse the repository at this point in the history
…agma#12285)

Signed-off-by: Krisztián Varga <krisztian.varga@tngtech.com>
  • Loading branch information
vktng authored and emakeev committed Aug 5, 2022
1 parent 75a2c4b commit 07bc192
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 2 deletions.
5 changes: 3 additions & 2 deletions .devcontainer/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,7 @@ RUN echo "Install general purpose packages" && \
lld \
lldb \
make \
netbase \
ninja-build \
openjdk-8-jdk \
perl \
Expand Down Expand Up @@ -334,12 +335,12 @@ ENV PYTHON_VENV_EXECUTABLE=${PYTHON_VENV}/bin/python${PYTHON_VERSION}
RUN virtualenv --system-site-packages --python=/usr/bin/python${PYTHON_VERSION} ${PYTHON_VENV}
RUN ${PYTHON_VENV_EXECUTABLE} -m pip install --quiet --upgrade --no-cache-dir "setuptools==49.6.0"

### install python3-aioeventlet from the magma apt repo
### install python3-aioeventlet and bcc-tools from the magma apt repo
COPY orc8r/tools/ansible/roles/pkgrepo/files/jfrog.pub /tmp/
RUN apt-key add /tmp/jfrog.pub && \
echo "deb https://facebookconnectivity.jfrog.io/artifactory/list/dev-focal/ focal main" > /etc/apt/sources.list.d/fbc.list && \
apt-get update -y && \
apt-get install -y python3-aioeventlet && \
apt-get install -y python3-aioeventlet bcc-tools && \
rm -f /tmp/* && \
rm -rf /var/lib/apt/lists/* # delete lists that are downloaded by apt-get update

Expand Down
9 changes: 9 additions & 0 deletions experimental/bazel-base/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,8 @@ RUN apt-get update && \
lld \
# dependency of python services (e.g. magmad)
net-tools \
# dependency of python services (e.g. pipelined)
netbase \
python3 \
python-is-python3 \
# dependency of python services (e.g. magmad)
Expand All @@ -57,6 +59,13 @@ RUN apt-get update && \
wget \
zip

# Install depencies from facebook repository
COPY orc8r/tools/ansible/roles/pkgrepo/files/jfrog.pub /tmp/
RUN apt-key add /tmp/jfrog.pub && \
echo "deb https://facebookconnectivity.jfrog.io/artifactory/list/dev-focal/ focal main" > /etc/apt/sources.list.d/fbc.list && \
apt-get update -y && \
apt-get install -y bcc-tools

# Install bazel
WORKDIR /usr/sbin
RUN wget --progress=dot:giga https://github.com/bazelbuild/bazelisk/releases/download/v1.10.0/bazelisk-linux-amd64 && \
Expand Down

0 comments on commit 07bc192

Please sign in to comment.