Check out the guideline here: https://github.com/aliyun/aliyun-cli ( using Google translator)
Install python pip if necessary
curl https://bootstrap.pypa.io/get-pip.py | sudo python
Install aliyuncli
| FROM golang:1.5.2 | |
| MAINTAINER Lucas Käldström <lucas.kaldstrom@hotmail.co.uk> | |
| # Enable cgo cross-compilation for armel | |
| RUN echo "deb http://emdebian.org/tools/debian/ jessie main" > /etc/apt/sources.list.d/crosstools.list \ | |
| && curl -s http://emdebian.org/tools/debian/emdebian-toolchain-archive.key | apt-key add - \ | |
| && dpkg --add-architecture armel \ | |
| && apt-get update \ | |
| && apt-get install -y build-essential crossbuild-essential-armel rsync upx |
| # Add the following 'help' target to your Makefile | |
| # And add help text after each target name starting with '\#\#' | |
| help: ## Show this help. | |
| @fgrep -h "##" $(MAKEFILE_LIST) | fgrep -v fgrep | sed -e 's/\\$$//' | sed -e 's/##//' | |
| # Everything below is an example | |
| target00: ## This message will show up when typing 'make help' | |
| @echo does nothing |
Check out the guideline here: https://github.com/aliyun/aliyun-cli ( using Google translator)
Install python pip if necessary
curl https://bootstrap.pypa.io/get-pip.py | sudo python
Install aliyuncli
| include $(GOROOT)/src/Make.inc | |
| GOFMT=gofmt -spaces=true -tabindent=false -tabwidth=4 | |
| all: | |
| $(GC) jsontest.go | |
| $(LD) -o jsontest.out jsontest.$O | |
| format: | |
| $(GOFMT) -w jsontest.go |
| description "Properly handle haproxy" | |
| start on startup | |
| env PID_PATH=/var/run/haproxy.pid | |
| env BIN_PATH=/usr/sbin/haproxy | |
| script | |
| exec /bin/bash <<EOF | |
| $BIN_PATH -f /etc/haproxy.cfg -D -p $PID_PATH |
| #!/usr/bin/env bash | |
| # | |
| # Install HAProxy | |
| # Script works on Ubuntu 12.04 and 14.04 only | |
| set -e | |
| set -u | |
| set -o pipefail |