mirror of https://github.com/Chizi123/Arch-autobuild-repo.git

Chizi123
2019-06-10 48a8a89efe7ebcf280d62e4c221e7362c82c42e7
Working with a chroot environment
2 files modified
3 files added
1 files deleted
1 files renamed
37 ■■■■■ changed files
.gitignore 3 ●●●● patch | view | raw | blame | history
Dockerfile 4 ●●●● patch | view | raw | blame | history
add_package.sh 4 ●●●● patch | view | raw | blame | history
build.sh 9 ●●●●● patch | view | raw | blame | history
build_packages.sh 4 ●●●● patch | view | raw | blame | history
enter_chroot.sh 4 ●●●● patch | view | raw | blame | history
makebuild.sh 9 ●●●●● patch | view | raw | blame | history
.gitignore
@@ -1,2 +1 @@
repo
!repo/build.sh
chroot
Dockerfile
@@ -13,3 +13,7 @@
RUN /usr/sbin/groupadd --system sudo && \
    /usr/sbin/useradd -m --groups sudo user
USER user
RUN cd repo && \
    for i in `find . -maxdepth 1 -not -path '*/\.*' -type d`
do
add_package.sh
New file
@@ -0,0 +1,4 @@
#!/bin/bash
CHDIR=$(dirname "$(realpath $0)")/chroot
$CHDIR/bin/arch-chroot $CHDIR su joel -c "cd /build/repo; git clone $1"
build.sh
File was renamed from repo/build.sh
@@ -34,6 +34,9 @@
    return 0
}
cd $(dirname "$(realpath $0)")
git rm -r x86_64/*.pkg.tar.xz
for d in `find . -maxdepth 1 -not -path '*/\.*' -type d`
do
    if [ "$d" = "./x86_64" ] || [ "$d" = "." ]; then
@@ -50,6 +53,6 @@
cp Chizi123.db.tar.xz x86_64/Chizi123.db
cp Chizi123.files.tar.xz x86_64/Chizi123.files
# git add x86_64
# git commit -m "'$(date +%d/%m/%y-%H:%M)'"
# git push
git add x86_64
git commit -m "'$(date +%d/%m/%y-%H:%M)'"
git push
build_packages.sh
New file
@@ -0,0 +1,4 @@
#!/bin/bash
CHDIR=$(dirname "$(realpath $0)")/chroot
$CHDIR/bin/arch-chroot $CHDIR su joel -c "/build/repo/build.sh"
enter_chroot.sh
New file
@@ -0,0 +1,4 @@
#!/bin/bash
CHDIR=$(dirname "$(realpath $0)")/chroot
$CHDIR/bin/arch-chroot $CHDIR su joel
makebuild.sh
File was deleted