File tree 3 files changed +27
-16
lines changed
3 files changed +27
-16
lines changed Original file line number Diff line number Diff line change @@ -6,15 +6,19 @@ LABEL org.opencontainers.image.authors="Donghee Na"
6
6
LABEL org.opencontainers.image.title="autoconf 2.72 container for CPython"
7
7
LABEL org.opencontainers.image.description="Container image with autoconf 2.72 tools to regenerate Python's configure script."
8
8
9
- RUN apk upgrade
10
- RUN apk add autoconf automake autoconf-archive libtool pkgconfig alpine-sdk
11
- RUN wget https://ftp.gnu.org/gnu/autoconf/autoconf-2.72.tar.gz
12
- RUN tar -zxvf autoconf-2.72.tar.gz
9
+ RUN apk upgrade && \
10
+ apk add \
11
+ alpine-sdk \
12
+ autoconf \
13
+ automake \
14
+ autoconf-archive \
15
+ libtool \
16
+ pkgconfig
17
+ RUN curl https://ftp.gnu.org/gnu/autoconf/autoconf-2.72.tar.gz | tar -zxvf -
13
18
RUN cd autoconf-2.72 && ./configure && make && make install
14
- RUN autoconf -V | grep -q "autoconf (GNU Autoconf) 2.72"
15
19
16
20
VOLUME /src
17
21
WORKDIR /src
18
22
19
23
ADD entry.sh /
20
- CMD ["/entry.sh" ]
24
+ CMD ["/entry.sh" ]
Original file line number Diff line number Diff line change 1
- # cpython_autoconf
2
- - Container image with autotools to regenerate Python's configure script.
1
+ # CPython Autoconf
2
+
3
+ - Container image with GNU Autotools to regenerate CPython's ` configure ` script.
3
4
- Fork from https://github.com/tiran/cpython_autoconf
4
5
5
6
## Fedora, CentOS and other SELinux-enabled systems with podman
6
7
7
8
``` shell
8
- $ cd cpython
9
- $ podman run --rm --pull=always -v$( pwd) :/src:Z ghcr.io/corona10/cpython_autoconf:271
9
+ $ podman run --rm --pull=always -v$( pwd) :/src:Z ghcr.io/corona10/cpython_autoconf:272
10
10
```
11
11
12
12
## Arch, Debian, Gentoo, Ubuntu
13
13
14
14
``` shell
15
- $ cd cpython
16
- $ podman run --rm --pull=always -v$( pwd) :/src ghcr.io/corona10/cpython_autoconf:271
15
+ $ podman run --rm --pull=always -v$( pwd) :/src ghcr.io/corona10/cpython_autoconf:272
17
16
```
17
+
18
+ ## macOS and Windows
19
+
20
+ ``` shell
21
+ $ docker run --rm --pull=always -v.:/src ghcr.io/corona10/cpython_autoconf:272
22
+ ```
Original file line number Diff line number Diff line change @@ -13,7 +13,9 @@ if [ ! -e ${SENTINEL} ]; then
13
13
exit 2
14
14
fi
15
15
16
- echo " Rebuilding configure script"
17
- cd $SRC
18
- autoreconf -ivf -Werror $@
19
- echo " Done"
16
+ if [ " $# " = " 0" ]; then
17
+ echo " Rebuilding configure script using $( autoconf --version | head -n 1) "
18
+ exec gosu autoreconf -ivf -Werror $@
19
+ fi
20
+
21
+ exec " $@ "
You can’t perform that action at this time.
0 commit comments