File: Makefile.am

package info (click to toggle)
cockpit 355-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 311,568 kB
  • sloc: javascript: 774,787; python: 40,655; ansic: 35,157; cpp: 11,141; sh: 3,512; makefile: 580; xml: 261
file content (21 lines) | stat: -rw-r--r-- 947 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
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
	podman build -t quay.io/cockpit/ws $(WS_DIR)

# 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