forked from jkitchin/pycse
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmakefile
More file actions
63 lines (49 loc) · 1.73 KB
/
makefile
File metadata and controls
63 lines (49 loc) · 1.73 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
# Default target
.DEFAULT_GOAL := help
# Help target
help:
@echo "Available targets:"
@echo " build-3.12 Build Docker image for Python 3.12"
@echo " build-3.13 Build Docker image for Python 3.13 (latest)"
@echo " push-3.12 Push Python 3.12 image to Docker Hub"
@echo " push-3.13 Push Python 3.13 image to Docker Hub (latest)"
@echo " build-all Build all Python version images"
@echo " push-all Push all Python version images"
@echo " run-3.12 Run pycse with Python 3.12"
@echo " run-3.13 Run pycse with Python 3.13"
@echo " build Build Docker image using original Dockerfile (legacy)"
@echo " push Push legacy image to Docker Hub"
@echo " run Run pycse.sh script (uses latest)"
@echo ""
@echo "Example: make build-3.12"
# Python 3.12 targets
build-3.12: Dockerfile-3.12
docker build -f Dockerfile-3.12 -t pycse:3.12 .
push-3.12:
docker tag pycse:3.12 jkitchin/pycse:3.12
docker push jkitchin/pycse:3.12
# Python 3.13 targets (latest)
build-3.13: Dockerfile-3.13
docker build -f Dockerfile-3.13 -t pycse:3.13 -t pycse:latest .
push-3.13:
docker tag pycse:3.13 jkitchin/pycse:3.13
docker tag pycse:3.13 jkitchin/pycse:latest
docker push jkitchin/pycse:3.13
docker push jkitchin/pycse:latest
# Build and push all versions
build-all: build-3.12 build-3.13
push-all: push-3.12 push-3.13
# Legacy targets (original Dockerfile)
build: Dockerfile
docker build . -t pycse
push:
docker tag pycse jkitchin/pycse:latest
docker push jkitchin/pycse:latest
run:
./pycse.sh
# Run specific Python versions
run-3.12:
./pycse.sh 3.12
run-3.13:
./pycse.sh 3.13
.PHONY: help build-3.12 build-3.13 push-3.12 push-3.13 build-all push-all run-3.12 run-3.13 build push run