-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
40 lines (35 loc) · 1.04 KB
/
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
PYTHON_VERSION?=3.12
JAVA_VERSION?=21
all: lint general python
.PHONY: all
general:
docker build \
--pull \
--tag "localhost/thermondo-sigsci" \
--tag "ghcr.io/thermondo/sigsci" \
--build-arg "BASE_IMAGE=debian:bookworm-slim" \
--build-arg "APT_SOURCE=https://apt.signalsciences.net/release/debian/ bookworm main" \
.
.PHONY: general
python:
docker build \
--pull \
--tag "localhost/thermondo-sigsci:python-${PYTHON_VERSION}" \
--tag "ghcr.io/thermondo/sigsci:python-${PYTHON_VERSION}" \
--build-arg "BASE_IMAGE=python:${PYTHON_VERSION}-slim" \
--build-arg "APT_SOURCE=https://apt.signalsciences.net/release/debian/ bookworm main" \
.
.PHONY: python
java:
docker build \
--pull \
--tag "localhost/thermondo-sigsci:jre-${JAVA_VERSION}" \
--tag "ghcr.io/thermondo/sigsci:jre-${JAVA_VERSION}" \
--build-arg "BASE_IMAGE=eclipse-temurin:${JAVA_VERSION}-jre-jammy" \
--build-arg "APT_SOURCE=https://apt.signalsciences.net/release/ubuntu/ jammy main" \
.
.PHONY: java
lint:
hadolint Dockerfile
shellcheck *.sh
.PHONY: lint