Fun with Spring Cloud and microservice
Excellent Blog
Install docker
1
2
3export http_proxy=http://192.168.56.1:21
curl -x 192.168.56.1:21 -sSL https://get.docker.com/gpg | sudo apt-key add -
curl -x 192.168.56.1:21 -sSL https://get.docker.com/ | shClone spring project
1
git clone https://github.com/kbastani/spring-cloud-microservice-example --config "http.proxy=http://192.168.56.1:21"
cd spring-cloud-microservice-example/
Install docker-compose
1
curl -x http://192.168.56.1:21 -L https://github.com/docker/compose/releases/download/1.4.0/docker-compose-`uname -s`-`uname -m` > /usr/local/bin/docker-compose
Install Maven
wget http://apache.communilink.net//maven/maven-3/3.3.3/binaries/apache-maven-3.3.3-bin.tar.gz
set proxy and repository path (shared by user and root) in conf/settings.xmlInstall Gradle
gradle -Dhttp.proxyHost=192.168.56.1 -Dhttp.proxyPort=21 -Dhttps.proxyHost=192.168.56.1 -Dhttps.proxyPort=21 build
Install Java (Refer to http://www.tecmint.com/install-java-jdk-jre-in-linux/ or http://tecadmin.net/install-java-8-on-centos-rhel-and-fedora/)
Download jdk-8u60-linux-x64.gz1
2
3
4sudo update-alternatives --install /usr/bin/java java /home/user/Software/jdk1.8.0_60/bin/java 3
sudo update-alternatives --install /usr/bin/javac javac /home/user/Software/jdk1.8.0_60/bin/javac 3
sudo update-alternatives --set jar /home/user/Software/jdk1.8.0_60/bin/jar
sudo update-alternatives --set javac /home/user/Software/jdk1.8.0_60/bin/javacSetup docker proxy
edit/etc/default/docker
to set proxy (/etc/sysconfig/docker
in CentOS)service docker restart
or1
2sudo HTTP_PROXY=http://192.168.56.1:21/ docker -d &
sudo usermod -aG docker username
Installed software and component
- rover-master (https://github.com/lecram/rover)
- otp_src_18.0 (Erlang)
- rabbitmq_server-3.5.4
- spring-cloud
- https://github.com/callistaenterprise/blog-microservices.git
- https://github.com/bijukunjummen/spring-cloud-ping-pong-sample
- https://github.com/joshlong/service-registration-and-discovery
- https://github.com/paulc4/microservices-demo
- https://github.com/kbastani/spring-cloud-microservice-example
- https://github.com/spring-guides/gs-spring-boot-docker.git
- elinks-0.12-20150916
- Python-2.7.3
- ranger-1.7.1
- torrent
- transmission-2.84
- libevent-2.0.22-stable
- curl-7.44.0
- intltool-0.51.0
- tmux-2.0
- ncurses-6.0
- apache-maven-3.3.3
- git-1.8.5.4
- phpredis
- redis-2.8.21
- ffmpeg_sources
- ffmpeg (git clone)
- x264 (git clone)
- libvorbis-1.3.4 (libvorbis-1.3.4.tar.gz)
- lame-3.99.5 (lame-3.99.5.tar.gz)
- libvpx (git clone)
- libogg-1.3.0 (libogg-1.3.0.tar.gz)
- yasm-1.2.0 (yasm-1.2.0.tar.gz)
- yasm (git clone)
- xvidcore (git clone)
- shadowsocks-libev (https://github.com/shadowsocks/shadowsocks-libev.git)
- jdk1.8.0_60
- magento-sample-data-1.9.1.0
- youtube-dl (https://rg3.github.io/youtube-dl/)
- jq (https://stedolan.github.io/jq/)