|
@@ -3,8 +3,10 @@
|
|
|
ctr=$(buildah from alpine:latest)
|
|
ctr=$(buildah from alpine:latest)
|
|
|
mnt=$(buildah mount "$ctr")
|
|
mnt=$(buildah mount "$ctr")
|
|
|
|
|
|
|
|
-mkdir -p "$mnt/tmp/tcms"
|
|
|
|
|
|
|
+mkdir -p "$mnt/srv/tcms" "$mnt/tmp/tcms"
|
|
|
|
|
+cp -R bin/ config/ data/ www/ lib "$mnt/srv/tcms";
|
|
|
cp Makefile.PL "$mnt/tmp/tcms/"
|
|
cp Makefile.PL "$mnt/tmp/tcms/"
|
|
|
|
|
+make -C "$mnt/srv/tcms" --makefile "$PWD/Makefile" prereq-frontend reset-dummy-data
|
|
|
|
|
|
|
|
buildah run -- $ctr sh <<EOF
|
|
buildah run -- $ctr sh <<EOF
|
|
|
apk update
|
|
apk update
|
|
@@ -18,16 +20,13 @@ EOF
|
|
|
|
|
|
|
|
rm -rf \
|
|
rm -rf \
|
|
|
"$mnt/tmp/tcms" \
|
|
"$mnt/tmp/tcms" \
|
|
|
- "$mnt/var/cache" \
|
|
|
|
|
|
|
+ "$mnt/var/cache/*" \
|
|
|
"$mnt/root/.cpanm" \
|
|
"$mnt/root/.cpanm" \
|
|
|
"$mnt/usr/share/man/" \
|
|
"$mnt/usr/share/man/" \
|
|
|
"$mnt/usr/local/share/man"
|
|
"$mnt/usr/local/share/man"
|
|
|
|
|
|
|
|
find "$mnt/usr/lib/perl5" -name '*.pod' -delete
|
|
find "$mnt/usr/lib/perl5" -name '*.pod' -delete
|
|
|
|
|
|
|
|
-mkdir -p "$mnt/srv/tcms"
|
|
|
|
|
-cp -R bin/ config/ data/ www/ lib "$mnt/srv/tcms";
|
|
|
|
|
-
|
|
|
|
|
buildah config \
|
|
buildah config \
|
|
|
--workingdir "/srv/tcms/" \
|
|
--workingdir "/srv/tcms/" \
|
|
|
--entrypoint '["/usr/local/bin/starman"]' \
|
|
--entrypoint '["/usr/local/bin/starman"]' \
|