You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+94-9
Original file line number
Diff line number
Diff line change
@@ -1,23 +1,38 @@
1
1
# xr-appmgr-build
2
2
Scripts to build RPMs for use with the XR appmgr.
3
3
4
-
# Building an RPM
4
+
# Building a native RPM
5
5
6
-
Create an`build.yaml` file and add entries for your app
6
+
Create a`build.yaml` file and add entries for your app
7
7
```
8
-
packages:
9
8
- name: "alpine"
10
-
release: "ThinXR_7.3.15" # Release should correspond to a file in release_configs dir
11
-
version: "0.1.0" # Application semantic version
9
+
release: "ThinXR_7.3.15" # Release is the release since when the support for this rpm has started and should correspond to a file in release_configs dir (Not editable)
10
+
target-release: "ThinXR_7.3.15" # Target release if present, RPM name will have this target-release name, else will have above release name (Editable)
11
+
version: "0.1.0" # Application semantic version (Editable)
12
12
sources:
13
-
- name: alpine # Will correspond to the source name on the router
14
-
file: examples/alpine/alpine.tar.gz # Path from xr-appmgr-build root to image
13
+
- name: alpine # Will correspond to the source name on the router (Editable)
14
+
file: examples/alpine/swanagent.tar # Path from xr-appmgr-build root to image (Editable)
15
+
# Tar file must be built with "--platform=linux/x86_64" option specified during docker build
15
16
config-dir:
16
-
- name: alpine-configs # The name of the directory for the app to mount in its docker run opts
17
-
dir: examples/alpine/config
17
+
- name: SwanAgent # The name of the directory for the app to mount in its docker run opts (Editable)
18
+
dir: examples/alpine/config #Not editable
18
19
copy_hostname: true # Copy router hostname into config dir (only useful for eXR platforms)
19
20
copy_ems_cert: true # Copy router ems certificate into config dir
20
21
```
22
+
23
+
# Building a TPA RPM
24
+
Create a `build.yaml` file and add entries for your app
25
+
```
26
+
- name: "partner-alpine" # Prefix "owner-" or "partner-" for TPA apps (Not editable)
27
+
release: "7.10.1" # This is the release since when the support for this rpm has started and should correspond to a file in release_configs dir (Not editable)
28
+
target-release: "7.10.1" # If present, this is the release for rpms to be installed, else above release is used. (Editable)
29
+
version: "3.14" #Editable
30
+
partner-name: "radware" # Needed only for Partner rpms (Editable)
31
+
sources:
32
+
- name: alpine # Name should match source tar file (Editable)
33
+
file: examples/alpine/alpine.tar.gz # File must have "tar.gz" extension (Editable)
34
+
# Tar file must be built with "--platform=linux/x86_64" option specified during docker build
Note that if you specify `copy_ems_cert` you must install the RPM after gRPC is configured (see above). The post-install script requires the ems certificate to have been created at install time or the application will be unable to access it.
46
+
"grpc no-tls config should not be used if copy_ems_cert option is specified"
Create a `build.yaml` file and add entries for your app
65
+
```
66
+
- name: "pscript" #This should not be changed (Not editable)
67
+
release: "24.1.1" # This is the release since when the support for this rpm has started and should correspond to a file in release_configs dir (Not editable)
68
+
target-release: "24.1.1" # If present, RPM name will have this target-release name, else will have above release name (Editable)
69
+
version: "0.1.0" # Application semantic version (Editable)
70
+
sources:
71
+
- name: pscript # Update this with the rpm name to be built (Editable)
72
+
dir: examples/pscript # All the files in this direcotory to be copied to process-script rpm (Editable)
73
+
74
+
```
75
+
Build:
76
+
`./appmgr_build -b examples/alpine/build.yaml`
77
+
78
+
Once the RPM is built, scp it to the router, and install.
0 commit comments