File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -18,13 +18,11 @@ COPY common.sh /usr/local/bin/common.sh
1818RUN chmod +x /usr/local/bin/verify.sh
1919COPY "${INSTALL_SCRIPT}" /usr/local/bin/install-packages.sh
2020RUN 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:
2424RUN 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) ) && \
2826echo "Verifying binaries before layer commit..." && \
2927/usr/local/bin/verify.sh && \
3028echo "your buildbox is ready."
Original file line number Diff line number Diff line change 22
33set -euo pipefail
44
5-
65 zypper install -y git gcc make cmake automake autoconf python3 vim less && \
76 sync
87
Original file line number Diff line number Diff line change 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
You can’t perform that action at this time.
0 commit comments