-
Notifications
You must be signed in to change notification settings - Fork 38
build: install automake 1.16.5 from source in dev container #783
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: develop
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change | ||||||||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
|
@@ -5,7 +5,7 @@ SHELL ["/bin/bash", "-o", "pipefail", "-c"] | |||||||||||||||||||||||||||||||||
| # classpath settings | ||||||||||||||||||||||||||||||||||
| ENV CLASSPATH=:/usr/lib/opensourcecobol4j/libcobj.jar | ||||||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||||||
| # hadolint ignore=DL3041 | ||||||||||||||||||||||||||||||||||
| # hadolint ignore=DL3041,DL3003 | ||||||||||||||||||||||||||||||||||
| RUN dnf update -y \ | ||||||||||||||||||||||||||||||||||
| && dnf install -y --setopt=install_weak_deps=False \ | ||||||||||||||||||||||||||||||||||
| epel-release \ | ||||||||||||||||||||||||||||||||||
|
|
@@ -14,7 +14,6 @@ RUN dnf update -y \ | |||||||||||||||||||||||||||||||||
| make \ | ||||||||||||||||||||||||||||||||||
| bison \ | ||||||||||||||||||||||||||||||||||
| flex \ | ||||||||||||||||||||||||||||||||||
| automake \ | ||||||||||||||||||||||||||||||||||
| autoconf \ | ||||||||||||||||||||||||||||||||||
| diffutils \ | ||||||||||||||||||||||||||||||||||
| gettext \ | ||||||||||||||||||||||||||||||||||
|
|
@@ -24,7 +23,16 @@ RUN dnf update -y \ | |||||||||||||||||||||||||||||||||
| libtool \ | ||||||||||||||||||||||||||||||||||
| gettext-devel \ | ||||||||||||||||||||||||||||||||||
| unzip \ | ||||||||||||||||||||||||||||||||||
| wget \ | ||||||||||||||||||||||||||||||||||
| && dnf clean all \ | ||||||||||||||||||||||||||||||||||
| && rm -rf /var/cache/dnf | ||||||||||||||||||||||||||||||||||
| && rm -rf /var/cache/dnf \ | ||||||||||||||||||||||||||||||||||
| && wget -q https://ftp.gnu.org/gnu/automake/automake-1.16.5.tar.gz \ | ||||||||||||||||||||||||||||||||||
| && tar xzf automake-1.16.5.tar.gz \ | ||||||||||||||||||||||||||||||||||
| && cd automake-1.16.5 \ | ||||||||||||||||||||||||||||||||||
| && ./configure \ | ||||||||||||||||||||||||||||||||||
| && make -j"$(nproc)" \ | ||||||||||||||||||||||||||||||||||
| && make install \ | ||||||||||||||||||||||||||||||||||
| && cd .. \ | ||||||||||||||||||||||||||||||||||
| && rm -rf automake-1.16.5 automake-1.16.5.tar.gz | ||||||||||||||||||||||||||||||||||
|
Comment on lines
+29
to
+36
|
||||||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||||||
|
Comment on lines
+30
to
37
|
||||||||||||||||||||||||||||||||||
| && tar xzf automake-1.16.5.tar.gz \ | |
| && cd automake-1.16.5 \ | |
| && ./configure \ | |
| && make -j"$(nproc)" \ | |
| && make install \ | |
| && cd .. \ | |
| && rm -rf automake-1.16.5 automake-1.16.5.tar.gz | |
| && tar xzf automake-1.16.5.tar.gz | |
| WORKDIR /automake-1.16.5 | |
| RUN ./configure \ | |
| && make -j"$(nproc)" \ | |
| && make install \ | |
| && rm -rf /automake-1.16.5 /automake-1.16.5.tar.gz | |
| WORKDIR / |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -31,4 +31,5 @@ jobs: | |
| make | ||
| make install | ||
| cobj --version | ||
| automake --version | ||
| push: never | ||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This Dockerfile downloads and builds
automake-1.16.5.tar.gzdirectly fromhttps://ftp.gnu.organd executes itsconfigure/makeas root without any checksum or signature verification, which introduces a supply chain risk. If an attacker can compromise or MITM the download host, they can serve a malicious tarball that will be built and installed into the dev container, potentially exfiltrating source code or secrets from developers' environments. To reduce this risk, verify the archive's integrity (e.g., pinned checksum or signature) or rely on a trusted, managed package source instead of an ad-hocwget+build step.