Debian Codegraph @

containers/Makefile.am

raw
1 WS_DIR = $(srcdir)/containers/ws
2
3 CLEANFILES += $(WS_DIR)/rpms $(WS_DIR)/libexec
4
5 ws-container:
6 rm -rf $(WS_DIR)/rpms
7 if [ -e cockpit-bridge-*.rpm ]; then mkdir -p $(WS_DIR)/rpms; cp *.rpm $(WS_DIR)/rpms; fi
8 $(WS_DIR)/release.sh
9
10 # Developer target for quick iteration. Your have to build your local tree on
11 # the same OS than the container image, and with the correct --prefix=/usr
12 .PHONY: ws-container-build-tree
13 ws-container-build-tree: cockpit-tls cockpit-ws cockpit-wsinstance-factory cockpit-certificate-ensure dist/static/manifest.json
14 mkdir -p $(WS_DIR)/overlay/usr/libexec $(WS_DIR)/overlay/usr/share/cockpit
15 cp cockpit-tls cockpit-ws cockpit-wsinstance-factory cockpit-certificate-ensure $(WS_DIR)/overlay/usr/libexec/
16 cp -r dist/* $(WS_DIR)/overlay/usr/share/cockpit/
17 podman build -t quay.io/cockpit/ws $(WS_DIR)
18
19
20 ws-container-shell:
21 podman run -ti --rm --publish=9001:9090 quay.io/cockpit/ws /bin/bash