From a9303b0f749ada5a29ac5af0961cadad24953eb3 Mon Sep 17 00:00:00 2001 From: Deep Koluguri Date: Thu, 21 May 2026 23:00:54 -0400 Subject: [PATCH] Initial commit: Kaniko CI/CD pipeline and Kustomize base --- .gitea/workflows/build.yaml | 36 ++++++++++++++++++++++++++++++++++++ Dockerfile | 5 +++++ k8s/kustomization.yaml | 3 +++ requirements.txt | 6 ++++++ 4 files changed, 50 insertions(+) create mode 100644 .gitea/workflows/build.yaml create mode 100644 Dockerfile create mode 100644 k8s/kustomization.yaml create mode 100644 requirements.txt diff --git a/.gitea/workflows/build.yaml b/.gitea/workflows/build.yaml new file mode 100644 index 0000000..a2eceba --- /dev/null +++ b/.gitea/workflows/build.yaml @@ -0,0 +1,36 @@ +name: Build Agents Runtime + +on: + push: + branches: + - main + paths: + - 'src/**' + - 'Dockerfile' + - 'requirements.txt' + +jobs: + build: + runs-on: ubuntu-latest + env: + DOCKER_HOST: tcp://172.17.0.1:2375 + steps: + - name: Checkout + uses: actions/checkout@v3 + + - name: Build and push (Kaniko) + run: | + SHORT_SHA="${GITHUB_SHA::7}" + IMAGE_TAG="192.168.8.250:5000/agents-runtime:latest" + + JOB_CONTAINER=$(docker ps --format '{{.Names}}' | grep 'GITEA-ACTIONS-TASK' | head -1) + + docker run --rm \ + --volumes-from "$JOB_CONTAINER" \ + gcr.io/kaniko-project/executor:latest \ + --context=dir:///workspace/deepkoluguri/agents-runtime \ + --dockerfile=Dockerfile \ + --destination="${IMAGE_TAG}" \ + --destination="192.168.8.250:5000/agents-runtime:${SHORT_SHA}" \ + --insecure \ + --skip-tls-verify diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..d69117e --- /dev/null +++ b/Dockerfile @@ -0,0 +1,5 @@ +FROM python:3.11-slim +WORKDIR /app +COPY requirements.txt . +RUN pip install --no-cache-dir -r requirements.txt +COPY . . diff --git a/k8s/kustomization.yaml b/k8s/kustomization.yaml new file mode 100644 index 0000000..b83b23e --- /dev/null +++ b/k8s/kustomization.yaml @@ -0,0 +1,3 @@ +apiVersion: kustomize.config.k8s.io/v1beta1 +kind: Kustomization +resources: [] diff --git a/requirements.txt b/requirements.txt new file mode 100644 index 0000000..e7cee6a --- /dev/null +++ b/requirements.txt @@ -0,0 +1,6 @@ +# Common libraries for AI agents +requests +langchain +langchain-openai +temporalio +pydantic