TT#44058 Add docker files to build GRML image

Add docker file to build tools' images.
Add package list SIPWISE with all the needed packages for deployment.sh.
Add building dirs to gitignore/dist-clean target of Makefile

Building tools and dockerfile were provided by Michael Prokop <mika@grml.org>

Change-Id: I69239cb7b7b4f07edbdb1bd766cb3f125258f890
changes/07/23807/7
Mykola Malkov 7 years ago
parent b1d78cb40c
commit a7658c87d0

5
.gitignore vendored

@ -6,3 +6,8 @@ grml64*.iso.sha1
templates/boot/grub/grub.cfg
templates/boot/isolinux/isolinux.cfg
templates/boot/isolinux/syslinux.cfg
grml_build/grml_cd/
grml_build/grml_chroot/
grml_build/grml_isos/
grml_build/grml_logs/
grml_build/netboot/

@ -32,5 +32,10 @@ dist-clean: clean
rm -rf artifacts
rm -f *.iso
rm -f *.iso.sha1
rm -rf grml_build/grml_cd
rm -rf grml_build/grml_chroot
rm -rf grml_build/grml_isos
rm -rf grml_build/grml_logs
rm -rf grml_build/netboot
.PHONY: clean dist-clean syntaxcheck shellcheck build all script_version

@ -0,0 +1,64 @@
# DOCKER_NAME=grml-build-stretch
FROM docker.mgm.sipwise.com/sipwise-stretch:latest
# Important! Update this no-op ENV variable when this Dockerfile
# is updated with the current date. It will force refresh of all
# of the base images and things like `apt-get update` won't be using
# old cached versions when the Dockerfile is built.
ENV REFRESHED_AT 2018-09-08
RUN apt-get update && apt-get install --assume-yes \
bc \
bzip2 \
dosfstools \
fai-client \
fai-server \
git \
grml2usb \
isolinux \
isomd5sum \
kmod \
memtest86+ \
mksh \
moreutils \
mtools \
pciutils \
rsync \
squashfs-tools \
sudo \
syslinux \
xorriso
RUN echo "./grml-live -s buster -a amd64 -c GRMLBASE,SIPWISE,AMD64 -t /code/grml-live/templates/ -o /grml/ -r grml-sipwise -v 0.42" >/root/.bash_history
RUN echo "export LIVE_CONF=/code/grml-live/etc/grml/grml-live.conf" >>/root/.bash_history
RUN echo "export SCRIPTS_DIRECTORY=/code/grml-live/scripts" >>/root/.bash_history
RUN echo "export GRML_FAI_CONFIG=/code/grml-live/etc/grml/fai" >>/root/.bash_history
RUN echo "cp /deployment-iso/grml_build/package_config/SIPWISE /code/grml-live/etc/grml/fai/config/package_config/SIPWISE" >>/root/.bash_history
WORKDIR /code/
RUN git clone https://github.com/grml/grml-live
WORKDIR /code/grml-live
### Usage instructions #############################################################################
## Build docker image:
#
# docker build --tag="grml-sipwise" -f grml_build/Dockerfile
#
## Build GRML image:
#
# mkdir -p grml/
# docker run --rm -i -t --privileged -v deployment-iso.git:/deployment-iso/ -v $(pwd)/grml:/grml/ grml-sipwise
#
## inside docker container (also available in shell history):
#
# export GRML_FAI_CONFIG=$(pwd)/etc/grml/fai
# export SCRIPTS_DIRECTORY=$(pwd)/scripts
# export LIVE_CONF=$(pwd)/etc/grml/grml-live.conf
# cp /deployment-iso/grml_build/package_config/SIPWISE /code/grml-live/etc/grml/fai/config/package_config/SIPWISE
# ./grml-live -s buster -a amd64 -c GRMLBASE,SIPWISE,AMD64 -t $(pwd)/templates/ -o /grml/ -r grml-sipwise -v 0.42
#
## A successfull run results in ISO file in /grml/grml_isos/ (inside container),
## available via volume folder also outside of docker container ($pwd/grml/grml_isos/).
#
### Usage instructions #############################################################################

@ -0,0 +1,74 @@
PACKAGES install
apt
augeas-tools
bash
binutils
bridge-utils
bsdmainutils
buffer
coreutils
cpio
cpufrequtils
diffutils
disktype
dmraid
dmsetup
dos2unix
dosfstools
e2fsprogs
ed
ethtool
findutils
gdisk
git
grml-quickconfig-standard
htop
ifenslave
ifupdown
imvirt
iproute2
iptstate
iputils-ping
isc-dhcp-client
isomd5sum
iw
ldnsutils
libnss-myhostname
linux-image-amd64-grml
locales
lsof
lsscsi
mawk
mount
mtools
mtr-tiny
netbase
netcat-openbsd
net-tools
ntpdate
nwipe
parted
partimage
passwd
patch
procps
psmisc
rpcbind
screen
sed
smartmontools
sudo
tar
tcpdump
telnet
tzdata
unp
unzip
util-linux
vlan
wget
whois
wipe
zip
zsh
Loading…
Cancel
Save