mirror of
https://github.com/cockpit-project/cockpit.git
synced 2026-11-03 21:49:50 -09:00
In a future commit we want to add labels to our ws-container, this becomes easier when if we have a centralised location where we build the cockpit-ws image.
21 lines
923 B
Makefile
21 lines
923 B
Makefile
WS_DIR = $(srcdir)/containers/ws
|
|
|
|
CLEANFILES += $(WS_DIR)/rpms $(WS_DIR)/libexec
|
|
|
|
ws-container:
|
|
rm -rf $(WS_DIR)/rpms
|
|
if [ -e cockpit-bridge-*.rpm ]; then mkdir -p $(WS_DIR)/rpms; cp *.rpm $(WS_DIR)/rpms; fi
|
|
$(WS_DIR)/release.sh
|
|
|
|
# Developer target for quick iteration. Your have to build your local tree on
|
|
# the same OS than the container image, and with the correct --prefix=/usr
|
|
.PHONY: ws-container-build-tree
|
|
ws-container-build-tree: cockpit-tls cockpit-ws cockpit-wsinstance-factory cockpit-certificate-ensure dist/static/manifest.json
|
|
mkdir -p $(WS_DIR)/overlay/usr/libexec $(WS_DIR)/overlay/usr/share/cockpit
|
|
cp cockpit-tls cockpit-ws cockpit-wsinstance-factory cockpit-certificate-ensure $(WS_DIR)/overlay/usr/libexec/
|
|
cp -r dist/* $(WS_DIR)/overlay/usr/share/cockpit/
|
|
podman build -t quay.io/cockpit/ws $(WS_DIR)
|
|
|
|
|
|
ws-container-shell:
|
|
podman run -ti --rm --publish=9001:9090 quay.io/cockpit/ws /bin/bash
|