forked from MechanicalRock/mechanicalrock-docker
-
Notifications
You must be signed in to change notification settings - Fork 0
/
install.sh
executable file
·57 lines (51 loc) · 1.02 KB
/
install.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
#! /bin/bash
osx='Darwin'
if [[ uname -eq $osx ]]
then
SCRIPT_DIR="${BASH_SOURCE[0]}"
else
SCRIPT_DIR=$(realpath $0)
fi
BASEDIR="$( cd "$(dirname "$SCRIPT_DIR")" ; pwd -P )"
DOCKER_COMPOSE="docker-compose -f $BASEDIR/docker-compose.yml run --rm "
cat <<EOM >$HOME/bin/aws
$DOCKER_COMPOSE aws \$@
EOM
cat <<EOM >$HOME/bin/aws2
$DOCKER_COMPOSE aws2 \$@
EOM
cat <<EOM >$HOME/bin/sam
$DOCKER_COMPOSE sam \$@
EOM
cat <<EOM >$HOME/bin/npm
$DOCKER_COMPOSE npm \$@
EOM
cat <<EOM >$HOME/bin/npx
$DOCKER_COMPOSE npx \$@
EOM
cat <<EOM >$HOME/bin/cfn-lint
$DOCKER_COMPOSE cfn-lint \$@
EOM
cat <<EOM >$HOME/bin/psql
$DOCKER_COMPOSE psql \$@
EOM
cat <<EOM >$HOME/bin/mosh
$DOCKER_COMPOSE mosh \$@
EOM
cat <<EOM >$HOME/bin/cfn-nag
$DOCKER_COMPOSE cfn-nag \$@
EOM
cat <<EOM >$HOME/bin/code
$BASEDIR/vscode/run.sh \$@
EOM
cat <<EOM >$HOME/bin/slack
$DOCKER_COMPOSE slack \$@
EOM
cat <<EOM >$HOME/bin/gimp
$DOCKER_COMPOSE gimp \$@
EOM
cat <<EOM >$HOME/bin/chrome
$DOCKER_COMPOSE chrome \$@
EOM
## THIS LINE SHOULD BE LAST
chmod u+x $HOME/bin/*