Hello,
I'm trying to run a remote buildkit in kubernetes. Currently I have a pod running with buildkit exposed on the port 1234 and a Service exposing it. Then I run my python in a docker-compose.yaml setting the env var BUILDKIT_HOST.
I'm following this docs: https://docs.dagger.io/1223/custom-buildkit/#using-a-custom-remote-buildkit-running-in-docker
services:
test:
build: .
volumes:
- /var/run:/var/run
- .:/home/app
working_dir: /home/app
environment:
- BUILDKIT_HOST=tcp://myendpoint.com:1234
Then I have a Dockerfile with python, where I run the python script.
RUN pip install dagger-io
RUN pip install python-dotenv
RUN apt-get update && \
apt-get install -y \
ca-certificates \
curl \
gnupg \
lsb-release && \
mkdir -p /etc/apt/keyrings && \
curl -fsSL https://download.docker.com/linux/debian/gpg | gpg --dearmor -o /etc/apt/keyrings/docker.gpg && \
echo \
"deb [arch=$(dpkg --print-architecture) signed-by=/etc/apt/keyrings/docker.gpg] https://download.docker.com/linux/debian" \
$(lsb_release -cs) stable" | sudo tee /etc/apt/sources.list.d/docker.list > /dev/null && \
$(lsb_release -cs) stable" | tee /etc/apt/sources.list.d/docker.list > /dev/null && \
apt-get update && \
apt-get install -y docker-ce docker-ce-cli containerd.io docker-compose-plugin
Then I run in my local container the python.
root@150254f210b1:/home/app# python dagger_test_and_push.py
Is this setup enought to run dagger in the kubernetes buildkit? I don't think so beacuse I can't see any log in the kubernetes pod.
Thanks in advance.