Commit 71b2336f authored by Vladimir Bashkirtsev's avatar Vladimir Bashkirtsev

Initial commit

parents
all: build
cd ../go/go/src/github.com/prometheus/prometheus && install -D -m 755 prometheus /usr/bin/prometheus
cd ../go/go/src/github.com/prometheus/prometheus && install -D -m 755 promtool /usr/bin/promtool
cd ../go/go/src/github.com/prometheus/prometheus && install -D -m 755 tsdb/tsdb /usr/bin/tsdb
rm -rf ../go/go/src/github.com/prometheus
promtool: build
cd ../go/go/src/github.com/prometheus/prometheus && install -D -m 755 promtool /usr/bin/promtool
rm -rf ../go/go/src/github.com/prometheus
build:
dd if=/dev/zero of=swap bs=1048576 count=2048
chmod 600 swap
mkswap swap
swapon swap
mkdir -p ../go/go/src/github.com/prometheus
mkdir -p ../go/gocache
tar xf prometheus-2.19.2.tar.gz -C ../go/go/src/github.com/prometheus
mv ../go/go/src/github.com/prometheus/prometheus-2.19.2 ../go/go/src/github.com/prometheus/prometheus
cd ../go/go/src/github.com/prometheus/prometheus && PATH=$$PATH:/build/packages/go/go/bin GOCACHE=$$(pwd)/../../../../../gocache GOPATH=$$(pwd)/../../../.. $(MAKE) build
-cd ../go/go/src/github.com/prometheus/prometheus && PATH=$$PATH:/build/packages/go/go/bin GOCACHE=$$(pwd)/../../../../../gocache GOPATH=$$(pwd)/../../../.. $(MAKE) test
rm -rf /usr/local/share/.cache
rm -f /usr/local/share/.yarnrc
rm -rf ../go/gocache
swapoff swap
rm -rf swap
bin
/usr/bin/.*
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment