Skip to content

Commit 141ebf9

Browse files
committed
Roll version
1 parent 3e69c61 commit 141ebf9

2 files changed

Lines changed: 19 additions & 33 deletions

File tree

webconsole/socat_static/Dockerfile

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,19 +8,20 @@ RUN apt-get update \
88
&& apt-get install -yy \
99
automake \
1010
build-essential \
11+
ca-certificates \
1112
curl \
1213
git \
13-
pkg-config \
1414
libwrap0-dev \
1515
linux-libc-dev \
16+
pkg-config \
1617
&& apt-get clean
1718

1819
ADD build.sh /
19-
ENV MUSL_VERSION 1.1.22
20-
ENV SOCAT_VERSION 1.7.3.2
20+
ENV MUSL_VERSION 1.1.23
21+
ENV SOCAT_VERSION 1.7.3.3
2122
ENV NCURSES_VERSION 6.1
2223
ENV READLINE_VERSION 7.0
23-
ENV OPENSSL_VERSION 1.0.2k
24+
ENV OPENSSL_VERSION 1.0.2t
2425
RUN /build.sh
2526

2627
# Package stage

webconsole/socat_static/build.sh

Lines changed: 14 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -4,37 +4,22 @@ set -e
44
set -o pipefail
55

66
function build_musl() {
7-
cd /
8-
9-
# Download
10-
curl -sSL http://www.musl-libc.org/releases/musl-${MUSL_VERSION}.tar.gz | tar zxf -
11-
cd musl-${MUSL_VERSION}
12-
13-
# Build
7+
cd /musl-${MUSL_VERSION}
148
./configure 2>&1 > /var/log/build.log
159
make -j4 2>&1 > /var/log/build.log
1610
make install 2>&1 > /var/log/build.log
1711
}
1812

1913
function build_ncurses() {
20-
cd /
21-
22-
# Download
23-
curl -ksSL https://ftp.gnu.org/pub/gnu/ncurses/ncurses-${NCURSES_VERSION}.tar.gz | tar zxf -
24-
cd ncurses-${NCURSES_VERSION}
25-
26-
# Build
14+
cd /ncurses-${NCURSES_VERSION}
2715
CC='/usr/local/musl/bin/musl-gcc -static' CFLAGS='-fPIC' ./configure \
2816
--disable-shared \
2917
--enable-static 2>&1 > /var/log/build.log
3018
}
3119

3220
function build_readline() {
33-
cd /
3421

35-
# Download
36-
curl -sSL ftp://ftp.cwru.edu/pub/bash/readline-${READLINE_VERSION}.tar.gz | tar zxf -
37-
cd readline-${READLINE_VERSION}
22+
cd /readline-${READLINE_VERSION}
3823
ln -s /readline-${READLINE_VERSION} /readline
3924

4025
# Build
@@ -46,13 +31,9 @@ function build_readline() {
4631
}
4732

4833
function build_openssl() {
49-
cd /
50-
51-
# Download
52-
curl -ksSL https://www.openssl.org/source/openssl-${OPENSSL_VERSION}.tar.gz | tar zxf -
53-
cd openssl-${OPENSSL_VERSION}
5434

5535
# Configure
36+
cd /openssl-${OPENSSL_VERSION}
5637
UNAME=`uname -m`
5738
case "$UNAME" in
5839
*aarch64*) BUILD_ARCH="linux-aarch64" ;;
@@ -72,15 +53,10 @@ function build_openssl() {
7253
}
7354

7455
function build_socat() {
75-
cd /
7656

77-
# Download
78-
curl -sSL http://www.dest-unreach.org/socat/download/socat-${SOCAT_VERSION}.tar.gz | tar zxf -
79-
cd socat-${SOCAT_VERSION}
80-
81-
# Build
8257
# NOTE: `NETDB_INTERNAL` is non-POSIX, and thus not defined by MUSL.
8358
# We define it this way manually.
59+
cd /socat-${SOCAT_VERSION}
8460
CC='/usr/local/musl/bin/musl-gcc -static' \
8561
CFLAGS="-fPIC -DWITH_OPENSSL -I/ -I/openssl-${OPENSSL_VERSION}/include -I/readline-${READLINE_VERSION} -DNETDB_INTERNAL=-1" \
8662
CPPFLAGS="-DWITH_OPENSSL -I/ -I/openssl-${OPENSSL_VERSION}/include -I/readline -DNETDB_INTERNAL=-1" \
@@ -91,6 +67,15 @@ function build_socat() {
9167
}
9268

9369
function doit() {
70+
71+
echo "[+] Downloading assets.."
72+
cd /
73+
curl -ksSL http://www.musl-libc.org/releases/musl-${MUSL_VERSION}.tar.gz | tar zxf -
74+
curl -ksSL https://ftp.gnu.org/pub/gnu/ncurses/ncurses-${NCURSES_VERSION}.tar.gz | tar zxf -
75+
curl -ksSL ftp://ftp.cwru.edu/pub/bash/readline-${READLINE_VERSION}.tar.gz | tar zxf -
76+
curl -ksSL https://www.openssl.org/source/openssl-${OPENSSL_VERSION}.tar.gz | tar zxf -
77+
curl -ksSL http://www.dest-unreach.org/socat/download/socat-${SOCAT_VERSION}.tar.gz | tar zxf -
78+
9479
echo "[+] Building musl libc"
9580
build_musl
9681
echo "[+] Building ncurses"

0 commit comments

Comments
 (0)