File tree Expand file tree Collapse file tree 10 files changed +57
-0
lines changed Expand file tree Collapse file tree 10 files changed +57
-0
lines changed Original file line number Diff line number Diff line change @@ -3,11 +3,17 @@ services: docker
3
3
4
4
env :
5
5
- VERSION=3.8-rc VARIANT=ubuntu
6
+ - VERSION=3.8-rc VARIANT=ubuntu ARCH=i386
6
7
- VERSION=3.8-rc VARIANT=alpine
8
+ - VERSION=3.8-rc VARIANT=alpine ARCH=i386
7
9
- VERSION=3.7-rc VARIANT=ubuntu
10
+ - VERSION=3.7-rc VARIANT=ubuntu ARCH=i386
8
11
- VERSION=3.7-rc VARIANT=alpine
12
+ - VERSION=3.7-rc VARIANT=alpine ARCH=i386
9
13
- VERSION=3.7 VARIANT=ubuntu
14
+ - VERSION=3.7 VARIANT=ubuntu ARCH=i386
10
15
- VERSION=3.7 VARIANT=alpine
16
+ - VERSION=3.7 VARIANT=alpine ARCH=i386
11
17
12
18
install :
13
19
- git clone https://github.com/docker-library/official-images.git ~/official-images
@@ -17,6 +23,16 @@ before_script:
17
23
- wget -qO- 'https://github.com/tianon/pgp-happy-eyeballs/raw/master/hack-my-builds.sh' | bash
18
24
- cd "$VERSION/$VARIANT"
19
25
- image="$(awk 'toupper($1) == "FROM" { print $2; exit }' management/Dockerfile)"
26
+ - |
27
+ (
28
+ set -Eeuo pipefail
29
+ set -x
30
+ if [ -n "${ARCH:-}" ]; then
31
+ from="$(awk '$1 == toupper("FROM") { print $2 }' Dockerfile)"
32
+ docker pull "$ARCH/$from"
33
+ docker tag "$ARCH/$from" "$from"
34
+ fi
35
+ )
20
36
21
37
script :
22
38
- |
Original file line number Diff line number Diff line change @@ -67,6 +67,11 @@ RUN set -eux; \
67
67
\
68
68
# Configure OpenSSL for compilation
69
69
cd "$OPENSSL_PATH" ; \
70
+ # OpenSSL's "config" script uses a lot of "uname"-based target detection...
71
+ MACHINE="$(dpkg-architecture --query DEB_BUILD_GNU_CPU)" \
72
+ RELEASE="4.x.y-z" \
73
+ SYSTEM='Linux' \
74
+ BUILD='???' \
70
75
./config --openssldir="$OPENSSL_CONFIG_DIR" ; \
71
76
# Compile, install OpenSSL, verify that the command-line works & development headers are present
72
77
make -j "$(getconf _NPROCESSORS_ONLN)" ; \
Original file line number Diff line number Diff line change @@ -74,6 +74,11 @@ RUN set -eux; \
74
74
\
75
75
# Configure OpenSSL for compilation
76
76
cd "$OPENSSL_PATH" ; \
77
+ # OpenSSL's "config" script uses a lot of "uname"-based target detection...
78
+ MACHINE="$(dpkg-architecture --query DEB_BUILD_GNU_CPU)" \
79
+ RELEASE="4.x.y-z" \
80
+ SYSTEM='Linux' \
81
+ BUILD='???' \
77
82
./config --openssldir="$OPENSSL_CONFIG_DIR" ; \
78
83
# Compile, install OpenSSL, verify that the command-line works & development headers are present
79
84
make -j "$(getconf _NPROCESSORS_ONLN)" ; \
Original file line number Diff line number Diff line change @@ -67,6 +67,11 @@ RUN set -eux; \
67
67
\
68
68
# Configure OpenSSL for compilation
69
69
cd "$OPENSSL_PATH" ; \
70
+ # OpenSSL's "config" script uses a lot of "uname"-based target detection...
71
+ MACHINE="$(dpkg-architecture --query DEB_BUILD_GNU_CPU)" \
72
+ RELEASE="4.x.y-z" \
73
+ SYSTEM='Linux' \
74
+ BUILD='???' \
70
75
./config --openssldir="$OPENSSL_CONFIG_DIR" ; \
71
76
# Compile, install OpenSSL, verify that the command-line works & development headers are present
72
77
make -j "$(getconf _NPROCESSORS_ONLN)" ; \
Original file line number Diff line number Diff line change @@ -74,6 +74,11 @@ RUN set -eux; \
74
74
\
75
75
# Configure OpenSSL for compilation
76
76
cd "$OPENSSL_PATH" ; \
77
+ # OpenSSL's "config" script uses a lot of "uname"-based target detection...
78
+ MACHINE="$(dpkg-architecture --query DEB_BUILD_GNU_CPU)" \
79
+ RELEASE="4.x.y-z" \
80
+ SYSTEM='Linux' \
81
+ BUILD='???' \
77
82
./config --openssldir="$OPENSSL_CONFIG_DIR" ; \
78
83
# Compile, install OpenSSL, verify that the command-line works & development headers are present
79
84
make -j "$(getconf _NPROCESSORS_ONLN)" ; \
Original file line number Diff line number Diff line change @@ -67,6 +67,11 @@ RUN set -eux; \
67
67
\
68
68
# Configure OpenSSL for compilation
69
69
cd "$OPENSSL_PATH" ; \
70
+ # OpenSSL's "config" script uses a lot of "uname"-based target detection...
71
+ MACHINE="$(dpkg-architecture --query DEB_BUILD_GNU_CPU)" \
72
+ RELEASE="4.x.y-z" \
73
+ SYSTEM='Linux' \
74
+ BUILD='???' \
70
75
./config --openssldir="$OPENSSL_CONFIG_DIR" ; \
71
76
# Compile, install OpenSSL, verify that the command-line works & development headers are present
72
77
make -j "$(getconf _NPROCESSORS_ONLN)" ; \
Original file line number Diff line number Diff line change @@ -74,6 +74,11 @@ RUN set -eux; \
74
74
\
75
75
# Configure OpenSSL for compilation
76
76
cd "$OPENSSL_PATH" ; \
77
+ # OpenSSL's "config" script uses a lot of "uname"-based target detection...
78
+ MACHINE="$(dpkg-architecture --query DEB_BUILD_GNU_CPU)" \
79
+ RELEASE="4.x.y-z" \
80
+ SYSTEM='Linux' \
81
+ BUILD='???' \
77
82
./config --openssldir="$OPENSSL_CONFIG_DIR" ; \
78
83
# Compile, install OpenSSL, verify that the command-line works & development headers are present
79
84
make -j "$(getconf _NPROCESSORS_ONLN)" ; \
Original file line number Diff line number Diff line change @@ -67,6 +67,11 @@ RUN set -eux; \
67
67
\
68
68
# Configure OpenSSL for compilation
69
69
cd "$OPENSSL_PATH"; \
70
+ # OpenSSL's "config" script uses a lot of "uname"-based target detection...
71
+ MACHINE="$(dpkg-architecture --query DEB_BUILD_GNU_CPU)" \
72
+ RELEASE="4.x.y-z" \
73
+ SYSTEM='Linux' \
74
+ BUILD='???' \
70
75
./config --openssldir="$OPENSSL_CONFIG_DIR"; \
71
76
# Compile, install OpenSSL, verify that the command-line works & development headers are present
72
77
make -j "$(getconf _NPROCESSORS_ONLN)"; \
Original file line number Diff line number Diff line change @@ -74,6 +74,11 @@ RUN set -eux; \
74
74
\
75
75
# Configure OpenSSL for compilation
76
76
cd "$OPENSSL_PATH"; \
77
+ # OpenSSL's "config" script uses a lot of "uname"-based target detection...
78
+ MACHINE="$(dpkg-architecture --query DEB_BUILD_GNU_CPU)" \
79
+ RELEASE="4.x.y-z" \
80
+ SYSTEM='Linux' \
81
+ BUILD='???' \
77
82
./config --openssldir="$OPENSSL_CONFIG_DIR"; \
78
83
# Compile, install OpenSSL, verify that the command-line works & development headers are present
79
84
make -j "$(getconf _NPROCESSORS_ONLN)"; \
Original file line number Diff line number Diff line change @@ -116,6 +116,7 @@ for version in "${versions[@]}"; do
116
116
Dockerfile-management.template \
117
117
> " $version /$variant /management/Dockerfile"
118
118
119
+ travisEnv=' \n - VERSION=' " $version " ' VARIANT=' " $variant ARCH=i386$travisEnv "
119
120
travisEnv=' \n - VERSION=' " $version " ' VARIANT=' " $variant$travisEnv "
120
121
done
121
122
done
You can’t perform that action at this time.
0 commit comments