1
0
Fork 0

Add compression and cleanup
continuous-integration/drone/push Build was killed Details

main
Ambrose Chua 2019-01-16 13:39:20 +08:00
parent cec04686cc
commit 8d57f00ae1
14 changed files with 43 additions and 7 deletions

View File

@ -4,6 +4,7 @@ tap "homebrew/cask"
# system
brew "wget"
brew "xz"
brew "upx"
brew "gnupg"
brew "git"
brew "zsh"
@ -28,6 +29,9 @@ brew "pass"
brew "jq"
brew "kubernetes-cli"
tap "minio/stable"
# required for mc:
brew "glib"
brew "s-lang"
brew "minio/stable/mc"
@ -59,7 +63,7 @@ cask "daisydisk"
#cask "karabiner-elements"
cask "switchresx"
#cask "keycastr" # replaced by custom keycastr
cask "whoozle-android-file-transfer-nightly"
cask "whoozle-android-file-transfer"
cask "intel-power-gadget"
#cask "wacom-tablet"
@ -68,7 +72,6 @@ brew "highlight"
brew "pwgen"
brew "ghi"
brew "hadolint"
brew "upx"
#brew "kubernetes-helm"
#brew "terraform"
brew "ykman"
@ -130,7 +133,7 @@ cask "kicad"
# extra lang
brew "sbt"
#cask "android-sdk"
cask "java-beta"
cask "java"
#cask "qt-creator"
# extra apps

View File

@ -18,6 +18,7 @@ RUN ./.install/core.sh
RUN ./.install/sdk.sh
RUN ./.install/sudo.sh
RUN ./.install/archival.sh
RUN ./.install/upx.sh
RUN ./.install/gnupg.sh
RUN ./.install/git.sh
RUN ./.install/zsh.sh

View File

@ -184,6 +184,7 @@ steps:
image: alpine:latest
commands:
- ./.install/core.sh
- ./.install/upx.sh
- ./.install/jq.sh
- ~/.local/bin/jq --version
---
@ -194,6 +195,7 @@ steps:
image: alpine:latest
commands:
- ./.install/core.sh
- ./.install/upx.sh
- ./.install/kubectl.sh
- ~/.local/bin/kubectl version --client
---
@ -204,5 +206,6 @@ steps:
image: alpine:latest
commands:
- ./.install/core.sh
- ./.install/upx.sh
- ./.install/minio-client.sh
- ~/.local/bin/mc version

View File

@ -17,3 +17,6 @@ fi
go get github.com/caddyserver/builds
go run build.go
go install
upx $(go env GOPATH)/bin/caddy
go clean -cache

View File

@ -8,3 +8,5 @@ echo
apk add --no-cache \
docker@community
#upx /usr/bin/docker{,d,-proxy}

View File

@ -34,6 +34,11 @@ rm go.tgz
cd /usr/local/go/src
./make.bash
# cleanup
rm -rf \
/usr/local/go/pkg/bootstrap
/usr/local/go/pkg/obj
# symlink into /usr/local/bin
ln -s /usr/local/go/bin/* /usr/local/bin/

View File

@ -7,5 +7,5 @@ echo
echo "Installing HTTPie..."
echo
pip3 install --user httpie
pip3 install --no-cache-dir --user httpie

View File

@ -11,4 +11,5 @@ mkdir -p ~/.local/bin
curl -fLo ~/.local/bin/jq \
https://github.com/stedolan/jq/releases/download/jq-$JQ_VERSION/jq-linux64
chmod a+x ~/.local/bin/jq
upx ~/.local/bin/jq

View File

@ -8,6 +8,8 @@ echo "Installing kubectl $KUBECTL_VERSION..."
echo
mkdir -p ~/.local/bin
curl -fLo ~/.local/bin/kubectl https://storage.googleapis.com/kubernetes-release/release/v$KUBECTL_VERSION/bin/linux/amd64/kubectl
curl -fLo ~/.local/bin/kubectl \
https://storage.googleapis.com/kubernetes-release/release/v$KUBECTL_VERSION/bin/linux/amd64/kubectl
chmod a+x ~/.local/bin/kubectl
upx ~/.local/bin/kubectl

View File

@ -11,4 +11,5 @@ mkdir -p ~/.local/bin
curl -fLo ~/.local/bin/mc \
https://dl.minio.io/client/mc/release/linux-amd64/mc
chmod a+x ~/.local/bin/mc
upx ~/.local/bin/mc

View File

@ -44,6 +44,6 @@ make install
cd ..
rm -rf neovim
pip3 install neovim
pip3 install --no-cache-dir neovim
apk del --no-cache .build-deps

View File

@ -8,3 +8,6 @@ echo "Installing packr..."
echo
go get -u github.com/gobuffalo/packr/...
upx $(go env GOPATH)/bin/packr{,2}
go clean -cache

View File

@ -12,6 +12,6 @@ sudo apk add --no-cache --virtual .build-deps \
python3-dev \
linux-headers
pip3 install --user thefuck
pip3 install --no-cache-dir --user thefuck
sudo apk del --no-cache .build-deps

12
.install/upx.sh Executable file
View File

@ -0,0 +1,12 @@
#!/bin/sh
set -e
source ./.versions
echo
echo "Installing UPX..."
echo
apk add --no-cache \
upx