Table of Content
install portable cygwin64
- download cygwin64 from https://www.cygwin.com/setup-x86_64.exe
- move setup-x86_64.exe to L:\portabledevops\cygdev64 folder
- click setup-x86_64.exe
only install wget, choice install folder and package folder to L:\portabledevops\cygdev64
it will install cygwin 64 core package. - click Cygwin.bat , it will init cygwin
setup dev packages
launch bash shell from Cmder
task tab cygdev64: cmd /c "%ConEmuDir%\..\..\..\cygdev64\bin\bash --login -i -new_console:C:"%ConEmuDir%\..\..\..\cygdev64\Cygwin.ico"
-
install apt-cyg
wget raw.github.com/transcode-open/apt-cyg/master/apt-cyg chmod +x apt-cyg mv apt-cyg /usr/local/bin which -a apt-cyg
-
install git, python-devel, gcc-g++, curl, dos2unix, zip, unzip
apt-cyg install git python-devel curl dos2unix zip unzip -
install pip
wget https://bootstrap.pypa.io/get-pip.py python get-pip.py
portable profile setting
clone portabledevops from github and copy all-in-one portable setting profile to /etc/profile.d folder, will be sourced by "bash –login -i"
cd ~ chmod 0700 .ssh/id_rsa git clone git@github.com:robertluwang/portabledevops.git cd portabledevops dos2unix.exe portabledevops.sh cp portabledevops.sh /etc/profile.d/ test by source /etc/profile alias
install docker toolbox locally
unzip dockertoolbox.zip mkdir -p /usr/local/bin cp dockertoolbox/docker*.exe /usr/local/bin/ chmod +x /usr/local/bin/docker*.exe test by which -a docker dm create --driver virtualbox --virtualbox-hostonly-cidr "10.0.10.1/24" cygdemo $ dm ls NAME ACTIVE DRIVER STATE URL SWARM DOCKER ERRORS cygdemo * virtualbox Running tcp://10.0.10.101:2376 v1.12.3 $ docker run -it hello-world Hello from Docker! This message shows that your installation appears to be working correctly.
Until now it is enough for dev env setup for cygwin64.
Below is optional package – ansible installation.
install ansible for cygwin64
* install ansible dependence apt-cyg install openssl openssl-devel libffi-devel vim apt-cyg install python-{jinja2,six,yaml,crypto,cryptography} * install ansible from github cd git clone git@github.com:ansible/ansible.git mkdir /opt mv ansible /opt/ cd /opt/ansible python setup.py install $ which -a ansible /usr/bin/ansible $ ansible --version ansible 2.3.0