-
Notifications
You must be signed in to change notification settings - Fork 0
/
install
executable file
·45 lines (36 loc) · 861 Bytes
/
install
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
#!/bin/bash
set -e
cd $(dirname $0)
# Determine the install dir
if [ -z $1 ]; then
INSTALL_DIR="$HOME/jg_dev_env_vim"
else
INSTALL_DIR=$1
fi
mkdir -p $INSTALL_DIR
echo Install Dir: $INSTALL_DIR
# Build the build environment
cd docker
docker build -f ./centos.dockerfile -t jg-dev-env-build-env:centos ./
# Build the toolset in the build environment
cd ../
docker run -it -v `pwd`:/source -v $INSTALL_DIR:/build_output --entrypoint=/source/docker/build jg-dev-env-build-env:centos
cd $INSTALL_DIR
# for APP_NAME in `ls ./apps`;
# do zip -yr ./apps/$APP_NAME.zip ./apps/$APP_NAME && rm -rf ./apps/$APP_NAME/;
# done
# BASE_FILES="
# ./.bashrc
# ./.bash_profile
# ./install
# ./install.py
# ./scripts
# "
#
# zip -yr ./jg_dev_env.zip $BASE_FILES
#
# rm -rf $BASE_FILES
#
# # Hook it up to the users bashrc
# # cd $INSTALL_DIR
# # ./install