1 Star 0 Fork 1

foxflying/genesis

forked from Gitee 极速下载/genesis 
加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
docker-entrypoint.sh 894 Bytes
一键复制 编辑 原始数据 按行查看 历史
#!/bin/bash
export GENESIS_DIR="${GENESIR_DIR:-/genesis}"
export OUTPUT_DIR="${OUTPUT_DIR:-/output}"
set -ex
echo "Performing build of Genesis Framework"
cd $GENESIS_DIR
echo "===> Building Genesis Scripts RPM"
pushd $GENESIS_DIR/bootcd/rpms/genesis_scripts
rpmbuild --define '_tmppath /tmp' --define '_sourcedir src' --define '_srcrpmdir .' --nodeps -bs genesis_scripts.spec
rpmbuild --rebuild genesis_scripts-*.src.rpm
cp /root/rpmbuild/RPMS/noarch/genesis_scripts-*.noarch.rpm $GENESIS_DIR/bootcd/rpms/
popd
echo ":: Built RPM:"
ls -la $GENESIS_DIR/bootcd/rpms/
echo "===> Building Genesis Image"
cd bootcd
# this is necessary to avoid devicemapper syncronization raceconditions creating
# devices in livecdcreator. Just use the old fallback logic when run in a container:
# https://www.redhat.com/archives/lvm-devel/2012-November/msg00069.html
export DM_DISABLE_UDEV=1
./create-image.sh
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
Ruby
1
https://gitee.com/foxflying/genesis.git
git@gitee.com:foxflying/genesis.git
foxflying
genesis
genesis
master

搜索帮助

0d507c66 1850385 C8b1a773 1850385