Initial commit: Kaniko CI/CD pipeline and Kustomize base
This commit is contained in:
parent
e9f34f3465
commit
a9303b0f74
|
|
@ -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
|
||||||
|
|
@ -0,0 +1,5 @@
|
||||||
|
FROM python:3.11-slim
|
||||||
|
WORKDIR /app
|
||||||
|
COPY requirements.txt .
|
||||||
|
RUN pip install --no-cache-dir -r requirements.txt
|
||||||
|
COPY . .
|
||||||
|
|
@ -0,0 +1,3 @@
|
||||||
|
apiVersion: kustomize.config.k8s.io/v1beta1
|
||||||
|
kind: Kustomization
|
||||||
|
resources: []
|
||||||
|
|
@ -0,0 +1,6 @@
|
||||||
|
# Common libraries for AI agents
|
||||||
|
requests
|
||||||
|
langchain
|
||||||
|
langchain-openai
|
||||||
|
temporalio
|
||||||
|
pydantic
|
||||||
Loading…
Reference in New Issue