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
{{ message }}
This repository was archived by the owner on Sep 17, 2024. It is now read-only.
Copy file name to clipboardExpand all lines: cli/README.md
+12Lines changed: 12 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -18,6 +18,12 @@ $ ./op run service mysql -v 5.7.12
18
18
$ ./op run profile metricbeat
19
19
```
20
20
21
+
To pass in multiple services at once:
22
+
23
+
```
24
+
$ ./op run profile fleet -s elastic-agent:8.0.0-SNAPSHOT -s debian-systemd:latest
25
+
```
26
+
21
27
The tool also provides a way to stop those running services:
22
28
```sh
23
29
# if you are in the Go development world
@@ -31,6 +37,12 @@ $ ./op stop service mysql -v 5.7.12
31
37
$ ./op stop profile metricbeat
32
38
```
33
39
40
+
Additionally, you can pass in environment options that will be passed along to the docker-compose configurations during deployment through use of the `-e` flag.
profileSubcommand.Flags().StringVarP(&versionToRun, "profileVersion", "v", "latest", "Sets the profile version to run")
41
-
profileSubcommand.Flags().StringVarP(&servicesToRun, "withServices", "s", "", "Sets a list of comma-separated services to be depoyed alongside the profile")
42
+
profileSubcommand.Flags().StringSliceVarP(&servicesToRun, "withServices", "s", nil, "List of services to deploy with profile, in the format of docker <image>:<tag>")
43
+
profileSubcommand.Flags().StringToStringVarP(&environmentItems, "environment", "e", nil, "A list of environment key/value pairs to pass into deployment, in the format of ENV=VAR")
0 commit comments