diff --git a/prepare-branch.sh b/alpine/prepare-branch.sh similarity index 100% rename from prepare-branch.sh rename to alpine/prepare-branch.sh diff --git a/build-script/debian-bookworm_pt1.sh b/build-script/debian-bookworm_pt1.sh new file mode 100644 index 0000000..26dd7c9 --- /dev/null +++ b/build-script/debian-bookworm_pt1.sh @@ -0,0 +1,59 @@ +#!/bin/bash +# Copyright (c) 2018 fithwum +# All rights reserved + +RELEASE=stable + +echo " " +echo "INFO ! Downloading other parts of the script if needed." +if [ -e /debian-bookworm_pt2.sh ] + then + echo "INFO ! debian-bookworm_pt2.sh found ... will not download." + else + echo " " + echo "WARNING ! debian-bookworm_pt2.sh not found ... will download new copy." + wget --no-cache https://gitlab.fithwum.tech/fithwum/base-image/-/raw/master/build-script/debian-bookworm_pt2.sh -O /debian-bookworm_pt2.sh + chmod +x debian-bookworm_pt2.sh +fi +if [ -e /debian-bookworm_pt3.sh ] + then + echo "INFO ! debian-bookworm_pt3.sh found ... will not download." + else + echo " " + echo "WARNING ! debian-bookworm_pt3.sh not found ... will download new copy." + wget --no-cache https://gitlab.fithwum.tech/fithwum/base-image/-/raw/master/build-script/debian-bookworm_pt3.sh -O /debian-bookworm_pt3.sh + chmod +x debian-bookworm_pt3.sh +fi +sleep 1 +echo " " +echo "INFO ! Getting system updates." +apt-get -y update +apt-get -y upgrade +apt-get -y dist-upgrade +apt autoremove -y +echo " " +echo "INFO ! Installing debootstrap,ftp-upload,bash,dirmngr,curl." +sleep 1 +apt-get install -y debootstrap ftp-upload bash dirmngr curl +sleep 1 +echo " " +echo "INFO ! Downloading debian & selected packages." +debootstrap --force-check-gpg --variant=minbase --components=main,contrib,non-free --include=dirmngr,apt-transport-https,bash,software-properties-common,ca-certificates,wget,curl,nano --arch=amd64 bookworm /debian-bookworm http://deb.debian.org/debian/ +echo " " +echo "INFO ! Filesystem size uncompressed." +sleep 1 +du --human-readable --summarize debian-bookworm +sleep 5 +echo " " +echo "INFO ! Mounting folders for root." +mount --bind /dev debian-bookworm/dev +mount --bind /dev/pts debian-bookworm/dev/pts +mount --bind /proc debian-bookworm/proc +mount --bind /sys debian-bookworm/sys +sleep 1 +cp -v debian-bookworm_pt2.sh /debian-bookworm +echo " " +echo "INFO ! Changeing to new root." +sleep 1 +chroot debian-bookworm +exit diff --git a/build-script/debian-bookworm_pt2.sh b/build-script/debian-bookworm_pt2.sh new file mode 100644 index 0000000..a608c3c --- /dev/null +++ b/build-script/debian-bookworm_pt2.sh @@ -0,0 +1,20 @@ +#!/bin/bash +# Copyright (c) 2018 fithwum +# All rights reserved + +echo " " +echo "APT::Get::Assume-Yes \"true\";" | tee /etc/apt/apt.conf.d/10-assume_yes +sleep 1 +echo " " +echo "INFO ! Removeing unnecessary packages." +apt-get remove --allow-remove-essential pinentry-curses whiptail kmod iptables iproute2 dmidecode +sleep 1 +echo " " +echo "INFO ! Cleanup." +apt-get clean +spt --fix-broken install +find /var/lib/apt/lists/ -maxdepth 2 -type f -delete +sleep 1 +echo " " +echo "INFO ! Type "exit" and reboot for final steps." +exit diff --git a/build-script/debian-bookworm_pt3.sh b/build-script/debian-bookworm_pt3.sh new file mode 100644 index 0000000..bcdbf16 --- /dev/null +++ b/build-script/debian-bookworm_pt3.sh @@ -0,0 +1,33 @@ +#!/bin/bash +# Copyright (c) 2018 fithwum +# All rights reserved + +echo " " +echo "INFO ! Cleaning up pt2 of script from base image." +rm -frv /debian-bookworm/debian-bookworm_pt2.sh +sleep 1 +echo " " +echo "INFO ! Base image size after cleanup." +du --human-readable --summarize debian-bookworm +sleep 5 +echo " " +echo "INFO ! Creating base image archive." +echo "INFO ! This may take some time." +tar -cjf debian-bookworm.tar.bz2 --directory debian-bookworm . +sleep 1 +echo " " +echo "INFO ! Base image archive." +du --human-readable --summarize debian-bookworm.tar.bz2 +sleep 5 +echo " " +echo "INFO ! Uploading image to ftp server." +ftp-upload -v -h {IP}:{PORT} -u {USER} --password {PASSWORD} -d /mnt/user/FTP debian-bookworm.tar.bz2 +sleep 1 +echo " " +echo "INFO ! Removing temp files." +rm -fr debian-bookworm +rm -frv debian-bookworm.tar.bz2 +echo " " +echo "INFO ! Done." +echo " " +exit diff --git a/build-script/debian-bullseye_pt1.sh b/build-script/debian-bullseye_pt1.sh new file mode 100644 index 0000000..49a1ec3 --- /dev/null +++ b/build-script/debian-bullseye_pt1.sh @@ -0,0 +1,59 @@ +#!/bin/bash +# Copyright (c) 2018 fithwum +# All rights reserved + +RELEASE=stable + +echo " " +echo "INFO ! Downloading other parts of the script if needed." +if [ -e /debian-bullseye_pt2.sh ] + then + echo "INFO ! debian-bullseye_pt2.sh found ... will not download." + else + echo " " + echo "WARNING ! debian-bullseye_pt2.sh not found ... will download new copy." + wget --no-cache https://gitlab.fithwum.tech/fithwum/base-image/-/raw/master/build-script/debian-bullseye_pt2.sh -O /debian-bullseye_pt2.sh + chmod +x debian-bullseye_pt2.sh +fi +if [ -e /debian-bullseye_pt3.sh ] + then + echo "INFO ! debian-bullseye_pt3.sh found ... will not download." + else + echo " " + echo "WARNING ! debian-bullseye_pt3.sh not found ... will download new copy." + wget --no-cache https://gitlab.fithwum.tech/fithwum/base-image/-/raw/master/build-script/debian-bullseye_pt3.sh -O /debian-bullseye_pt3.sh + chmod +x debian-bullseye_pt3.sh +fi +sleep 1 +echo " " +echo "INFO ! Getting system updates." +apt-get -y update +apt-get -y upgrade +apt-get -y dist-upgrade +apt autoremove -y +echo " " +echo "INFO ! Installing debootstrap,ftp-upload,bash,dirmngr,curl." +sleep 1 +apt-get install -y debootstrap ftp-upload bash dirmngr curl +sleep 1 +echo " " +echo "INFO ! Downloading debian & selected packages." +debootstrap --keyring /etc/apt/trusted.gpg.d/debian-archive-bullseye-stable.gpg --force-check-gpg --variant=minbase --components=main,contrib,non-free --include=dirmngr,apt-transport-https,bash,software-properties-common,ca-certificates,wget,curl,nano --arch=amd64 bullseye /debian-bullseye http://deb.debian.org/debian/ +echo " " +echo "INFO ! Filesystem size uncompressed." +sleep 1 +du --human-readable --summarize debian-bullseye +sleep 5 +echo " " +echo "INFO ! Mounting folders for root." +mount --bind /dev debian-bullseye/dev +mount --bind /dev/pts debian-bullseye/dev/pts +mount --bind /proc debian-bullseye/proc +mount --bind /sys debian-bullseye/sys +sleep 1 +cp -v debian-bullseye_pt2.sh /debian-bullseye +echo " " +echo "INFO ! Changeing to new root." +sleep 1 +chroot debian-bullseye +exit diff --git a/build-script/debian-bullseye_pt2.sh b/build-script/debian-bullseye_pt2.sh new file mode 100644 index 0000000..70f72c2 --- /dev/null +++ b/build-script/debian-bullseye_pt2.sh @@ -0,0 +1,19 @@ +#!/bin/bash +# Copyright (c) 2018 fithwum +# All rights reserved + +echo " " +echo "APT::Get::Assume-Yes \"true\";" | tee /etc/apt/apt.conf.d/10-assume_yes +sleep 1 +echo " " +echo "INFO ! Removeing unnecessary packages." +apt-get remove --allow-remove-essential pinentry-curses whiptail kmod iptables iproute2 dmidecode +sleep 1 +echo " " +echo "INFO ! Cleanup." +apt-get clean +find /var/lib/apt/lists/ -maxdepth 2 -type f -delete +sleep 1 +echo " " +echo "INFO ! Type "exit" and reboot for final steps." +exit diff --git a/build-script/debian-bullseye_pt3.sh b/build-script/debian-bullseye_pt3.sh new file mode 100644 index 0000000..1176315 --- /dev/null +++ b/build-script/debian-bullseye_pt3.sh @@ -0,0 +1,33 @@ +#!/bin/bash +# Copyright (c) 2018 fithwum +# All rights reserved + +echo " " +echo "INFO ! Cleaning up pt2 of script from base image." +rm -frv /debian-bullseye/debian-bullseye_pt2.sh +sleep 1 +echo " " +echo "INFO ! Base image size after cleanup." +du --human-readable --summarize debian-bullseye +sleep 5 +echo " " +echo "INFO ! Creating base image archive." +echo "INFO ! This may take some time." +tar -cjf debian-bullseye.tar.bz2 --directory debian-bullseye . +sleep 1 +echo " " +echo "INFO ! Base image archive." +du --human-readable --summarize debian-bullseye.tar.bz2 +sleep 5 +echo " " +echo "INFO ! Uploading image to ftp server." +ftp-upload -v -h {IP}:{PORT} -u {USER} --password {PASSWORD} -d /mnt/user/FTP debian-bullseye.tar.bz2 +sleep 1 +echo " " +echo "INFO ! Removing temp files." +rm -fr debian-bullseye +rm -frv debian-bullseye.tar.bz2 +echo " " +echo "INFO ! Done." +echo " " +exit diff --git a/build-script/debian-buster_pt1.sh b/build-script/debian-buster_pt1.sh new file mode 100644 index 0000000..5e693ef --- /dev/null +++ b/build-script/debian-buster_pt1.sh @@ -0,0 +1,59 @@ +#!/bin/bash +# Copyright (c) 2018 fithwum +# All rights reserved + +RELEASE=stable + +echo " " +echo "INFO ! Downloading other parts of the script if needed." +if [ -e /debian-buster_pt2.sh ] + then + echo "INFO ! debian-buster_pt2.sh found ... will not download." + else + echo " " + echo "WARNING ! debian-buster_pt2.sh not found ... will download new copy." + wget --no-cache https://gitlab.fithwum.tech/fithwum/debian-base/-/raw/master/build-script/debian-buster_pt2.sh -O /debian-buster_pt2.sh + chmod +x debian-buster_pt2.sh +fi +if [ -e /debian-buster_pt3.sh ] + then + echo "INFO ! debian-buster_pt3.sh found ... will not download." + else + echo " " + echo "WARNING ! debian-buster_pt3.sh not found ... will download new copy." + wget --no-cache https://gitlab.fithwum.tech/fithwum/base-image/-/raw/master/build-script/debian-buster_pt3.sh -O /debian-buster_pt3.sh + chmod +x debian-buster_pt3.sh +fi +sleep 1 +echo " " +echo "INFO ! Getting system updates." +apt-get -y update +apt-get -y upgrade +apt-get -y dist-upgrade +apt autoremove -y +echo " " +echo "INFO ! Installing debootstrap,ftp-upload,bash,dirmngr,curl." +sleep 1 +apt-get install -y debootstrap ftp-upload bash dirmngr curl +sleep 1 +echo " " +echo "INFO ! Downloading debian & selected packages." +debootstrap --keyring /etc/apt/trusted.gpg.d/debian-archive-buster-stable.gpg --force-check-gpg --variant=minbase --components=main,contrib,non-free --include=dirmngr,apt-transport-https,bash,software-properties-common,ca-certificates,wget,curl,nano --arch=amd64 buster /debian-buster http://deb.debian.org/debian/ +echo " " +echo "INFO ! Filesystem size uncompressed." +sleep 1 +du --human-readable --summarize debian-buster +sleep 5 +echo " " +echo "INFO ! Mounting folders for root." +mount --bind /dev debian-buster/dev +mount --bind /dev/pts debian-buster/dev/pts +mount --bind /proc debian-buster/proc +mount --bind /sys debian-buster/sys +sleep 1 +cp -v debian-buster_pt2.sh /debian-buster +echo " " +echo "INFO ! Changeing to new root." +sleep 1 +chroot debian-buster +exit diff --git a/build-script/debian-buster_pt2.sh b/build-script/debian-buster_pt2.sh new file mode 100644 index 0000000..70f72c2 --- /dev/null +++ b/build-script/debian-buster_pt2.sh @@ -0,0 +1,19 @@ +#!/bin/bash +# Copyright (c) 2018 fithwum +# All rights reserved + +echo " " +echo "APT::Get::Assume-Yes \"true\";" | tee /etc/apt/apt.conf.d/10-assume_yes +sleep 1 +echo " " +echo "INFO ! Removeing unnecessary packages." +apt-get remove --allow-remove-essential pinentry-curses whiptail kmod iptables iproute2 dmidecode +sleep 1 +echo " " +echo "INFO ! Cleanup." +apt-get clean +find /var/lib/apt/lists/ -maxdepth 2 -type f -delete +sleep 1 +echo " " +echo "INFO ! Type "exit" and reboot for final steps." +exit diff --git a/build-script/debian-buster_pt3.sh b/build-script/debian-buster_pt3.sh new file mode 100644 index 0000000..ec006c2 --- /dev/null +++ b/build-script/debian-buster_pt3.sh @@ -0,0 +1,33 @@ +#!/bin/bash +# Copyright (c) 2018 fithwum +# All rights reserved + +echo " " +echo "INFO ! Cleaning up pt2 of script from base image." +rm -frv /debian-buster/debian-buster_pt2.sh +sleep 1 +echo " " +echo "INFO ! Base image size after cleanup." +du --human-readable --summarize debian-buster +sleep 5 +echo " " +echo "INFO ! Creating base image archive." +echo "INFO ! This may take some time." +tar -cjf debian-buster.tar.bz2 --directory debian-buster . +sleep 1 +echo " " +echo "INFO ! Base image archive." +du --human-readable --summarize debian-buster.tar.bz2 +sleep 5 +echo " " +echo "INFO ! Uploading image to ftp server." +ftp-upload -v -h {IP}:{PORT} -u {USER} --password {PASSWORD} -d /mnt/user/FTP debian-buster.tar.bz2 +sleep 1 +echo " " +echo "INFO ! Removing temp files." +rm -fr debian-buster +rm -frv debian-buster.tar.bz2 +echo " " +echo "INFO ! Done." +echo " " +exit diff --git a/debian/bookworm/.pipeline.yml b/debian/bookworm/.pipeline.yml new file mode 100644 index 0000000..24b8968 --- /dev/null +++ b/debian/bookworm/.pipeline.yml @@ -0,0 +1,18 @@ +variables: + IMAGE_TAG: "debian-bookworm" + DOCKER_HOST: "" + DOCKER_DRIVER: overlay2 + +build_image: + image: docker:24.0.7 + services: + - docker:24.0.7-dind-rootless + variables: + DOCKER_TLS_CERTDIR: "" + GIT_SSL_NO_VERIFY: true + before_script: + - docker login $CI_REGISTRY -u $CI_REGISTRY_USER -p $CI_REGISTRY_PASSWORD + script: + - cd "$CI_PROJECT_DIR/debian/bookworm/" + - docker build -t $CI_REGISTRY/fithwum/base-image/$IMAGE_NAME:$IMAGE_TAG . + - docker push -a $CI_REGISTRY/fithwum/base-image/$IMAGE_NAME diff --git a/debian/bookworm/Dockerfile b/debian/bookworm/Dockerfile new file mode 100644 index 0000000..1b7fad3 --- /dev/null +++ b/debian/bookworm/Dockerfile @@ -0,0 +1,4 @@ +FROM scratch +LABEL maintainer "fithwum" +ADD /debian-bookworm.tar.bz2 / +CMD ["/bin/bash"] \ No newline at end of file diff --git a/debian/bookworm/debian-bookworm.tar.bz2 b/debian/bookworm/debian-bookworm.tar.bz2 new file mode 100644 index 0000000..a6db7a1 Binary files /dev/null and b/debian/bookworm/debian-bookworm.tar.bz2 differ diff --git a/debian/bullseye/.pipeline.yml b/debian/bullseye/.pipeline.yml new file mode 100644 index 0000000..b71b498 --- /dev/null +++ b/debian/bullseye/.pipeline.yml @@ -0,0 +1,18 @@ +variables: + IMAGE_TAG: "debian-bullseye" + DOCKER_HOST: "" + DOCKER_DRIVER: overlay2 + +build_image: + image: docker:24.0.7 + services: + - docker:24.0.7-dind-rootless + variables: + DOCKER_TLS_CERTDIR: "" + GIT_SSL_NO_VERIFY: true + before_script: + - docker login $CI_REGISTRY -u $CI_REGISTRY_USER -p $CI_REGISTRY_PASSWORD + script: + - cd "$CI_PROJECT_DIR/debian/bullseye/" + - docker build -t $CI_REGISTRY/fithwum/base-image/$IMAGE_NAME:$IMAGE_TAG . + - docker push -a $CI_REGISTRY/fithwum/base-image/$IMAGE_NAME diff --git a/debian/bullseye/Dockerfile b/debian/bullseye/Dockerfile new file mode 100644 index 0000000..07da3cf --- /dev/null +++ b/debian/bullseye/Dockerfile @@ -0,0 +1,4 @@ +FROM scratch +LABEL maintainer "fithwum" +ADD /debian-bullseye.tar.bz2 / +CMD ["/bin/bash"] \ No newline at end of file diff --git a/debian/bullseye/debian-bullseye.tar.bz2 b/debian/bullseye/debian-bullseye.tar.bz2 new file mode 100644 index 0000000..e435663 Binary files /dev/null and b/debian/bullseye/debian-bullseye.tar.bz2 differ diff --git a/debian/buster/.pipeline.yml b/debian/buster/.pipeline.yml new file mode 100644 index 0000000..209cd4a --- /dev/null +++ b/debian/buster/.pipeline.yml @@ -0,0 +1,18 @@ +variables: + IMAGE_TAG: "debian-buster" + DOCKER_HOST: "" + DOCKER_DRIVER: overlay2 + +build_image: + image: docker:24.0.7 + services: + - docker:24.0.7-dind-rootless + variables: + DOCKER_TLS_CERTDIR: "" + GIT_SSL_NO_VERIFY: true + before_script: + - docker login $CI_REGISTRY -u $CI_REGISTRY_USER -p $CI_REGISTRY_PASSWORD + script: + - cd "$CI_PROJECT_DIR/debian/buster/" + - docker build -t $CI_REGISTRY/fithwum/base-image/$IMAGE_NAME:$IMAGE_TAG . + - docker push -a $CI_REGISTRY/fithwum/base-image/$IMAGE_NAME diff --git a/debian/buster/Dockerfile b/debian/buster/Dockerfile new file mode 100644 index 0000000..8b4f7cd --- /dev/null +++ b/debian/buster/Dockerfile @@ -0,0 +1,4 @@ +FROM scratch +LABEL maintainer "fithwum" +ADD /debian-buster.tar.bz2 / +CMD ["/bin/bash"] \ No newline at end of file diff --git a/debian/buster/debian-buster.tar.bz2 b/debian/buster/debian-buster.tar.bz2 new file mode 100644 index 0000000..a2053f8 Binary files /dev/null and b/debian/buster/debian-buster.tar.bz2 differ