-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
45 lines (32 loc) · 901 Bytes
/
Makefile
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
develop:
poetry run code .
clean:
${RM} py99.zip
${RM} ./doctest/*.py
${RM} ./pytest/*.py
${RM} ./ruff/*.py
${RM} ./tmp/*.py
uberjar:
lein uberjar
deploy: uberjar
scp target/uberjar/py99.jar ${DEST}:py99/py99.jar && \
ssh ${DEST} 'sudo systemctl restart py99' && \
ssh ${DEST} 'systemctl status py99'
# ----------------------------------
# docker
TAG=hkim0331/py99:0.7.0
DEST="ubuntu@app.melt.kyutech.ac.jp"
build:
docker build -t ${TAG} .
hub: clean security manifest
security:
security -v unlock-keychain ~/Library/Keychains/login.keychain-db
manifest: arm64 amd64
docker manifest create --amend ${TAG} ${TAG}-amd64 ${TAG}-arm64
docker manifest push ${TAG}
amd64:
docker buildx build --platform linux/$@ --push -t ${TAG}-$@ .
arm64:
docker buildx build --platform linux/$@ --push -t ${TAG}-$@ .
zip:
zip -r py99.zip Dockerfile Makefile docker-compose.yml .devcontainer