-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add ARGoS service to docker-compose.yml and create Bash script for x1…
…1docker
- Loading branch information
Showing
2 changed files
with
30 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
#!/usr/bin/env bash | ||
|
||
# Shell script necessary to initialize x11docker before starting containers | ||
# with Docker Compose. See https://github.com/mviereck/x11docker/issues/227 | ||
|
||
function exit_handler() { | ||
echo Cleaning up x11docker | ||
x11docker --cleanup --quiet | ||
} | ||
|
||
trap exit_handler EXIT | ||
|
||
echo Initializing x11docker | ||
read x_env < <(x11docker --hostdisplay --showenv --quiet) | ||
echo $x_env | ||
export $x_env | ||
|
||
echo Running Docker Compose | ||
docker-compose up |