Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Sergey Gorbunov
CbmTools
Commits
99ca333e
Commit
99ca333e
authored
Jan 12, 2021
by
Sergey Gorbunov
Browse files
update for mac OsX
parent
344ce3a0
Changes
3
Hide whitespace changes
Inline
Side-by-side
cbmdock/README.md
View file @
99ca333e
...
...
@@ -4,18 +4,23 @@ Instructions:
https://www.docker.com/get-started
== Install X11 ==
For Mac OsX:
1.
install XQuartz
2.
in XQuartz Setting / Security allow connections from network clients (see X11Settings.png)
(Einstellungen / Sicherheit/ Verbindungen von Netzwerk-Clients erlauben)
== Run cbmdockInit.sh script ==
./cbmdockInit.sh
== Re-login, or type
source ~/.baschrc
== Run cbmdock alias. It opens a shell in the container with an actual DISPLAY value ==
== Run a shell in the container with an actual DISPLAY value ==
( This command you run each time you want to enter the container. To exit, type "exit". )
( This command you call each time you want to enter the container. To exit, type "exit". )
cbmdock
...
...
cbmdock/X11Settings.png
0 → 100644
View file @
99ca333e
268 KB
cbmdock/cbmdockInit.sh
View file @
99ca333e
...
...
@@ -36,7 +36,13 @@ docker exec -t --user root ${ContainerName} bash -c "\
# create cbmdock alias on the host. It runs a shell in the container with an actual DISPLAY value
if
[[
`
alias
|
grep
-q
cbmdock
`
]]
then
if
[[
`
uname
-s
`
-eq
Darwin
]]
then
echo
MacOSX detected
echo
"alias cbmdock='docker start "
${
ContainerName
}
"; docker exec -ti -e DISPLAY=host.docker.internal:0 "
${
ContainerName
}
" bash'"
>>
~/.bashrc
else
echo
"alias cbmdock='docker start "
${
ContainerName
}
"; docker exec -ti -e DISPLAY=
\$
DISPLAY "
${
ContainerName
}
" bash'"
>>
~/.bashrc
fi
fi
source
~/.bashrc
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment