Table of Content
This is new portabledevops deploy script, to faster the portabledevops setup.
- place all-in-one portable customization setting to msys2/cygwin /etc/profile.d
- install docker toolbox locally to msys2/cygwin
setup.sh deploy script
#!/usr/bin/bash # setup.sh - script to deploy or update portabledevops # By Robert Wang # Usage: # launch msys2/cygwin bash shell from cmder or console # cd ~ ; wget -qO- 'https://raw.githubusercontent.com/robertluwang/portabledevops/master/setup.sh' | sh cd ~ chmod 0700 .ssh/id_rsa if [ -d ~/portabledevops ];then rm -r ~/portabledevops fi git clone git@github.com:robertluwang/portabledevops.git cd portabledevops # place the script portabledevops.sh to msys2/cygwin64 /etc/profile.d folder, will be sourced by /etc/profile when launch bash with option '--login -i' dos2unix.exe portabledevops.sh echo cp portabledevops.sh /etc/profile.d/ cp portabledevops.sh /etc/profile.d/ # install docker toolbox locally unzip dockertoolbox.zip mkdir -p /usr/local/bin echo cp dockertoolbox/docker*.exe /usr/local/bin/ cp dockertoolbox/docker*.exe /usr/local/bin/ chmod +x /usr/local/bin/docker*.exe
running log sample
launch msys2/cygwin bash shell from cmder or console
$ cd ~ ; wget -qO- 'https://raw.githubusercontent.com/robertluwang/portabledevops/master/setup.sh' | sh Cloning into 'portabledevops'... remote: Counting objects: 169, done. remote: Compressing objects: 100% (45/45), done. remote: Total 169 (delta 38), reused 18 (delta 18), pack-reused 106 Receiving objects: 100% (169/169), 15.95 MiB | 2.91 MiB/s, done. Resolving deltas: 100% (89/89), done. dos2unix: converting file portabledevops.sh to Unix format... cp portabledevops.sh /etc/profile.d/ Archive: dockertoolbox.zip inflating: dockertoolbox/docker.exe inflating: dockertoolbox/docker-compose.exe inflating: dockertoolbox/docker-machine.exe cp dockertoolbox/docker.exe dockertoolbox/docker-compose.exe dockertoolbox/docker-machine.exe /usr/local/bin/