|
@@ -1,9 +1,5 @@
|
|
|
#!/usr/bin/bash
|
|
#!/usr/bin/bash
|
|
|
|
|
|
|
|
-read -r -d '' START << EOM
|
|
|
|
|
-FROM debian:latest
|
|
|
|
|
-RUN apt update -y
|
|
|
|
|
-EOM
|
|
|
|
|
read -r -d '' END << EOM
|
|
read -r -d '' END << EOM
|
|
|
RUN apt-get clean autoclean
|
|
RUN apt-get clean autoclean
|
|
|
RUN apt-get autoremove --yes
|
|
RUN apt-get autoremove --yes
|
|
@@ -17,6 +13,12 @@ cd langs
|
|
|
|
|
|
|
|
for dir in */
|
|
for dir in */
|
|
|
do
|
|
do
|
|
|
|
|
+ if [ -f "$dir/debian.ver" ]; then
|
|
|
|
|
+ debver="$(cat $dir/debian.ver)"
|
|
|
|
|
+ else
|
|
|
|
|
+ debver="latest"
|
|
|
|
|
+ fi
|
|
|
|
|
+
|
|
|
dir="${dir%*/}"
|
|
dir="${dir%*/}"
|
|
|
|
|
|
|
|
if podman image exists "$dir-runner"; then
|
|
if podman image exists "$dir-runner"; then
|
|
@@ -40,7 +42,8 @@ fi
|
|
|
$run_sh
|
|
$run_sh
|
|
|
" > "Run$dir.sh"
|
|
" > "Run$dir.sh"
|
|
|
|
|
|
|
|
- echo "$START
|
|
|
|
|
|
|
+ echo "FROM debian:$debver
|
|
|
|
|
+RUN apt update -y
|
|
|
$template
|
|
$template
|
|
|
|
|
|
|
|
COPY Run$dir.sh /usr/bin/run
|
|
COPY Run$dir.sh /usr/bin/run
|