changelog shortlog graph tags branches changeset files revisions annotate raw help

Mercurial > infra > pod / skelfile

changeset 38: c4d56de0ee1a
parent: 28492e359d92
child: c0ed453c44f9
author: Richard Westhaver <ellis@rwest.io>
date: Fri, 13 Sep 2024 20:17:53 -0400
permissions: -rw-r--r--
description: cleanup
1 ;;; pod @ 2024-06-21.02:30:12 -*- mode:skel; -*-
2 :name "pod"
3 :author "Richard Westhaver"
4 :version "0.1.0"
5 :vc (:hg "https://vc.compiler.company/comp/pod")
6 :components
7 ((:containerfile "scratch")
8  (:containerfile "alpine")
9  (:containerfile "alpine-worker")
10  (:containerfile "alpine-infra")
11  (:containerfile "archlinux")
12  (:containerfile "dev")
13  (:containerfile "worker")
14  (:containerfile "infra")
15  (:containerfile "operator")
16  (:containerfile "web")
17  (:containerfile "vc")
18  (:containerfile "ubuntu")
19  (:containerfile "mail")
20  (:containerfile "amazon")
21  (:containerfile "archriscv"))
22 :rules
23 ((web ()
24  (:build () #$podman build -f Containerfile.web -t web --no-cache$#)
25  (:run ()
26  #$podman run --name web --replace -dt -p 8080:8080 -p 2020:2020 \
27  --volume /srv/http:/home/web/www \
28  web$#))
29  (infra ()
30  (:build () #$podman build -f Containerfile.infra -t infra --no-cache$#)
31  (:run (infra-sbcl infra-stumpwm infra-emacs infra-rocksdb)))
32  (infra-sbcl () #$podman run --replace -dt -v /opt/stash:/usr/local/share/stash:z --name infra-sbcl infra \
33  -c "skel build sbcl && skel dist sbcl && sudo cp .stash/sbcl.tar.zst /usr/local/share/stash"$#)
34  (infra-stumpwm () #$podman run --replace -dt -v /opt/stash:/usr/local/share/stash:z --name infra-sbcl infra \
35  -c "skel build stumpwm && skel dist stumpwm && sudo cp .stash/stumpwm.tar.zst /usr/local/share/stash"$#)
36  (infra-emacs () #$podman run --replace -dt -v /opt/stash:/usr/local/share/stash:z --name infra-emacs infra \
37  -c "skel build emacs && skel dist emacs && sudo cp .stash/emacs.tar.zst /usr/local/share/stash"$#)
38  (infra-rocksdb () #$podman run --replace -dt -v /opt/stash:/usr/local/share/stash:z --name infra-rocksdb infra \
39  -c "skel build rocksdb && skel dist rocksdb && sudo cp .stash/rocksdb.tar.zst /usr/local/share/stash"$#)
40  (operator ()
41  (:build () #$podman build -f Containerfile.operator -t operator --no-cache$#)
42  (:run () #$podman run --replace -dt --name operator \
43  -v /opt/stash:/usr/local/share/stash:z \
44  -v /opt/store:/usr/local/share/store:z \
45  operator$#))
46  (vc ()
47  (:build () #$podman build -f Containerfile.vc -t vc --no-cache$#)
48  (:run () #$podman run --name vc --replace -dt -v $HOME/src:/home/vc/src:z -p 8888:8888 vc$#))
49  ;; (git ()
50  ;; (:build () #$podman build -f Containerfile.git -t git --no-cache$#)
51  ;; (:run () #$podman run --name git --replace -dt -v $HOME/src/packy:/home/vc/packy:z -p 8889:80 git$#))
52  (dev ()
53  (:build () #$podman build -f Containerfile.dev -t dev --no-cache$#)
54  (:run () #$podman run --name dev --replace -dt dev$#))
55  (archlinux ()
56  (:build () #$podman build -f Containerfile.archlinux -t archlinux --no-cache$#)
57  (:run () #$podman run --name archlinux --replace -dt archlinux$#)
58  )
59  (mail ()
60  (:build () #$podman build -f Containerfile.mail -t mail --no-cache$#)
61  (:run () #$podman run --name mail --replace -dt mail$#))
62  (alpine-infra ()
63  (:build () #$podman build -f Containerfile.alpine-infra -t alpine-infra --replace$#)
64  (:run () #$podman run --name alpine-infra --replace -dt alpine-infra$#))
65  (worker ()
66  (:build () #$podman build -f Containerfile.worker -t worker --no-cache$#)
67  (:run () #$podman run --name worker --replace -dt worker$#)))