forked from oxidecomputer/omicron
-
Notifications
You must be signed in to change notification settings - Fork 0
/
package-manifest.toml
186 lines (171 loc) · 7.04 KB
/
package-manifest.toml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
# This manifest describes packages which will be ingested by
# the "omicron-package" tool - instructing how they should be
# build, thrown into a tarball, and installed on the target system.
[package.omicron-sled-agent]
service_name = "sled-agent"
source.type = "local"
source.rust.binary_names = ["sled-agent"]
source.rust.release = true
source.paths = [ { from = "smf/sled-agent", to = "pkg" } ]
output.type = "tarball"
[package.omicron-nexus]
service_name = "nexus"
source.type = "local"
source.rust.binary_names = ["nexus"]
source.rust.release = true
source.paths = [
{ from = "/opt/ooce/pgsql-13/lib/amd64", to = "/opt/ooce/pgsql-13/lib/amd64" },
{ from = "smf/nexus", to = "/var/svc/manifest/site/nexus" },
{ from = "out/console-assets", to = "/var/nexus/static" },
# Note, we could just map the whole "out/certs" directory, but this ensures
# both files exist.
{ from = "out/certs/cert.pem", to = "/var/nexus/certs/cert.pem" },
{ from = "out/certs/key.pem", to = "/var/nexus/certs/key.pem" }
]
output.type = "zone"
setup_hint = """
- Run `./tools/ci_download_console` to download the web console assets
- Run `pkg install library/postgresql-13` to download Postgres libraries
- Run `./tools/create_self_signed_cert.sh` to generate a certificate
"""
[package.oximeter-collector]
service_name = "oximeter"
source.type = "local"
source.rust.binary_names = ["oximeter"]
source.rust.release = true
source.paths = [ { from = "smf/oximeter", to = "/var/svc/manifest/site/oximeter" } ]
output.type = "zone"
[package.clickhouse]
service_name = "clickhouse"
source.type = "local"
source.paths = [
{ from = "out/clickhouse", to = "/opt/oxide/clickhouse" },
{ from = "smf/clickhouse", to = "/var/svc/manifest/site/clickhouse" }
]
output.type = "zone"
setup_hint = "Run `./tools/ci_download_clickhouse` to download the necessary binaries"
[package.cockroachdb]
service_name = "cockroachdb"
source.type = "local"
source.paths = [
{ from = "out/cockroachdb", to = "/opt/oxide/cockroachdb" },
{ from = "common/src/sql", to = "/opt/oxide/cockroachdb/sql" },
{ from = "smf/cockroachdb", to = "/var/svc/manifest/site/cockroachdb" },
]
output.type = "zone"
setup_hint = "Run `./tools/ci_download_cockroachdb` to download the necessary binaries"
[package.internal-dns]
service_name = "internal_dns"
source.type = "local"
source.rust.binary_names = ["dnsadm", "dns-server"]
source.rust.release = true
source.paths = [ { from = "smf/internal-dns", to = "/var/svc/manifest/site/internal_dns" } ]
output.type = "zone"
[package.omicron-gateway]
service_name = "mgs"
source.type = "local"
source.rust.binary_names = ["mgs"]
source.rust.release = true
source.paths = [ { from = "smf/mgs", to = "/var/svc/manifest/site/mgs" } ]
output.type = "zone"
output.intermediate_only = true
# Packages not built within Omicron, but which must be imported.
# Refer to
# https://github.com/oxidecomputer/crucible/blob/main/package/README.md
# for instructions on building this manually.
[package.crucible]
service_name = "crucible"
# To manually override the package source (for example, to test a change in
# both Crucible and Omicron simultaneously):
#
# 1. Build the zone image manually
# 2. Copy the output zone image from crucible/out to omicron/out
# 3. Use source.type = "manual" instead of "prebuilt"
source.type = "prebuilt"
source.repo = "crucible"
source.commit = "144d8dafa41715e00b08a5929cc62140ff0eb561"
# The SHA256 digest is automatically posted to:
# https://buildomat.eng.oxide.computer/public/file/oxidecomputer/crucible/image/<commit>/crucible.sha256.txt
source.sha256 = "2de086b0ba27efc638c88ff46a6d110236c2db92499266eccbd2a3ec28acc693"
output.type = "zone"
# Refer to
# https://github.com/oxidecomputer/propolis/blob/master/package/README.md
# for instructions on building this manually.
[package.propolis-server]
service_name = "propolis-server"
source.type = "prebuilt"
source.repo = "propolis"
source.commit = "e58937fea67aca6bc2d37a3cc50a72291328ae0e"
# The SHA256 digest is automatically posted to:
# https://buildomat.eng.oxide.computer/public/file/oxidecomputer/propolis/image/<commit>/propolis-server.sha256.txt
source.sha256 = "00d11a6f669e9f7caa03963c3bd345f2f3a2e6b4ec0e713f2e1dbf94177b4fa9"
output.type = "zone"
[package.maghemite]
service_name = "mg-ddm"
source.type = "prebuilt"
source.repo = "maghemite"
# Updating the commit hash here currently requires also updating
# `tools/maghemite_openapi_version`. Failing to do so will cause a failure when
# building `ddm-admin-client` (which will instruct you to update
# `tools/maghemite_openapi_version`).
source.commit = "21fd8236c23dc38fea5d1e4c8196be685c251da2"
# The SHA256 digest is automatically posted to:
# https://buildomat.eng.oxide.computer/public/file/oxidecomputer/maghemite/image/<commit>/maghemite.sha256.txt
source.sha256 = "039c9b3e97b0d61012850c1476574742c0cb9274ffa86cfeb15d619854ebacfa"
output.type = "tarball"
[package.dendrite-stub]
service_name = "dendrite"
only_for_targets.switch_variant = "stub"
# To manually override the package source:
#
# 1. Build the zone image manually
# 1a. cd <dendrite tree>
# 1b. cargo build --features=tofino_stub --release
# 1c. cargo xtask dist -o -r --features tofino_stub
# 2. Copy dendrite.tar.gz from dendrite/out to omicron/out
# 3. Use source.type = "manual" instead of "prebuilt"
source.type = "prebuilt"
source.repo = "dendrite"
source.commit = "77e1268141aab830966b18526cffab8f458a28f9"
source.sha256 = "76bab69b6a712e3da11de4aba044c90d86b6d374c8ece9ddda98ef2087541276"
output.type = "zone"
output.intermediate_only = true
[package.dendrite-asic]
service_name = "dendrite"
only_for_targets.switch_variant = "asic"
# To manually override the package source:
#
# 1. Build the zone image manually
# 1a. cd <dendrite tree>
# 1b. cargo build --features=tofino_asic --release
# 1c. cargo xtask dist -o -r --features tofino_asic
# 2. Copy the output zone image from dendrite/out to omicron/out
# 3. Use source.type = "manual" instead of "prebuilt"
source.type = "prebuilt"
source.repo = "dendrite"
source.commit = "77e1268141aab830966b18526cffab8f458a28f9"
source.sha256 = "a402001c2e531af4d8b2416a546d5daacb50c69fb81009c6c5cb74aaad7066ac"
output.type = "zone"
output.intermediate_only = true
# To package and install the asic variant of the switch, do:
#
# $ cargo run --release -p omicron-package -- -t switch_variant=asic package
# $ pfexec ./target/release/omicron-package -t switch_variant=asic install
[package.switch-asic]
service_name = "switch"
only_for_targets.switch_variant = "asic"
source.type = "composite"
source.packages = [ "omicron-gateway.tar.gz", "dendrite-asic.tar.gz" ]
output.type = "zone"
# To package and install the stub variant of the switch, do the following:
#
# - Set the sled agent's configuration option "stub_scrimlet" to "true"
# - Run the following:
# $ cargo run --release -p omicron-package -- -t switch_variant=stub package
# $ pfexec ./target/release/omicron-package -t switch_variant=stub install
[package.switch-stub]
service_name = "switch"
only_for_targets.switch_variant = "stub"
source.type = "composite"
source.packages = [ "omicron-gateway.tar.gz", "dendrite-stub.tar.gz" ]
output.type = "zone"