mirror of https://github.com/upx/upx.git
misc: update podman images
This commit is contained in:
parent
9f5d67e27c
commit
741cb3a136
|
@ -6,10 +6,10 @@ argv0=$0; argv0abs="$(readlink -fn "$argv0")"; argv0dir="$(dirname "$argv0abs")"
|
||||||
# create the image from Dockerfile
|
# create the image from Dockerfile
|
||||||
# using a rootless Podman container
|
# using a rootless Podman container
|
||||||
|
|
||||||
# NOTE: this image is based on rebuild-stubs-with-upx/upx-stubtools-20210104-vX,
|
# NOTE: this image is based on rebuild-stubs-with-upx/upx-stubtools-20210104-v8,
|
||||||
# so you have to create that image first
|
# so you have to create that image first
|
||||||
# WARNING: we install many packages, so the resulting image needs A LOT of disk space!
|
# WARNING: we install many packages, so the resulting image needs A LOT of disk space!
|
||||||
image=upx-cross-compile-20221108-v7
|
image=upx-cross-compile-20221108-v8
|
||||||
|
|
||||||
podman build -t "$image" -f "$argv0dir/Dockerfile" "$argv0dir"
|
podman build -t "$image" -f "$argv0dir/Dockerfile" "$argv0dir"
|
||||||
|
|
||||||
|
|
|
@ -6,7 +6,7 @@ argv0=$0; argv0abs="$(readlink -fn "$argv0")"; argv0dir="$(dirname "$argv0abs")"
|
||||||
# run an interactive shell in the image
|
# run an interactive shell in the image
|
||||||
# using a rootless Podman container
|
# using a rootless Podman container
|
||||||
|
|
||||||
image=upx-cross-compile-20221108-v7
|
image=upx-cross-compile-20221108-v8
|
||||||
|
|
||||||
flags=( -ti --read-only --rm )
|
flags=( -ti --read-only --rm )
|
||||||
flags+=( --cap-drop=all ) # drop all capabilities
|
flags+=( --cap-drop=all ) # drop all capabilities
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
# NOTE: this image is based on rebuild-stubs-with-upx/upx-stubtools-20210104-vX,
|
# NOTE: this image is based on rebuild-stubs-with-upx/upx-stubtools-20210104-v8,
|
||||||
# so you have to create that image first
|
# so you have to create that image first
|
||||||
# WARNING: we install many packages, so the resulting image needs A LOT of disk space!
|
# WARNING: we install many packages, so the resulting image needs A LOT of disk space!
|
||||||
FROM localhost/upx-stubtools-20210104-v7
|
FROM localhost/upx-stubtools-20210104-v8
|
||||||
ARG DEBIAN_FRONTEND=noninteractive
|
ARG DEBIAN_FRONTEND=noninteractive
|
||||||
|
|
||||||
USER root
|
USER root
|
||||||
|
@ -9,7 +9,7 @@ USER root
|
||||||
# Ubuntu 22.04
|
# Ubuntu 22.04
|
||||||
RUN apt-get update && apt-get upgrade -y \
|
RUN apt-get update && apt-get upgrade -y \
|
||||||
&& apt-get install -y \
|
&& apt-get install -y \
|
||||||
# Linux cross compilers
|
# Linux glibc cross compilers
|
||||||
g++-aarch64-linux-gnu \
|
g++-aarch64-linux-gnu \
|
||||||
g++-alpha-linux-gnu \
|
g++-alpha-linux-gnu \
|
||||||
g++-arm-linux-gnueabi \
|
g++-arm-linux-gnueabi \
|
||||||
|
@ -28,7 +28,7 @@ RUN apt-get update && apt-get upgrade -y \
|
||||||
g++-s390x-linux-gnu \
|
g++-s390x-linux-gnu \
|
||||||
g++-sh4-linux-gnu \
|
g++-sh4-linux-gnu \
|
||||||
g++-sparc64-linux-gnu \
|
g++-sparc64-linux-gnu \
|
||||||
# Linux cross compilers - ILP32 on 64-bit CPUs
|
# Linux glibc cross compilers - ILP32 on 64-bit CPUs
|
||||||
g++-x86-64-linux-gnux32 \
|
g++-x86-64-linux-gnux32 \
|
||||||
# Windows cross compilers
|
# Windows cross compilers
|
||||||
g++-mingw-w64-i686 \
|
g++-mingw-w64-i686 \
|
||||||
|
|
|
@ -6,7 +6,7 @@ argv0=$0; argv0abs="$(readlink -fn "$argv0")"; argv0dir="$(dirname "$argv0abs")"
|
||||||
# create the image from Dockerfile
|
# create the image from Dockerfile
|
||||||
# using a rootless Podman container
|
# using a rootless Podman container
|
||||||
|
|
||||||
image=upx-stubtools-20210104-v7
|
image=upx-stubtools-20210104-v8
|
||||||
|
|
||||||
podman build -t "$image" -f "$argv0dir/Dockerfile" "$argv0dir"
|
podman build -t "$image" -f "$argv0dir/Dockerfile" "$argv0dir"
|
||||||
|
|
||||||
|
|
|
@ -6,7 +6,7 @@ argv0=$0; argv0abs="$(readlink -fn "$argv0")"; argv0dir="$(dirname "$argv0abs")"
|
||||||
# run an interactive shell in the image
|
# run an interactive shell in the image
|
||||||
# using a rootless Podman container
|
# using a rootless Podman container
|
||||||
|
|
||||||
image=upx-stubtools-20210104-v7
|
image=upx-stubtools-20210104-v8
|
||||||
|
|
||||||
flags=( -ti --read-only --rm )
|
flags=( -ti --read-only --rm )
|
||||||
flags+=( --cap-drop=all ) # drop all capabilities
|
flags+=( --cap-drop=all ) # drop all capabilities
|
||||||
|
|
|
@ -12,8 +12,8 @@ RUN dpkg --add-architecture i386 \
|
||||||
# the following packages are not required for rebuilding the stubs, but
|
# the following packages are not required for rebuilding the stubs, but
|
||||||
# they do make the image much more convenient and also allow building
|
# they do make the image much more convenient and also allow building
|
||||||
# the full UPX binary inside the container via CMake:
|
# the full UPX binary inside the container via CMake:
|
||||||
7zip bzip2 cmake elfutils file g++ htop libzstd-dev lzip lzop ninja-build \
|
7zip bzip2 cmake elfutils file g++ htop libzstd-dev lzip lzop ninja-build p7zip \
|
||||||
p7zip patch patchelf pax-utils rsync unzip vim zip zlib1g-dev zsh zstd \
|
patch patchelf pax-utils rsync screen unzip vim zip zlib1g-dev zsh zstd \
|
||||||
&& true
|
&& true
|
||||||
|
|
||||||
# manually install compat libs from Ubuntu 16.04; REQUIRED
|
# manually install compat libs from Ubuntu 16.04; REQUIRED
|
||||||
|
@ -41,22 +41,10 @@ RUN cd /root \
|
||||||
# install pre-built binary UPX versions into /usr/local/bin; not required but convenient for testing
|
# install pre-built binary UPX versions into /usr/local/bin; not required but convenient for testing
|
||||||
RUN cd /root \
|
RUN cd /root \
|
||||||
&& wget -q https://github.com/upx/upx/releases/download/v3.91/upx-3.91-amd64_linux.tar.bz2 \
|
&& wget -q https://github.com/upx/upx/releases/download/v3.91/upx-3.91-amd64_linux.tar.bz2 \
|
||||||
&& wget -q https://github.com/upx/upx/releases/download/v3.92/upx-3.92-amd64_linux.tar.xz \
|
&& for v in 3.92 3.93 3.94 3.95 3.96 4.0.0 4.0.1; do wget -q https://github.com/upx/upx/releases/download/v${v}/upx-${v}-amd64_linux.tar.xz; done \
|
||||||
&& wget -q https://github.com/upx/upx/releases/download/v3.93/upx-3.93-amd64_linux.tar.xz \
|
|
||||||
&& wget -q https://github.com/upx/upx/releases/download/v3.94/upx-3.94-amd64_linux.tar.xz \
|
|
||||||
&& wget -q https://github.com/upx/upx/releases/download/v3.95/upx-3.95-amd64_linux.tar.xz \
|
|
||||||
&& wget -q https://github.com/upx/upx/releases/download/v3.96/upx-3.96-amd64_linux.tar.xz \
|
|
||||||
&& wget -q https://github.com/upx/upx/releases/download/v4.0.0/upx-4.0.0-amd64_linux.tar.xz \
|
|
||||||
&& for f in ./upx-*.tar.*; do tar -xoaf $f; done \
|
&& for f in ./upx-*.tar.*; do tar -xoaf $f; done \
|
||||||
&& rm ./upx-*.tar.* \
|
&& for v in 3.91 3.92 3.93 3.94 3.95 3.96 4.0.0 4.0.1; do d=upx-${v}-amd64_linux; ./$d/upx -qq -d $d/upx -o /usr/local/bin/upx-${v}; done \
|
||||||
&& d=upx-3.91-amd64_linux; ./$d/upx -d $d/upx -o /usr/local/bin/upx-3.91 \
|
&& rm -r ./upx-*.tar.* ./upx-*linux \
|
||||||
&& d=upx-3.92-amd64_linux; ./$d/upx -d $d/upx -o /usr/local/bin/upx-3.92 \
|
|
||||||
&& d=upx-3.93-amd64_linux; ./$d/upx -d $d/upx -o /usr/local/bin/upx-3.93 \
|
|
||||||
&& d=upx-3.94-amd64_linux; ./$d/upx -d $d/upx -o /usr/local/bin/upx-3.94 \
|
|
||||||
&& d=upx-3.95-amd64_linux; ./$d/upx -d $d/upx -o /usr/local/bin/upx-3.95 \
|
|
||||||
&& d=upx-3.96-amd64_linux; ./$d/upx -d $d/upx -o /usr/local/bin/upx-3.96 \
|
|
||||||
&& d=upx-4.0.0-amd64_linux; ./$d/upx -d $d/upx -o /usr/local/bin/upx-4.0.0 \
|
|
||||||
&& rm -rf ./upx-*linux \
|
|
||||||
&& true
|
&& true
|
||||||
|
|
||||||
# create default user upx 2000:2000
|
# create default user upx 2000:2000
|
||||||
|
|
Loading…
Reference in New Issue