In ~/.profile, assume that golang was installed at /usr/local/go, your own project is at /home/ubuntu/hl, add the following
export GOPATH="/home/ubuntu/hl" export GOROOT="/usr/local/go" PATH="$GOROOT/bin:$GOPATH/bin:$PATH"
export GOPATH="/home/ubuntu/hl" export GOROOT="/usr/local/go" PATH="$GOROOT/bin:$GOPATH/bin:$PATH"
APT::Periodic::Update-Package-Lists "0";Then disable the following services:
systemctl disable apt-daily.timer systemctl disable apt-daily.service
if [ -z "$SSH_AUTH_SOCK" ] ; then eval `ssh-agent -s` ssh-add ~/.ssh/interop fi2. Kill the agent when log out by adding the following in .bash_logout:
trap 'test -n "$SSH_AGENT_PID" && eval `/usr/bin/ssh-agent -k`' 0
1.0 'g' stands for 'gRPC' 1.1 'g' stands for 'good' 1.2 'g' stands for 'green' 1.3 'g' stands for 'gentle' 1.4 'g' stands for 'gregarious'
git diff-tree --no-commit-id --name-only -r $(git log -2 --pretty=format:"%h")
sudo apt-get install docker.ioRemove all docker images
docker rmi $(docker images -a -q)Remove all exited containers and dangling images
docker rm $(docker ps -a -f status=exited -q) docker rmi -f $(docker images -f "dangling=true" -q)Stop all running containers
docker stop $(docker ps -a -q)Connect to a running container
docker exec -it ContaineridOrName bashRun a docker container and interact with the container
docker run -it --rm busyboxNormally a regular user can not run docker because of the permissions, the following command assume that a use group named "docker" has been created during the docker install, then you can the following command to add the current logged in user to the docker group, then refresh the group, the current user will be able to manipulate docker as the root user:
sudo gpasswd -a $USER docker newgrp docker
sudo chmod 666 /var/run/docker.sock
sudo apt-get update sudo apt-get -y install python-dev python-pip libtool libltdl-dev sudo pip install --upgrade pip sudo pip install behave nose docker-compose protobuf couchdb==1.02.Install golang 1.7 or later from https://golang.org/doc/install by first download a version matching your environment, then run the command below:
tar -C /usr/local -xzf go1.8.1.linux-amd64.tar.gz Do not forget adding the path to your PATH env. PATH="/usr/local/go/bin:$PATH"3.Install docker engine:
sudo apt-get install docker.io4.Create a working directory and setup GOPATH:
mkdir -p ~/gopath/src/github.com/hyperledger export GOPATH=~/gopath5.Extract the source code to direct created in step 4:
git clone http://gerrit.hyperledger.org/r/fabric6.Build fabric binaries:
cd $GOPATH/src/github.com/hyperledger make dist-clean all or make individual target like this: make peer
sudo apt-get update sudo apt-get install python-dev python-pip sudo pip install --upgrade pip sudo pip install behave
wget -q -O - https://pkg.jenkins.io/debian/jenkins.io.key \ | sudo apt-key add -2. Then add the following entry in your /etc/apt/sources.list:
deb https://pkg.jenkins.io/debian binary/3. Run the following two commands to install Jenkins:
sudo apt-get update sudo apt-get install jenkins4. If no errors during the above steps, you can find the generated admin password here:
/var/lib/jenkins/secrets/initialAdminPassword5. Point a browser to the following URL and use the admin password found in step 4 to config Jenkins:
http://<<IP_Address_of_server>>:80806. Select some plugins to install from the Jenkins dashboard.