diff --git a/container/nginx-gitweb/build b/container/nginx-gitweb/build new file mode 100755 index 0000000000000000000000000000000000000000..a4ead4ea5d331a53e8186477c3856bd7fabee60c --- /dev/null +++ b/container/nginx-gitweb/build @@ -0,0 +1,11 @@ +#!/bin/sh +# SPDX-License-Identifier: MulanPSL-2.0+ +# Copyright (c) 2020 Huawei Technologies Co., Ltd. All rights reserved. + +. ../defconfig.sh + +docker_skip_rebuild "fraoustin/gitweb" + +git clone https://github.com/fraoustin/gitweb ./ + +docker build --no-cache -t fraoustin/gitweb . diff --git a/container/nginx-gitweb/start b/container/nginx-gitweb/start new file mode 100755 index 0000000000000000000000000000000000000000..4090d1141f9b20dc1ab5cda8fd6f4b1342f2e826 --- /dev/null +++ b/container/nginx-gitweb/start @@ -0,0 +1,26 @@ +#!/bin/bash +# SPDX-License-Identifier: MulanPSL-2.0+ +# Copyright (c) 2020 Huawei Technologies Co., Ltd. All rights reserved. + +. $CCI_SRC/container/defconfig.sh + +start_pod + +docker_rm gitweb + +cmd=( + docker run + -d + -e "CONTAINER_TIMEZONE=Europe/Paris" + -e "GITPROJECT=test" + -e "GITUSER=gituser" + -e "GITPASSWORD=gitpassword" + -v /var/lib/git:/var/lib/git + --name gitweb + -p 80:80 + fraoustin/gitweb +) + +"${cmd[@]}" + +