This shows you the differences between two versions of the page.
| Both sides previous revision Previous revision Next revision | Previous revision | ||
|
dido:public:s_cli:05_contents:01_prt:04_dll:appcontainer [2021/04/01 22:22] nick |
dido:public:s_cli:05_contents:01_prt:04_dll:appcontainer [2021/06/15 13:55] (current) nick |
||
|---|---|---|---|
| Line 1: | Line 1: | ||
| - | ====== 2.1.6 DEFINE CONTAINER Command ====== | + | ====== 4.7 Container ====== |
| - | [[dido:public:s_cli:05_contents:01_dll | Return to DidoDLL]] | + | [[dido:public:s_cli:05_contents:01_prt:04_dll:start| Return to DidoDLL]] |
| ===== Purpose ===== | ===== Purpose ===== | ||
| - | [[dido:public:s_cli:05_contents:01_dll:appcontainer | Return to Top]] | + | [[dido:public:s_cli:05_contents:01_prt:04_dll:appcontainer| Return to Top]] |
| ===== Syntax ===== | ===== Syntax ===== | ||
| - | [[dido:public:s_cli:05_contents:01_dll:appcontainer | Return to Top]] | + | [[dido:public:s_cli:05_contents:01_prt:04_dll:appcontainer| Return to Top]] |
| + | |||
| + | <code> | ||
| + | DEFINE CONTAINER <ContaineName> AS | ||
| + | IMAGE = <ImageName> | ||
| + | COMMAND = <ShellCommand> | ||
| + | ARGUMENTS = <ArgmentListText> | ||
| + | </code> | ||
| ==== Where ==== | ==== Where ==== | ||
| - | [[dido:public:s_cli:05_contents:01_dll:appcontainer | Return to Top]] | + | [[dido:public:s_cli:05_contents:01_prt:04_dll:appcontainer| Return to Top]] |
| + | * **ContaineName** | ||
| + | * **ImageName** | ||
| + | * **ShellCommand** | ||
| + | * **ArgmentListText** | ||
| ==== Examples ==== | ==== Examples ==== | ||
| - | [[dido:public:s_cli:05_contents:01_dll:appcontainer | Return to Top]] | + | [[dido:public:s_cli:05_contents:01_prt:04_dll:appcontainer| Return to Top]] |
| <code sql | Examples of Defining Container in DidoLL> | <code sql | Examples of Defining Container in DidoLL> | ||
| - | | + | |
| + | DEFINE CONTAINER PeerDiscovery AS | ||
| + | image = PeerDiscovery | ||
| + | command = ["/bin/sh", "-c"] | ||
| + | arguments = "set -e -x; while true; do python /etc/peer_discovery.py; " | ||
| + | "sleep 15; done"; | ||
| + | |||
| + | DEFINE CONTAINER fullNode AS | ||
| + | image = fullNode | ||
| + | command = ["/bin/sh", "-c"] | ||
| + | arguments = "set -e -x; while true; do python /etc/peer_discovery.py; " | ||
| + | "sleep 15; done" | ||
| </code> | </code> | ||