main
txt 42 lines 1.63 KB
Raw
1
2 # LOCAL BUILDS
3 # Run these commands from the project root folder
4
5 # local development image based on local files with smart cache
6 docker build -f DockerfileLocal -t agent-zero-local --build-arg CACHE_DATE=$(date +%Y-%m-%d:%H:%M:%S) .
7
8 # local development image based on local files without cache
9 docker build -f DockerfileLocal -t agent-zero-local --no-cache .
10
11
12 # GIT BASED BUILDS
13 # Run these commands from the /docker/run directory
14
15 # local image based on development branch instead of local files
16 docker build -t agent-zero-development --build-arg BRANCH=development --build-arg CACHE_DATE=$(date +%Y-%m-%d:%H:%M:%S) .
17
18 # local image based on testing branch instead of local files
19 docker build -t agent-zero-testing --build-arg BRANCH=testing --build-arg CACHE_DATE=$(date +%Y-%m-%d:%H:%M:%S) .
20
21 # local image based on main branch instead of local files
22 docker build -t agent-zero-main --build-arg BRANCH=main --build-arg CACHE_DATE=$(date +%Y-%m-%d:%H:%M:%S) .
23
24
25
26 # DOCKERHUB PUSH
27 # Run these commands from the /docker/run directory
28
29 docker login
30
31 # development:
32 docker buildx build -t agent0ai/agent-zero:development --platform linux/amd64,linux/arm64 --push --build-arg BRANCH=development --build-arg CACHE_DATE=$(date +%Y-%m-%d:%H:%M:%S) .
33
34 # testing:
35 docker buildx build -t agent0ai/agent-zero:testing --platform linux/amd64,linux/arm64 --push --build-arg BRANCH=testing --build-arg CACHE_DATE=$(date +%Y-%m-%d:%H:%M:%S) .
36
37 # main
38 docker buildx build -t agent0ai/agent-zero:vx.x.x -t agent0ai/agent-zero:latest --platform linux/amd64,linux/arm64 --push --build-arg BRANCH=main --build-arg CACHE_DATE=$(date +%Y-%m-%d:%H:%M:%S) .
39
40
41 # plain output
42 --progress=plain