Skip to content

Commit

Permalink
update deb to use IMAGE_SRC
Browse files Browse the repository at this point in the history
  • Loading branch information
raoulh committed Dec 14, 2023
1 parent cc41437 commit 4bbe3b8
Show file tree
Hide file tree
Showing 16 changed files with 26 additions and 14 deletions.
2 changes: 1 addition & 1 deletion calaos-home/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ all: build
build:
@echo "Building package $(VERSION)"
@echo "Using image: $(IMAGE_SRC)"
@echo "$(IMAGE_SRC)" > $(TOP_DIR)/container.source
@echo "IMAGE_SRC=$(IMAGE_SRC)" > $(TOP_DIR)/container.source

clean:
@rm -rf $(TOP_DIR)/pkg $(TOP_DIR)/build \
Expand Down
1 change: 1 addition & 0 deletions calaos-home/debian/calaos-home.service
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ Delegate=yes
Type=notify
NotifyAccess=all
SyslogIdentifier=%N
EnvironmentFile=/usr/share/calaos/calaos-home.source

ExecStart=/usr/sbin/start_calaos_home %t/%N.cid

Expand Down
2 changes: 1 addition & 1 deletion calaos-home/start_calaos_home
Original file line number Diff line number Diff line change
Expand Up @@ -59,5 +59,5 @@ podman run \
--mount type=bind,source=/run/udev/data,target=/run/udev/data,readonly \
$(append_gpu_opts) \
$(append_input_opts) \
ghcr.io/calaos/calaos_home:latest \
${IMAGE_SRC} \
/usr/bin/start.sh
2 changes: 1 addition & 1 deletion calaos-server/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ all: build
build:
@echo "Building package: $(VERSION)"
@echo "Using image: $(IMAGE_SRC)"
@echo "$(IMAGE_SRC)" > $(TOP_DIR)/container.source
@echo "IMAGE_SRC=$(IMAGE_SRC)" > $(TOP_DIR)/container.source

clean:
@rm -rf $(TOP_DIR)/pkg $(TOP_DIR)/build \
Expand Down
4 changes: 3 additions & 1 deletion calaos-server/debian/calaos-server.service
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,8 @@ Delegate=yes
Type=notify
NotifyAccess=all
SyslogIdentifier=%N
EnvironmentFile=/usr/share/calaos/calaos-server.source

ExecStart=/usr/bin/podman run \
--name=calaos-server \
--cidfile=%t/%N.cid --replace --rm --cgroups=split --tz=local \
Expand All @@ -28,7 +30,7 @@ ExecStart=/usr/bin/podman run \
--pull=never \
--replace \
--tz=local \
ghcr.io/calaos/calaos_base \
${IMAGE_SRC} \
/opt/bin/calaos_server

[Install]
Expand Down
2 changes: 1 addition & 1 deletion grafana/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ all: build
build:
@echo "Building package $(VERSION)"
@echo "Using image: $(IMAGE_SRC)"
@echo "$(IMAGE_SRC)" > $(TOP_DIR)/container.source
@echo "IMAGE_SRC=$(IMAGE_SRC)" > $(TOP_DIR)/container.source

clean:
@rm -rf $(TOP_DIR)/pkg $(TOP_DIR)/build \
Expand Down
4 changes: 3 additions & 1 deletion grafana/debian/grafana.service
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,8 @@ Delegate=yes
Type=notify
NotifyAccess=all
SyslogIdentifier=%N
EnvironmentFile=/usr/share/calaos/calaos-grafana.source

ExecStart=/usr/bin/podman run \
--name=grafana \
--cidfile=%t/%N.cid --replace --rm --cgroups=split --tz=local \
Expand All @@ -25,7 +27,7 @@ ExecStart=/usr/bin/podman run \
--pull=never \
--replace \
--tz=local \
docker.io/grafana/grafana-oss
${IMAGE_SRC}

[Install]
WantedBy=multi-user.target
2 changes: 1 addition & 1 deletion haproxy/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ all: build
build:
@echo "Building package $(VERSION)"
@echo "Using image: $(IMAGE_SRC)"
@echo "$(IMAGE_SRC)" > $(TOP_DIR)/container.source
@echo "IMAGE_SRC=$(IMAGE_SRC)" > $(TOP_DIR)/container.source

clean:
@rm -rf $(TOP_DIR)/pkg $(TOP_DIR)/build \
Expand Down
4 changes: 3 additions & 1 deletion haproxy/debian/haproxy.service
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,8 @@ Delegate=yes
Type=notify
NotifyAccess=all
SyslogIdentifier=%N
EnvironmentFile=/usr/share/calaos/calaos-haproxy.source

ExecStart=/usr/bin/podman run \
--name=haproxy \
--cidfile=%t/%N.cid --replace --rm --cgroups=split --tz=local \
Expand All @@ -27,7 +29,7 @@ ExecStart=/usr/bin/podman run \
--replace \
--tz=local \
--cap-add=CAP_NET_BIND_SERVICE \
docker.io/haproxy
${IMAGE_SRC}

[Install]
WantedBy=multi-user.target
2 changes: 1 addition & 1 deletion influxdb/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ all: build
build:
@echo "Building package $(VERSION)"
@echo "Using image: $(IMAGE_SRC)"
@echo "$(IMAGE_SRC)" > $(TOP_DIR)/container.source
@echo "IMAGE_SRC=$(IMAGE_SRC)" > $(TOP_DIR)/container.source

clean:
@rm -rf $(TOP_DIR)/pkg $(TOP_DIR)/build \
Expand Down
4 changes: 3 additions & 1 deletion influxdb/debian/influxdb.service
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,8 @@ Delegate=yes
Type=notify
NotifyAccess=all
SyslogIdentifier=%N
EnvironmentFile=/usr/share/calaos/calaos-influxdb.source

ExecStart=/usr/bin/podman run \
--name=influxdb \
--cidfile=%t/%N.cid --replace --rm --cgroups=split --tz=local \
Expand All @@ -26,7 +28,7 @@ ExecStart=/usr/bin/podman run \
--pull=never \
--replace \
--tz=local \
docker.io/influxdb
${IMAGE_SRC}

[Install]
WantedBy=multi-user.target
2 changes: 1 addition & 1 deletion mosquitto/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ all: build
build:
@echo "Building package $(VERSION)"
@echo "Using image: $(IMAGE_SRC)"
@echo "$(IMAGE_SRC)" > $(TOP_DIR)/container.source
@echo "IMAGE_SRC=$(IMAGE_SRC)" > $(TOP_DIR)/container.source

clean:
@rm -rf $(TOP_DIR)/pkg $(TOP_DIR)/build \
Expand Down
4 changes: 3 additions & 1 deletion mosquitto/debian/mosquitto.service
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,8 @@ Delegate=yes
Type=notify
NotifyAccess=all
SyslogIdentifier=%N
EnvironmentFile=/usr/share/calaos/calaos-mosquitto.source

ExecStart=/usr/bin/podman run \
--name=mosquitto \
--cidfile=%t/%N.cid --replace --rm --cgroups=split --tz=local \
Expand All @@ -27,7 +29,7 @@ ExecStart=/usr/bin/podman run \
--pull=never \
--replace \
--tz=local \
docker.io/eclipse-mosquitto
${IMAGE_SRC}

[Install]
WantedBy=multi-user.target
2 changes: 1 addition & 1 deletion zigbee2mqtt/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ all: build
build:
@echo "Building package $(VERSION)"
@echo "Using image: $(IMAGE_SRC)"
@echo "$(IMAGE_SRC)" > $(TOP_DIR)/container.source
@echo "IMAGE_SRC=$(IMAGE_SRC)" > $(TOP_DIR)/container.source

clean:
@rm -rf $(TOP_DIR)/pkg $(TOP_DIR)/build \
Expand Down
1 change: 1 addition & 0 deletions zigbee2mqtt/debian/zigbee2mqtt.service
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ Type=notify
NotifyAccess=all
SyslogIdentifier=%N
ExecStart=/usr/sbin/start_z2mqtt %t/%N.cid
EnvironmentFile=/usr/share/calaos/calaos-Zigbee2mqtt.source

[Install]
WantedBy=multi-user.target
2 changes: 1 addition & 1 deletion zigbee2mqtt/start_z2mqtt
Original file line number Diff line number Diff line change
Expand Up @@ -36,4 +36,4 @@ podman run \
--replace \
--tz=local \
$(append_dev_opts) \
docker.io/koenkk/zigbee2mqtt
${IMAGE_SRC}

0 comments on commit 4bbe3b8

Please sign in to comment.