Skip to content

Commit

Permalink
wip
Browse files Browse the repository at this point in the history
  • Loading branch information
klaxalk committed Dec 3, 2024
1 parent 8da1110 commit d0ad6a3
Show file tree
Hide file tree
Showing 4 changed files with 15 additions and 8 deletions.
15 changes: 11 additions & 4 deletions docs/10-prerequisities/32-portainer/50-example-stacks.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,13 +8,19 @@ description: Example Portainer stacks (compose sessions)

Stacks are **docker compose sessions** within portainer.
As in vanilla docker, stacks are defined by a [compose file](/docs/prerequisities/docker/compose-sessions).

![](./fig/stack.png)

Moreover, a set of environment varibles is defined _by hand_ in Portainer, which can define how the session behave.

![](./fig/environment_variables.png)

## Example simulation session

An example simulation session is located at [mrs_docker/tree/master/compose/1.5.0/portainer](https://github.com/ctu-mrs/mrs_docker/tree/master/compose/1.5.0/portainer).
Custom configs for the MRS UAV System are supposed to be packed into a transport docker image.
The subfolder `custom_configs` containes the example custom cofigs and scripts for build an image that is going to unload the configs during the runtime for the running containers.

Custom configs (and other _shared data_ for all the running containers) for the MRS UAV System are supposed to be packed into a transport docker image.
The subfolder `shared_data` containes the example shared data and scripts for build an image that is going to unload the configs during the runtime for the running containers.

<details>
<summary>Compose file</summary>
Expand Down Expand Up @@ -215,8 +221,9 @@ DISPLAY=:0
## Example realworld UAV session

An example realworld session is located at [mrs_docker/tree/master/compose/1.5.0/portainer](https://github.com/ctu-mrs/mrs_docker/tree/master/compose/1.5.0/portainer).
Custom configs for the MRS UAV System are supposed to be packed into a transport docker image.
The subfolder `custom_configs` containes the example custom cofigs and scripts for build an image that is going to unload the configs during the runtime for the running containers.

Custom configs (and other _shared data_ for all the running containers) for the MRS UAV System are supposed to be packed into a transport docker image.
The subfolder `shared_data` containes the example shared data and scripts for build an image that is going to unload the configs during the runtime for the running containers.

<details>
<summary>Compose file</summary>
Expand Down
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
8 changes: 4 additions & 4 deletions docs/10-prerequisities/40-tmux.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,14 +6,14 @@ description: Tmux terminal multiplexer

# Tmux terminal multiplexer

Tmux is a command-line utility that allows splitting a terminal to multiple panels and creating windows (tabs).
[Tmux](https://github.com/tmux/tmux) is a command-line utility that allows splitting a terminal to multiple panels and creating windows (tabs).
It is similar to, e.g., Terminator, but runs entirely in the command line.
Thus it can be used remotely over ssh.
It is scriptable, which makes it ideal for automating processes, where multiple programs are launches simultaneously.

* [https://github.com/tmux/tmux](https://github.com/tmux/tmux)
* We compile tmux 3.0a from sources.
* List of basic key bindings for our particular setup can be found here: [https://github.com/klaxalk/linux-setup/wiki/tmux](https://github.com/klaxalk/linux-setup/wiki/tmux)
We utilize tmux for deployment of the MRS system when the system is *installed natively*.

* List of basic key bindings for our particular setup can be found here: [https://github.com/ctu-mrs/mrs_uav_shell_additions/blob/master/package/etc/ctu-mrs/tmux.conf](https://github.com/ctu-mrs/mrs_uav_shell_additions/blob/master/package/etc/ctu-mrs/tmux.conf)
* The key bindings should be familiar to those using Vim.

Checkout out our [Cheatsheet](https://github.com/ctu-mrs/mrs_cheatsheet) for some useful tips.
Expand Down

0 comments on commit d0ad6a3

Please sign in to comment.