Skip to content

Commit 737b75a

Browse files
committed
images: fix and polish the suse image builds
Signed-off-by: Michael Adam <obnox@samba.org>
1 parent a5ed87e commit 737b75a

3 files changed

Lines changed: 39 additions & 26 deletions

File tree

Containerfile.suse

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -18,13 +18,11 @@ COPY common.sh /usr/local/bin/common.sh
1818
RUN chmod +x /usr/local/bin/verify.sh
1919
COPY "${INSTALL_SCRIPT}" /usr/local/bin/install-packages.sh
2020
RUN chmod +x /usr/local/bin/install-packages.sh
21-
# Set a sane PATH during installation.
22-
ENV PATH="/usr/local/bin:/usr/bin:/bin:/usr/local/sbin:/usr/sbin"
23-
# install, fix, and verify in ONE ATOMIC STEP
21+
# Set a sane PATH during installation:
22+
ENV PATH="/usr/local/bin:/usr/bin:/bin:/sbin:/usr/local/sbin:/usr/sbin"
23+
# install and verify in one ATOMIC STEP:
2424
RUN true && \
2525
/usr/local/bin/install-packages.sh && \
26-
echo "Restoring symlinks if broken..." && \
27-
( [ -L /bin ] || (mv /bin/* /usr/bin/ && rm -rf /bin && ln -s usr/bin /bin) ) && \
2826
echo "Verifying binaries before layer commit..." && \
2927
/usr/local/bin/verify.sh && \
3028
echo "your buildbox is ready."

install-packages_suse_c.sh

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
22

33
set -euo pipefail
44

5-
65
zypper install -y git gcc make cmake automake autoconf python3 vim less && \
76
sync
87

install-packages_suse_latex.sh

Lines changed: 36 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -1,25 +1,41 @@
11
#!/usr/bin/env bash
22

3+
set -euo pipefail
4+
5+
zypper install -y git make cmake texlive-beamer \
6+
texlive-dvips \
7+
texlive-amscls \
8+
texlive-amsaddr \
9+
texlive-amsfonts \
10+
texlive-amscdx \
11+
texlive-amslatex-primer \
12+
texlive-amsmath \
13+
texlive-amsrefs \
14+
texlive-amstex \
15+
texlive-xypic \
16+
texlive-bibtex \
17+
texlive-imakeidx \
18+
texlive-makeindex \
19+
texlive-latex-uni8 \
20+
texlive-ginpenc \
21+
texlive-german \
22+
texlive-hyperxmp \
23+
texlive-fancyhdr \
24+
ghostscript vim less dia && \
25+
sync
26+
27+
RC=$?
28+
echo "DONE installing packages"
29+
echo "return code: ${RC}"
30+
31+
if [ ${RC} -eq 0 ]; then
32+
echo "SUCCESSfully installed packages."
33+
else
34+
echo "ERROR installing packages."
35+
fi
36+
37+
38+
exit ${RC}
339

4-
zypper install -y git make cmake texlive-beamer \
5-
texlive-dvips \
6-
texlive-amscls \
7-
texlive-amsaddr \
8-
texlive-amsfonts \
9-
texlive-amscdx \
10-
texlive-amslatex-primer \
11-
texlive-amsmath \
12-
texlive-amsrefs \
13-
texlive-amstex \
14-
texlive-xypic \
15-
texlive-bibtex \
16-
texlive-imakeidx \
17-
texlive-makeindex \
18-
texlive-latex-uni8 \
19-
texlive-ginpenc \
20-
texlive-german \
21-
texlive-hyperxmp \
22-
texlive-fancyhdr \
23-
ghostscript vim less dia
2440

2541

0 commit comments

Comments
 (0)