Skip to content
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

Suggestions #9

Merged
merged 1 commit into from Mar 1, 2024
Merged

Suggestions #9

merged 1 commit into from Mar 1, 2024

Conversation

erlend-aasland
Copy link
Contributor

No description provided.

Comment on lines +9 to +16
RUN apk upgrade && \
apk add \
alpine-sdk \
autoconf \
automake \
autoconf-archive \
libtool \
pkgconfig
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

See https://docs.docker.com/develop/develop-images/instructions/#apt-get

Why is pkgconfig and alpine-sdk required? Is it because we build GNU Autoconf from scratch later?

Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes :)


VOLUME /src
WORKDIR /src

ADD entry.sh /
CMD ["/entry.sh"]
CMD ["/entry.sh"]
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ooops, this was unintentional (I blame the GitHub UI editor)

Comment on lines +16 to +21
if [ "$#" = "0" ]; then
echo "Rebuilding configure script using $(autoconf --version | head -n 1)"
exec gosu autoreconf -ivf -Werror $@
fi

exec "$@"
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think it can be nice to be able to run with arbitrary commands. For example:

$ docker run --rm -v$PWD:/src ghcr.io/corona10/cpython_autoconf:272-final autoconf --version

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Also, gosu is perhaps overkill, but you never know. We may have to install it explicitly, though.

@corona10 corona10 merged commit a29cabd into corona10:main Mar 1, 2024
@erlend-aasland erlend-aasland deleted the proposed-update branch March 1, 2024 23:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants