-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
25 lines (20 loc) · 913 Bytes
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
# Meh, could be better, but this is easy
FROM ubuntu:noble
# Set the working directory in the container
WORKDIR /tetragon-crwd
# Copy the current directory contents into the container at /app
COPY src/. /tetragon-crwd
# Envs
ENV PYTHONUNBUFFERED=1
# Install kubectl and logscale python library, yadda yadda yadda
RUN chmod +x /tetragon-crwd/tetragon-crwd-logscale.py
RUN apt update -y
RUN apt install python3 python3-pip pipx curl -y
# RUN pipx install humiolib <---time suck
RUN pip3 install humiolib --break-system-packages
# RUN pipx ensurepath <---time suck
RUN curl -LO "https://dl.k8s.io/release/$(curl -L -s https://dl.k8s.io/release/stable.txt)/bin/linux/amd64/kubectl"
RUN install -o root -g root -m 0755 kubectl /usr/local/bin/kubectl
RUN kubectl version --client
RUN curl -L https://github.com/cilium/tetragon/releases/latest/download/tetra-linux-amd64.tar.gz | tar -xz
RUN mv tetra /usr/local/bin