Skip to content

Commit 69631ef

Browse files
authored
Merge pull request #1 from himmat12/dev
Dev and Prod environment configuration added
2 parents ceb1d76 + 299e90f commit 69631ef

14 files changed

Lines changed: 1202 additions & 1198 deletions

.dockerignore

Lines changed: 21 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,21 @@
1-
*.txt
2-
.env
3-
.git
4-
.gitignore
5-
README.md
6-
.DS_Store
7-
.venv/
8-
.venvclear/
9-
__pycache__/
10-
*.pyc
11-
*.pyo
12-
*.pyd
13-
test.db
14-
*.sqlite3
15-
*.db
16-
*.log
17-
*.swp
18-
*~
19-
workspace/
20-
1+
*.txt
2+
*test.py
3+
.env
4+
.git
5+
.gitignore
6+
README.md
7+
.DS_Store
8+
.venv/
9+
.venvclear/
10+
__pycache__/
11+
*.pyc
12+
*.pyo
13+
*.pyd
14+
test.db
15+
*.sqlite3
16+
*.db
17+
*.log
18+
*.swp
19+
*~
20+
workspace/
21+

.env.example

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
ENV=dev # Set to 'prod' for production environment
2-
OLLAMA_HOST=http://ollama:11434
3-
AGENT_WORKSPACE=/workspace
1+
ENV=dev # later overriden to 'prod' for production environment in docker-compose.prod.yaml
2+
OLLAMA_HOST=http://ollama:11434
3+
AGENT_WORKSPACE=/workspace
44
OLLAMA_MODEL=llama3.2:1b
Lines changed: 52 additions & 52 deletions
Original file line numberDiff line numberDiff line change
@@ -1,53 +1,53 @@
1-
name: Build and publish agent image
2-
3-
on:
4-
push:
5-
branches:
6-
- main
7-
paths:
8-
- "agent/**"
9-
- ".github/workflows/docker-publish.yml"
10-
workflow_dispatch:
11-
12-
env:
13-
REGISTRY: ghcr.io
14-
IMAGE_NAME: ghcr.io/${{ github.repository_owner }}/local-code-agent
15-
16-
jobs:
17-
build-and-push:
18-
runs-on: ubuntu-latest
19-
permissions:
20-
contents: read
21-
packages: write
22-
23-
steps:
24-
- name: Checkout repository
25-
uses: actions/checkout@v4
26-
27-
- name: Set up Docker Buildx
28-
uses: docker/setup-buildx-action@v3
29-
30-
- name: Log in to GHCR
31-
uses: docker/login-action@v3
32-
with:
33-
registry: ${{ env.REGISTRY }}
34-
username: ${{ github.actor }}
35-
password: ${{ secrets.GITHUB_TOKEN }}
36-
37-
- name: Extract Docker metadata
38-
id: meta
39-
uses: docker/metadata-action@v5
40-
with:
41-
images: ${{ env.IMAGE_NAME }}
42-
tags: |
43-
type=raw,value=latest
44-
type=sha
45-
46-
- name: Build and push agent image
47-
uses: docker/build-push-action@v6
48-
with:
49-
context: ./agent
50-
file: ./agent/Dockerfile
51-
push: true
52-
tags: ${{ steps.meta.outputs.tags }}
1+
name: Build and publish agent image
2+
3+
on:
4+
push:
5+
branches:
6+
- main
7+
paths:
8+
- "agent/**"
9+
- ".github/workflows/docker-publish.yml"
10+
workflow_dispatch:
11+
12+
env:
13+
REGISTRY: ghcr.io
14+
IMAGE_NAME: ghcr.io/${{ github.repository_owner }}/local-code-agent
15+
16+
jobs:
17+
build-and-push:
18+
runs-on: ubuntu-latest
19+
permissions:
20+
contents: read
21+
packages: write
22+
23+
steps:
24+
- name: Checkout repository
25+
uses: actions/checkout@v4
26+
27+
- name: Set up Docker Buildx
28+
uses: docker/setup-buildx-action@v3
29+
30+
- name: Log in to GHCR
31+
uses: docker/login-action@v3
32+
with:
33+
registry: ${{ env.REGISTRY }}
34+
username: ${{ github.actor }}
35+
password: ${{ secrets.GITHUB_TOKEN }}
36+
37+
- name: Extract Docker metadata
38+
id: meta
39+
uses: docker/metadata-action@v5
40+
with:
41+
images: ${{ env.IMAGE_NAME }}
42+
tags: |
43+
type=raw,value=latest
44+
type=sha
45+
46+
- name: Build and push agent image
47+
uses: docker/build-push-action@v6
48+
with:
49+
context: ./agent
50+
file: ./agent/Dockerfile
51+
push: true
52+
tags: ${{ steps.meta.outputs.tags }}
5353
labels: ${{ steps.meta.outputs.labels }}

.gitignore

Lines changed: 27 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -1,26 +1,27 @@
1-
*.txt
2-
.env
3-
.venv/
4-
.venvclear/
5-
__pycache__/
6-
*.pyc
7-
*.pyo
8-
*.pyd
9-
test.db
10-
*.sqlite3
11-
*.db
12-
*.log
13-
*.swp
14-
*~
15-
.DS_Store
16-
.vscode/
17-
.idea/
18-
docker-compose.override.yml
19-
.env.local
20-
*.bak
21-
*.tmp
22-
*.cache
23-
coverage/
24-
coverage.*
25-
htmlcov/
26-
.pytest_cache/
1+
*.txt
2+
*test.py
3+
.env
4+
.venv/
5+
.venvclear/
6+
__pycache__/
7+
*.pyc
8+
*.pyo
9+
*.pyd
10+
test.db
11+
*.sqlite3
12+
*.db
13+
*.log
14+
*.swp
15+
*~
16+
.DS_Store
17+
.vscode/
18+
.idea/
19+
docker-compose.override.yml
20+
.env.local
21+
*.bak
22+
*.tmp
23+
*.cache
24+
coverage/
25+
coverage.*
26+
htmlcov/
27+
.pytest_cache/

0 commit comments

Comments
 (0)