ofs | hex dump | ascii |
---|
0000 | 89 50 4e 47 0d 0a 1a 0a 00 00 00 0d 49 48 44 52 00 00 02 f9 00 00 02 94 08 02 00 00 00 11 b4 b0 | .PNG........IHDR................ |
0020 | ab 00 00 00 03 73 42 49 54 08 08 08 db e1 4f e0 00 00 00 19 74 45 58 74 53 6f 66 74 77 61 72 65 | .....sBIT.....O.....tEXtSoftware |
0040 | 00 67 6e 6f 6d 65 2d 73 63 72 65 65 6e 73 68 6f 74 ef 03 bf 3e 00 00 20 00 49 44 41 54 78 9c ec | .gnome-screenshot...>....IDATx.. |
0060 | dd 4f 6c 5b 57 9e 2f f8 df 39 e7 9e 4b f2 52 12 f5 87 74 52 72 55 c9 f3 da 9e f7 ac f7 26 7a 3d | .Ol[W./..9..K.R...tRrU.......&z= |
0080 | 2d e3 8d fd 00 6b 11 4d a3 9d 87 b1 17 09 66 ca 18 94 b3 70 2d ec 45 b2 88 6b 91 2c 92 45 b2 28 | -....k.M......f....p-.E..k.,.E.( |
00a0 | 2f ca b5 48 16 c9 a2 8c 41 b9 16 09 06 09 06 f1 a2 dc 78 cf 6e b4 3d 80 85 86 d5 18 c8 78 90 67 | /..H....A.........x.n.=......x.g |
00c0 | 60 75 3f ab 1a 56 62 93 92 48 91 bc 24 ef f9 37 8b 2b fe 91 48 c9 fc 27 89 bc fa 7d 56 b6 44 5d | `u?..Vb..H..$..7.+..H..'...}V.D] |
00e0 | 5e fe 91 ee 97 e7 fc ce ef 10 63 0c 20 84 10 42 08 05 14 3d e8 13 40 08 21 84 10 da 43 98 75 10 | ^.........c....B...=..@.!...C.u. |
0100 | 42 08 21 14 64 d6 41 9f 40 55 32 99 fc ea ab af 00 e0 ca 95 2b 89 44 e2 a0 4f 07 21 84 10 42 41 | B.!.d.A.@U2.........+.D..O.!..BA |
0120 | 40 7a a1 5e 27 9f cf 7f f7 dd 77 77 ee dc a9 7c e5 dc b9 73 6f bf fd 76 34 1a 3d c0 b3 42 08 21 | @z.^'.....ww...|...so..v4.=..B.! |
0140 | 84 50 00 1c 7c d6 b9 7f ff fe ad 5b b7 5c d7 dd f6 75 c7 71 de 7d f7 dd b3 67 cf 1e c8 59 21 84 | .P..|......[.\...u.q.}...g...Y!. |
0160 | 10 42 28 18 0e 32 eb 2c 2e 2e de ba 75 6b 79 79 79 97 db 4c 4c 4c 5c ba 74 69 72 72 72 df ce 0a | .B(..2.,....ukyyy..LLL\.tirrr... |
0180 | 21 84 10 42 41 72 30 59 27 99 4c de ba 75 6b 7e 7e be c9 db 4f 4f 4f 5f ba 74 09 8b 78 10 42 08 | !..BAr0Y'.L..uk~~...OOO_.t..x.B. |
01a0 | 21 d4 aa 83 c9 3a 17 2f 5e 6c f5 47 1c c7 b9 79 f3 e6 4e df 7d fe fd 87 bf fe 66 19 00 80 c7 c6 | !....:./^l.G...y..N.}.....f..... |
01c0 | 4f ce 5c be 7a 71 72 b8 e6 db 8b bf bf f2 d9 3d 38 fb f1 57 57 27 e1 d1 8d 4b bf 9b 4f 9c ff cd | O.\.zqr........=8..WW'...K..O... |
01e0 | 8d 8b c7 1a 1d 82 bf f1 de 97 1f 9d d9 5a 27 b4 f8 fb 2b 9f dd cb 8c 9f ff cd 8d 8b e3 0f 7f f3 | .............Z'...+............. |
0200 | ab 2f 1e 1f bf f2 fb 4f 66 2a b7 79 74 e3 d2 ef e6 45 f5 e6 e3 db 0e 9e 7f fa a7 9b 37 6f cf 2f | ./.....Of*.yt....E..........7o./ |
0220 | bb 3c 7e fc f4 c5 cb 97 ce 1c b5 6b 8f ee ff f8 c4 2f 7e 7b fd c2 51 c8 3f fc cd d5 2f 1e 8b 93 | .<~........k...../~{..Q.?.../... |
0240 | 97 bf fc 64 b6 f6 11 20 84 10 42 a8 3d 7d b3 e6 bc be a0 a7 5e fc e4 e9 d3 13 3c f9 f8 f6 8d 5b | ...d......B.=}......^.....<....[ |
0260 | 0b 5e 8b c7 4f 3f 59 58 01 ce b9 58 5a 58 6a fc b3 2b f7 ef 34 3e ea f0 f1 a9 37 de 38 19 e7 00 | .^..O?YX...XZXj..+..4>....7.8... |
0280 | 10 9b 78 e3 8d 37 4e 4e d4 46 a5 f4 c3 af ae ff 71 6e d9 8d 8d 27 78 e6 c9 bd 2f ae 7f f3 b4 d1 | ..x..7NN.F......qn...'x.../..... |
02a0 | 51 96 e7 16 92 00 de e2 dc 92 68 f0 5d 84 10 42 08 b5 a9 27 d6 9c 4f 4e 4e 4e 4f 4f 47 a3 d1 7c | Q.........h.]..B...'..ONNNOOG..| |
02c0 | 3e 0f 00 fe 3f ee df bf bf 7b 29 4f 1d 7e 6c f6 ca fb d3 0b 9f 5f fd dd dc f2 e2 0a 4c 1d 6b e1 | >...?....{)O.~l......_......L.k. |
02e0 | 67 bd a7 0b 4b 22 76 72 3a f1 78 7e 71 61 19 a6 4e d4 1f 9d 67 e6 fe 34 f7 ce 4c fd cf 9e b8 70 | g...K"vr:.x~qa..N...g..4..L....p |
0300 | ed a3 0b cf bf bf f6 eb 6f 92 27 ce 5f bb 76 66 cb a8 4d 7a fe ce bc 0b f1 37 3f bc f1 ab 49 f7 | ........o.'._.vf..Mz.....7?...I. |
0320 | fe 6f ae 7d f5 f8 fe 9d 27 bf 38 31 65 6f 3f ca f2 dc a3 e4 6c 62 6e f1 d5 91 0e 21 84 10 42 cd | .o.}....'.81eo?.....lbn....!..B. |
0340 | 3b f8 71 1d c7 71 de 79 e7 9d 5b b7 6e 39 8e f3 ed b7 df 7e fb ed b7 8e e3 dc ba 75 eb 9d 77 de | ;.q..q.y..[.n9.....~.......u..w. |
0360 | 71 1c a7 d5 a3 79 2b 4b 2b 2e 80 13 ab 9f 00 ca 2c dc fc f8 e3 8f 3f fe 66 b1 d1 c0 c9 d2 fc 53 | q....y+K+.......,.....?.f......S |
0380 | 01 e3 a7 4e 4f c4 20 b5 b8 f8 bc c1 2d 26 8e 9f 84 c7 77 ee a6 a3 bc a5 13 5a 79 9a 04 70 4e 9c | ...NO.......-&....w......Zy..pN. |
03a0 | 9a b4 01 86 a7 4e 4d 00 b8 2b cf 33 db 6f 15 1b 8f f3 e5 f9 47 73 f3 8b 62 7c 3c de d2 1d 20 84 | .....NM..+.3.o......Gs..b|<..... |
03c0 | 10 42 68 37 07 9f 75 7e fd eb 5f ff fd df ff fd d9 b3 67 f3 f9 fc c4 c4 c4 c4 c4 44 3e 9f 3f 7b | .Bh7..u~.._.......g........D>.?{ |
03e0 | f6 ec a3 47 8f ae 5c b9 d2 ca 91 c4 fc 17 ef be fb d1 ed 65 88 4d 9f 3b d3 a0 d8 25 b3 b2 b4 b4 | ...G..\............e.M.;...%.... |
0400 | b4 b4 d2 68 e0 e4 d9 fc 52 06 e2 c7 26 26 4f 4c 70 58 59 78 92 6e 70 f4 13 d3 53 ce f2 c3 f9 64 | ...h....R...&&OLpXYx.np...S....d |
0420 | 6b 59 07 b6 de 7c 87 09 2a 11 3f 71 1c 96 ee 7c bb e0 4e 4c 4c b4 76 7c 84 10 42 08 ed e6 e0 b3 | kY...|..*.?q...|..NLL.v|..B..... |
0440 | 4e 32 99 8c 46 a3 47 8e 1c 71 5d 97 10 42 08 71 5d f7 c8 91 23 d1 68 b4 50 28 b4 74 a8 f8 c9 b3 | N2..F.G..q]..B.q]...#.h.P(.t.... |
0460 | 6f 9e fb c5 95 4f af 5f 6b 14 75 62 67 3f fe fa eb af bf fe 60 ba 3e ac 24 17 9f ae 00 a4 ee 7c | o....O._k.ubg?......`.>.$......| |
0480 | 72 f5 ab c7 02 c4 d2 c2 62 7d 49 8d 80 13 e7 4e c7 53 4f 96 eb 06 65 76 35 7e 6c 9c 83 fb f4 d1 | r.......b}I....N.SO...ev5~l..... |
04a0 | a2 07 90 5e 78 b4 02 e0 4c 1c 8d d5 1d dc 9e 3c 73 1c 52 a9 cc c4 f4 94 83 05 3b 08 21 84 50 f7 | ...^x...L......<s.R.......;.!.P. |
04c0 | 1c 7c d6 f9 f2 cb 2f 4f 9d 3a f5 e8 d1 a3 44 22 b1 b8 b8 b8 b8 b8 98 48 24 1e 3d 7a 34 39 39 f9 | .|..../O.:....D".......H$.=z499. |
04e0 | e5 97 5f b6 72 24 7e 6c f6 f2 af 2e 5d 98 39 d1 ea 02 a6 fc e2 c2 32 40 fc e4 d9 73 e7 de 9c 9e | .._.r$~l....].9.......2@...s.... |
0500 | e0 20 9e 2e 2c 35 3a fe e4 b9 d9 89 9d 46 66 76 32 7c 7a 76 2a 06 a9 7b d7 af 5d bb f6 e1 cd c7 | ....,5:......Ffv2|zv*..{..]..... |
0520 | 2e 8c cf cc 9e ac 2b d6 01 88 4d 9d 39 ce 61 62 7a 1a d7 d5 23 84 10 42 dd 74 f0 59 07 00 7e fb | ......+...M.9.abz...#..B.t.Y..~. |
0540 | db df be fb ee bb c9 64 72 72 72 72 72 72 32 99 4c be fb ee bb 2d 06 9d 0e 78 8b 0b 4b 02 e2 a7 | .......drrrrrr2.L....-...x..K... |
0560 | 2e 5e bd 74 e9 57 97 cf 1d e7 90 59 9c 7f d6 e8 96 47 67 ce bd d1 e2 14 16 44 cf 5c f9 f0 f2 e9 | .^.t.W.....Y.....Gg......D.\.... |
0580 | 09 27 b3 92 14 b1 93 6f be f7 e1 a5 13 0d a2 0e 40 ec f4 e5 6b 1f 5c 99 3d da ea d9 23 84 10 42 | .'.....o........@...k.\.=...#..B |
05a0 | 68 37 bd d2 5f c7 71 9c 5f ff fa d7 c6 18 42 08 00 fc f6 b7 bf ad 5f 64 fe f5 d7 5f ef d3 f9 21 | h7.._.q._.....B......._d..._...! |
05c0 | 84 10 42 28 28 7a 62 5c 07 00 5c d7 fd ed 6f 7f 1b 8d 46 1d c7 69 18 74 10 42 08 21 84 da d0 13 | ..B((zb\..\...o...F..i.t.B.!.... |
05e0 | fd 75 7c ae eb 7e fa e9 a7 b0 43 db c0 48 24 b2 ef 67 84 10 42 08 a1 be 77 60 fb 61 fd e1 0f 7f | .u|..~....C..H$..g..B...w`.a.... |
0600 | f8 c7 7f fc c7 26 6f ff 57 7f f5 57 ef be fb 2e ee 87 85 10 42 08 a1 56 1d f0 3e e7 7f f8 c3 1f | .....&o.W..W........B..V..>..... |
0620 | fe fc e7 3f ef 72 9b 9f ff fc e7 ef be fb 2e ee 73 8e 10 42 08 a1 f6 1c 64 d6 f1 dd bf 7f ff 0f | ...?.r..........s..B....d....... |
0640 | 7f f8 43 7d 2b 9d 48 24 f2 ee bb ef ce cc 34 d8 94 01 21 84 10 42 a8 49 07 9f 75 00 20 9f cf 7f | ..C}+.H$......4...!..B.I..u..... |
0660 | fb ed b7 7f fb b7 7f 5b f9 ca df fc cd df bc f3 ce 3b d1 68 74 97 9f 42 08 21 84 10 7a a5 9e c8 | .......[.........;.ht..B.!..z... |
0680 | 3a be 64 32 e9 f7 d4 b9 7a f5 2a 96 e6 20 84 10 42 a8 2b 7a 28 eb 20 84 10 42 08 75 5d af f4 d7 | :.d2....z.*.....B.+z(....B.u]... |
06a0 | 41 08 21 84 10 da 0b 98 75 10 42 08 21 14 64 98 75 10 42 08 21 14 64 98 75 10 42 08 21 14 64 98 | A.!.....u.B.!.d.u.B.!.d.u.B.#!/bin/bash
##############################################################################
# Copyright (c) 2016 HUAWEI TECHNOLOGIES CO.,LTD and others.
#
# All rights reserved. This program and the accompanying materials
# are made available under the terms of the Apache License, Version 2.0
# which accompanies this distribution, and is available at
# http://www.apache.org/licenses/LICENSE-2.0
##############################################################################
set -ex
BUILD_PATH=$(cd "$(dirname "$0")"; pwd)
WORK_PATH=$(cd "$(dirname "$0")"/..; pwd)
source $BUILD_PATH/build.conf
function process_env()
{
mkdir -p ${WORK_PATH}/work/repo/ ${WORK_PATH}/work/repo/pip
set +e
sudo docker info
if [[ $? != 0 ]]; then
wget -qO- https://get.docker.com/ | sh
else
echo "docker is already installed!"
fi
set -e
cat <<EOF >${WORK_PATH}/work/repo/cp_repo.sh
#!/bin/bash
set -ex
cp /*.tar.gz /result -f
EOF
sudo apt-get -f install
sudo apt-get install python-yaml -y
sudo apt-get install python-cheetah -y
}
function make_repo()
{
rm -f ${WORK_PATH}/work/repo/install_packages.sh
rm -f ${WORK_PATH}/work/repo/Dockerfile
option=`echo "os-ver:,jh-os:,package-tag:,tmpl:,default-package:, \
special-package:,special-package-script-dir:, \
special-package-dir:,ansible-dir:,special-package-dir" | sed 's/ //g'`
TEMP=`getopt -o h -l $option -n 'make_repo.sh' -- "$@"`
if [ $? != 0 ] ; then echo "Terminating..." >&2 ; exit 1 ; fi
eval set -- "$TEMP"
os_ver=""
jh_os=""
package_tag=""
tmpl=""
default_package=""
special_package=""
special_package_script_dir=""
special_package_dir=""
ansible_dir=""
ansible_dir_tmp=""
while :; do
case "$1" in
--os-ver) os_ver=$2; shift 2;;
--jh-os) jh_os=$2; shift 2;;
--package-tag) package_tag=$2; shift 2;;
--tmpl) tmpl=$2; shift 2;;
--default-package) default_package=$2; shift 2;;
--special-package) special_package=$2; shift 2;;
--special-package-script-dir) special_package_script_dir=$2; shift 2;;
--special-package-dir) special_package_dir=$2; shift 2;;
--ansible-dir) ansible_dir=$2; shift 2;;
--) shift; break;;
*) echo "Internal error! $1" ; exit 1 ;;
esac
done
if [[ -n ${package_tag} && ${package_tag} == "pip" ]]; then
make_pip_repo
return
fi
if [[ -n ${package_tag} && ${package_tag} == "jhenv" && -n ${jh_os} ]]; then
make_jhenv_repo
return
fi
if [[ -z ${os_ver} || -z ${package_tag} ]]; then
echo "parameter is wrong"
exit 1
fi
if [[ ${os_ver} == trusty || ${os_ver} == xenial ]]; then
arch=Debian
os_name=ubuntu
fi
if [[ ${os_ver} =~ rhel[0-9]*$ ]]; then
arch=RedHat
os_name=centos
fi
if [[ -z $arch ]]; then
echo "unsupported ${os_ver} os"
exit 1
fi
dockerfile=Dockerfile
docker_tmpl=${BUILD_PATH}/os/${os_name}/${os_ver}/${package_tag}/${dockerfile}".tmpl"
docker_tag="${os_ver}/${package_tag}"
if [[ -z ${tmpl} ]]; then
if [[ ${os_ver} == xenial ]]; then
tmpl=${BUILD_PATH}/templates/${arch}_${os_ver}_${package_tag}.tmpl
else
tmpl=${BUILD_PATH}/templates/${arch}_${package_tag}.tmpl
fi
fi
if [[ "${ansible_dir}" != "" ]]; then
# generate ansible_dir_tmp
if [[ -d ${WORK_PATH}/work/tmp ]]; then
rm -rf ${WORK_PATH}/work/tmp
fi
mkdir -p ${WORK_PATH}/work/tmp
echo "${ansible_dir}"
cp -rf ${ansible_dir}/roles/ ${WORK_PATH}/work/tmp/
if [[ ${os_ver} == xenial ]]; then
if [[ -d ${ansible_dir}/openstack_${package_tag}_${os_ver}/roles && "`ls ${ansible_dir}/openstack_${package_tag}_${os_ver}`" != "" ]]; then
cp -rf ${ansible_dir}/openstack_${package_tag}_${os_ver}/roles/* ${WORK_PATH}/work/tmp/roles/
fi
else
if [[ -d ${ansible_dir}/openstack_${package_tag}/roles && "`ls ${ansible_dir}/openstack_${package_tag}`" != "" ]]; then
cp -rf ${ansible_dir}/openstack_${package_tag}/roles/* ${WORK_PATH}/work/tmp/roles/
fi
fi
ansible_dir_tmp=${WORK_PATH}/work/tmp/
fi
python ${BUILD_PATH}/gen_ins_pkg_script.py "${ansible_dir_tmp}" "${arch}" "${tmpl}" \
"${docker_tmpl}" "${default_package}" "${special_package}" \
"${WORK_PATH}/work/repo/$arch/script/" \
"${WORK_PATH}/work/repo/$arch/packages/"
rm -rf ${WORK_PATH}/work/repo/$arch
mkdir -p ${WORK_PATH}/work/repo/$arch/{script,packages}
# copy default package script to wokr dir
if [[ -d ${WORK_PATH}/build/arch/$arch ]]; then
cp -rf ${WORK_PATH}/build/arch/$arch/* ${WORK_PATH}/work/repo/$arch/script/
fi
# copy make package script to work dir
if [[ -n $special_package_script_dir && -d $special_package_script_dir ]]; then
cp -rf $special_package_script_dir/* ${WORK_PATH}/work/repo/$arch/script/
fi
# copy special package to work dir
if [[ -n $special_package_dir ]]; then
curl --connect-timeout 10 -o $WORK_PATH/work/repo/$arch/`basename $special_package_dir` $special_package_dir
tar -zxvf $WORK_PATH/work/repo/$arch/`basename $special_package_dir` -C ${WORK_PATH}/work/repo/$arch/packages
fi
# copy docker file to work dir
if [[ -n $os_ver && -d ${WORK_PATH}/build/os/$os_name/$os_ver ]]; then
rm -rf ${WORK_PATH}/work/repo/$os_ver
cp -rf ${WORK_PATH}/build/os/$os_name/$os_ver ${WORK_PATH}/work/repo
fi
# copy centos comps.xml to work dir
if [[ $arch == RedHat && -f ${WORK_PATH}/build/os/$os_name/comps.xml ]]; then
cp -rf ${WORK_PATH}/build/os/$os_name/comps.xml ${WORK_PATH}/work/repo
cp -rf ${WORK_PATH}/build/os/$os_name/ceph_key_release.asc ${WORK_PATH}/work/repo
fi
sudo docker build --no-cache=true -t ${docker_tag} -f ${WORK_PATH}/work/repo/${dockerfile} ${WORK_PATH}/work/repo/
sudo docker run -t -v ${WORK_PATH}/work/repo:/result ${docker_tag}
image_id=$(sudo docker images|grep ${docker_tag}|awk '{print $3}')
sudo docker rmi -f ${image_id}
}
function _try_fetch_dependency()
{
local dir_name=''
if [ -f $1 ];then
case $1 in
*.tar.bz2)
tar xjf $1
dir_name="$(basename $1 .tar.bz2)"
;;
*.tar.gz)
tar xzf $1
dir_name="$(basename $1 .tar.gz)"
;;
*.bz2)
bunzip2 $1
dir_name="$(basename $1 .bz2)"
;;
*.rar)
unrar e $1
dir_name="$(basename $1 .rar)"
;;
*.gz)
gunzip $1
dir_name="$(basename $1 .gz)"
;;
*.tar)
tar xf $1
dir_name="$(basename $1 .tar)"
;;
*.tbz2)
tar xjf $1
dir_name="$(basename $1 .tbz2)"
;;
*.tgz)
tar xzf $1
dir_name="$(basename $1 .tgz)"
;;
*.zip)
gunzip $1
dir_name="$(basename $1 .zip)"
;;
*)
echo "'$1' cannot be extract()"
return
;;
esac
else
echo "'$1' is not a valid file"
return
fi
if [ ! -f ${dir_name}/requirements.txt ]; then
echo "${dir_name}/requirements.txt does not exist"
return
fi
pip install --download=$2 -r ${dir_name}/requirements.txt
rm -rf $dir_name
}
function try_fetch_dependency()
{
cd $3
_try_fetch_dependency $1/$2 $1
cd -
}
function make_pip_repo()
{
source $WORK_PATH/build/build.conf
local pip_path=$WORK_PATH/work/repo/pip
local pip_tmp_path=$WORK_PATH/work/repo/pip_tmp
for i in $SPECIAL_PIP_PACKAGE; do
curl --connect-timeout 10 -o $pip_path/`basename $i` $i
done
mkdir -p $pip_tmp_path
for i in $PIP_PACKAGE; do
curl --connect-timeout 10 -o $pip_path/$(basename $i) $i
try_fetch_dependency $pip_path $(basename $i) $pip_tmp_path
done
rm -rf $pip_tmp_path
cd $WORK_PATH/work/repo; tar -zcvf pip.tar.gz ./pip; cd -
}
function make_jhenv_repo()
{
if [[ ${jh_os} == trusty ]]; then
env_os_name=ubuntu
fi
if [[ ${jh_os} == xenial ]]; then
env_os_name=ubuntu
fi
if [[ ${jh_os} =~ rhel[0-9]*$ ]]; then
env_os_name=centos
fi
if [[ -d ${WORK_PATH}/build/jhenv_template/$env_os_name ]]; then
jh_env_dockerfile=Dockerfile
jh_env_docker_tmpl=${BUILD_PATH}/jhenv_template/$env_os_name/$jh_os/${jh_env_dockerfile}".tmpl"
jh_env_docker_tag="$jh_os/env"
rm -rf ${WORK_PATH}/work/repo/jhenv_template
mkdir ${WORK_PATH}/work/repo/jhenv_template
cp -rf ${WORK_PATH}/build/jhenv_template/$env_os_name/$jh_os/${jh_env_dockerfile} ${WORK_PATH}/work/repo/jhenv_template
cat <<EOF >${WORK_PATH}/work/repo/jhenv_template/cp_env.sh
#!/bin/bash
set -ex
cp /*.tar.gz /env -f
EOF
sudo docker build --no-cache=true -t ${jh_env_docker_tag} -f ${WORK_PATH}/work/repo/jhenv_template/${jh_env_dockerfile} ${WORK_PATH}/work/repo/jhenv_template
sudo docker run -t -v ${WORK_PATH}/work/repo:/env ${jh_env_docker_tag}
image_id=$(sudo docker images|grep ${jh_env_docker_tag}|awk '{print $3}')
sudo docker rmi -f ${image_id}
# cd $WORK_PATH/work/repo; tar -zcvf pip.tar.gz ./pip; cd -
fi
}
function make_all_repo()
{
# for env_os in trusty xanial rhel7; do
# make_repo --package-tag jhenv --jh-os $env_os
# done
# jhenv only support trusty
make_repo --package-tag jhenv --jh-os trusty
make_repo --package-tag pip
make_repo --os-ver rhel7 --package-tag compass \
--tmpl "${WORK_PATH}/build/templates/compass_core.tmpl" \
--default-package "kernel-devel epel-release wget libxml2 glibc gcc perl openssl-libs mkisofs createrepo lsof \
python-yaml python-jinja2 python-paramiko elasticsearch logstash bind-license vim nmap-ncat \
yum cobbler cobbler-web createrepo mkisofs syslinux pykickstart bind rsync fence-agents \
dhcp xinetd tftp-server httpd libselinux-python python-setuptools python-devel mysql-devel \
mysql-server mysql MySQL-python redis mod_wsgi net-tools rabbitmq-server nfs-utils" \
--special-package "kibana jdk"
for opv in juno kilo liberty mitaka; do
make_repo --os-ver trusty --package-tag $opv \
--ansible-dir $WORK_PATH/deploy/adapters/ansible \
--default-package "openssh-server" \
--special-package "openvswitch-switch"
done
for opv in mitaka newton; do
make_repo --os-ver xenial --package-tag $opv \
--ansible-dir $WORK_PATH/deploy/adapters/ansible \
--default-package "openssh-server"
done
make_repo --os-ver rhel7 --package-tag juno \
--ansible-dir $WORK_PATH/deploy/adapters/ansible \
--default-package "rsyslog-7.6.7-1.el7 strace net-tools wget vim openssh-server \
dracut-config-rescue-033-241.el7_1.3 dracut-network-033-241.el7_1.3"
for opv in kilo liberty mitaka; do
make_repo --os-ver rhel7 --package-tag $opv \
--ansible-dir $WORK_PATH/deploy/adapters/ansible \
--default-package "rsyslog-7.6.7-1.el7 strace net-tools wget vim openssh-server \
dracut-config-rescue-033-241.el7_1.5 dracut-network-033-241.el7_1.5"
done
}
function main()
{
process_env
if [[ $# -eq 0 ]]; then
make_all_repo
else
make_repo "$@"
fi
}
main "$@"
|