Skip to content

Commit

Permalink
Bump Bash & Python
Browse files Browse the repository at this point in the history
  • Loading branch information
JRaspass committed Dec 10, 2020
1 parent 155a23e commit 6e36864
Show file tree
Hide file tree
Showing 5 changed files with 13 additions and 14 deletions.
4 changes: 2 additions & 2 deletions docker/dev.Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ COPY --from=codegolf/lang-fortran ["/", "/langs/fortran/rootfs/" ] # 410 M
COPY --from=codegolf/lang-haskell ["/", "/langs/haskell/rootfs/" ] # 332 MiB
COPY --from=codegolf/lang-julia ["/", "/langs/julia/rootfs/" ] # 279 MiB
COPY --from=codegolf/lang-zig ["/", "/langs/zig/rootfs/" ] # 216 MiB
COPY --from=codegolf/lang-python ["/", "/langs/python/rootfs/" ] # 206 MiB
COPY --from=codegolf/lang-python ["/", "/langs/python/rootfs/" ] # 205 MiB
COPY --from=codegolf/lang-powershell ["/", "/langs/powershell/rootfs/"] # 185 MiB
COPY --from=codegolf/lang-c-sharp ["/", "/langs/c-sharp/rootfs/" ] # 128 MiB
COPY --from=codegolf/lang-go ["/", "/langs/go/rootfs/" ] # 110 MiB
Expand All @@ -28,7 +28,7 @@ COPY --from=codegolf/lang-perl ["/", "/langs/perl/rootfs/" ] # 4.04 M
COPY --from=codegolf/lang-j ["/", "/langs/j/rootfs/" ] # 3.3 MiB
COPY --from=codegolf/lang-brainfuck ["/", "/langs/brainfuck/rootfs/" ] # 1.59 MiB
COPY --from=codegolf/lang-c ["/", "/langs/c/rootfs/" ] # 1.58 MiB
COPY --from=codegolf/lang-bash ["/", "/langs/bash/rootfs/" ] # 1.15 MiB
COPY --from=codegolf/lang-bash ["/", "/langs/bash/rootfs/" ] # 1.19 MiB
COPY --from=codegolf/lang-sql ["/", "/langs/sql/rootfs/" ] # 1.03 MiB
COPY --from=codegolf/lang-fish ["/", "/langs/fish/rootfs/" ] # 585 KiB
COPY --from=codegolf/lang-lua ["/", "/langs/lua/rootfs/" ] # 314 KiB
Expand Down
4 changes: 2 additions & 2 deletions docker/live.Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ COPY --from=codegolf/lang-fortran ["/", "/langs/fortran/rootfs/" ] # 410 M
COPY --from=codegolf/lang-haskell ["/", "/langs/haskell/rootfs/" ] # 332 MiB
COPY --from=codegolf/lang-julia ["/", "/langs/julia/rootfs/" ] # 279 MiB
COPY --from=codegolf/lang-zig ["/", "/langs/zig/rootfs/" ] # 216 MiB
COPY --from=codegolf/lang-python ["/", "/langs/python/rootfs/" ] # 206 MiB
COPY --from=codegolf/lang-python ["/", "/langs/python/rootfs/" ] # 205 MiB
COPY --from=codegolf/lang-powershell ["/", "/langs/powershell/rootfs/"] # 185 MiB
COPY --from=codegolf/lang-c-sharp ["/", "/langs/c-sharp/rootfs/" ] # 128 MiB
COPY --from=codegolf/lang-go ["/", "/langs/go/rootfs/" ] # 110 MiB
Expand All @@ -38,7 +38,7 @@ COPY --from=codegolf/lang-perl ["/", "/langs/perl/rootfs/" ] # 4.04 M
COPY --from=codegolf/lang-j ["/", "/langs/j/rootfs/" ] # 3.3 MiB
COPY --from=codegolf/lang-brainfuck ["/", "/langs/brainfuck/rootfs/" ] # 1.59 MiB
COPY --from=codegolf/lang-c ["/", "/langs/c/rootfs/" ] # 1.58 MiB
COPY --from=codegolf/lang-bash ["/", "/langs/bash/rootfs/" ] # 1.15 MiB
COPY --from=codegolf/lang-bash ["/", "/langs/bash/rootfs/" ] # 1.19 MiB
COPY --from=codegolf/lang-sql ["/", "/langs/sql/rootfs/" ] # 1.03 MiB
COPY --from=codegolf/lang-fish ["/", "/langs/fish/rootfs/" ] # 585 KiB
COPY --from=codegolf/lang-lua ["/", "/langs/lua/rootfs/" ] # 314 KiB
Expand Down
8 changes: 4 additions & 4 deletions langs.toml
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,8 @@ v ~<
'''

[Bash]
size = '1.15 MiB'
version = '5.0.18'
size = '1.19 MiB'
version = '5.1.0'
website = '//www.gnu.org/software/bash/'
example = '''
# Printing
Expand Down Expand Up @@ -301,8 +301,8 @@ ForEach ($arg in $args) {
'''

[Python]
size = '206 MiB'
version = '3.9.0'
size = '205 MiB'
version = '3.9.1'
website = '//www.python.org'
example = '''
import sys
Expand Down
7 changes: 3 additions & 4 deletions langs/bash/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,9 @@ RUN mkdir /empty

RUN apk add --no-cache build-base curl patch

RUN curl https://ftp.gnu.org/gnu/bash/bash-5.0.tar.gz | tar xzf - && cd bash-5.0 \
&& curl https://ftp.gnu.org/gnu/bash/bash-5.0-patches/bash50-0[01-18] | patch -p0
RUN curl https://ftp.gnu.org/gnu/bash/bash-5.1.tar.gz | tar xzf -

RUN cd bash-5.0 \
RUN cd bash-5.1 \
&& ./configure \
--disable-command-timing \
--disable-debugger \
Expand All @@ -26,6 +25,6 @@ FROM scratch

COPY --from=0 /empty /proc
COPY --from=0 /empty /tmp
COPY --from=0 /bash-5.0/bash /usr/bin/
COPY --from=0 /bash-5.1/bash /usr/bin/

ENTRYPOINT ["/usr/bin/bash", "-c", "echo ${BASH_VERSION%\\([0-9]\\)-release}"]
4 changes: 2 additions & 2 deletions langs/python/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,10 @@ RUN mkdir /empty

RUN apk add --no-cache build-base curl libffi-dev zlib-dev

RUN curl https://www.python.org/ftp/python/3.9.0/Python-3.9.0.tar.xz \
RUN curl https://www.python.org/ftp/python/3.9.1/Python-3.9.1.tar.xz \
| tar xJf -

RUN cd Python-3.9.0 \
RUN cd Python-3.9.1 \
&& ./configure \
--prefix=/usr \
--with-lto \
Expand Down

0 comments on commit 6e36864

Please sign in to comment.