1 Star 0 Fork 57

JackChan8/docker

forked from src-openEuler/docker 
加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
apply-patches 1.00 KB
一键复制 编辑 原始数据 按行查看 历史
#!/bin/bash
# Copyright (c) Huawei Technologies Co., Ltd. 2018-2019. All rights reserved.
# Description: This shell script is used to apply patches for the project
# Create: 2019-03-02
set -ex
pkg=docker-ce-18.09.0
cwd=$PWD
src=$cwd/$pkg
tar -xzvf v18.09.0.tar.gz
if [ ! -d patch ];then
tar -xzf patch.tar.gz
fi
cd $src
git init
git add .
git config user.name 'build'
git config user.email '[email protected]'
git commit -m 'init build'
cd $cwd
series=$cwd/series.conf
while IPF= read -r line
do
if [[ "$line" =~ ^patch* ]]; then
echo git apply $cwd/$line
cd $src && git apply $cwd/$line
fi
done <"$series"
cd $cwd
if [ "$1" == "selinux" ]; then
cp -rf $src/components/engine/contrib/selinux-euleros/docker-engine-selinux/* .
else
cp -rf $src/* .
cp -rf VERSION-vendor $cwd/components/cli/
cp -rf VERSION-vendor $cwd/components/engine/
cp -rf git-commit $cwd/components/cli/
cp -rf git-commit $cwd/components/engine/
fi
mv $src/.git $src/git
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/jackchan8/docker.git
[email protected]:jackchan8/docker.git
jackchan8
docker
docker
master

搜索帮助