Browse Source

new: full docker-for-mac support

Signed-off-by: Valentin Lab <valentin.lab@kalysto.org>
master
Valentin Lab 5 years ago
parent
commit
b30938c40f
  1. 32
      README.org
  2. 5
      src/install.sh

32
README.org

@ -82,11 +82,28 @@ https://docs.docker.com/docker-for-mac/docker-toolbox/
***** Requirements
On MacOSX, you'll need to install homebrew and gnu tools:
On MacOSX, you might need to install homebrew and gnu tools. Try the
deployment section before. Report us your success or not. If it seems
not to work in some way, this could help:
https://www.topbug.net/blog/2013/04/14/install-and-use-gnu-command-line-tools-in-mac-os-x/
#+begin_src sh
## Install homebrew (from: https://brew.sh/)
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install.sh)"
***** TODO Deployment
brew install binutils diffutils findutils gawk gnu-indent \
gnu-sed gnu-tar gnu-which gnutls grep gzip \
wdiff wget bash wget bash \
gpatch less m4 make git openssh python
#+end_src
***** Deployment
#+begin_src sh
curl -sS https://git.myceliandre.fr/Lokavaluto/dev-pack/raw/branch/dev/src/install.sh | bash &&
ln -sf ~"/bin/compose" "/usr/local/bin/compose"
#+end_src
**** Docker Toolbox for mac
@ -162,10 +179,11 @@ This method only works if you are on linux, MacOSX, or Windows WSL2
with docker installed inside WSL2.
You need to create a =compose.yml= that suits your need. You can
create it wherever you want as long as either you launch =compose= in
a sub-directory or you specify the location of the =compose= file with
the =-f COMPOSEFILE= option. Here's a good start, execute these command
in a shell:
create it wherever you want. We would recommend you to create a
sub-directory for your project named "lokavaluto" for instance, and
place the =compose.yml= inside. Here's a good way to create the
compose file, once you are in the correct directory, you can execute
these command in a shell:
#+BEGIN_SRC shell
cat <<EOF > compose.yml

5
src/install.sh

@ -277,6 +277,11 @@ install.wsl2() {
}
install.mac() {
install.linux
}
run() {
OS="$(get_os)"
info "Detected system is '$OS'"

Loading…
Cancel
Save