From: "Alexys Jacob" <ultrabug@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] proj/docker-images:master commit in: /
Date: Sun, 23 Feb 2020 19:46:46 +0000 (UTC) [thread overview]
Message-ID: <1582487195.6219ee847cf38d60753bde2bbe91b0130279c840.ultrabug@gentoo> (raw)
commit: 6219ee847cf38d60753bde2bbe91b0130279c840
Author: Aaron Simmons <paleozogt <AT> gmail <DOT> com>
AuthorDate: Mon Feb 17 22:27:24 2020 +0000
Commit: Alexys Jacob <ultrabug <AT> gentoo <DOT> org>
CommitDate: Sun Feb 23 19:46:35 2020 +0000
URL: https://gitweb.gentoo.org/proj/docker-images.git/commit/?id=6219ee84
using docker-copyedit to modify the arch
Signed-off-by: Alexys Jacob <ultrabug <AT> gentoo.org>
.gitmodules | 3 +++
build-multiarch.sh | 9 +++++++++
build.sh | 5 +++++
docker-copyedit | 1 +
4 files changed, 18 insertions(+)
diff --git a/.gitmodules b/.gitmodules
new file mode 100644
index 0000000..52c678d
--- /dev/null
+++ b/.gitmodules
@@ -0,0 +1,3 @@
+[submodule "docker-copyedit"]
+ path = docker-copyedit
+ url = https://github.com/gdraheim/docker-copyedit.git
diff --git a/build-multiarch.sh b/build-multiarch.sh
new file mode 100755
index 0000000..bc2fde9
--- /dev/null
+++ b/build-multiarch.sh
@@ -0,0 +1,9 @@
+#!/bin/bash
+docker manifest create gentoo/stage3 \
+ gentoo/stage3-amd64 \
+ gentoo/stage3-x86 \
+ gentoo/stage3-armv7a \
+ gentoo/stage3-amd64 \
+ gentoo/stage3-ppc \
+ gentoo/stage3-ppc64 \
+ gentoo/stage3-ppc64le
diff --git a/build.sh b/build.sh
index eb38eac..feacd63 100755
--- a/build.sh
+++ b/build.sh
@@ -11,6 +11,7 @@ fi
# Split the TARGET variable into three elements separated by hyphens
IFS=- read -r NAME ARCH SUFFIX <<< "${TARGET}"
+DOCKER_ARCH="${ARCH}"
# Ensure upstream directories for stage3-amd64-hardened+nomultilib work
SUFFIX=${SUFFIX/-/+}
@@ -21,12 +22,14 @@ ORG=${ORG:-gentoo}
# x86 requires the i686 subfolder
if [[ "${ARCH}" == "x86" ]]; then
+ DOCKER_ARCH="386"
MICROARCH="i686"
BOOTSTRAP="multiarch/alpine:x86-v3.7"
elif [[ "${ARCH}" = ppc* ]]; then
MICROARCH="${ARCH}"
ARCH=ppc
elif [[ "${ARCH}" = arm* ]]; then
+ DOCKER_ARCH=$(echo $ARCH | sed -e 's-\(v.\).*-/\1-g')
MICROARCH="${ARCH}"
ARCH=arm
else
@@ -40,4 +43,6 @@ fi
set -x
docker build --build-arg ARCH="${ARCH}" --build-arg MICROARCH="${MICROARCH}" --build-arg BOOTSTRAP="${BOOTSTRAP}" --build-arg SUFFIX="${SUFFIX}" -t "${ORG}/${TARGET}:${VERSION}" -f "${NAME}.Dockerfile" .
+docker-copyedit/docker-copyedit.py FROM "${ORG}/${TARGET}:${VERSION}" INTO "${ORG}/${TARGET}:${VERSION}" -vv \
+ set arch ${DOCKER_ARCH}
docker tag "${ORG}/${TARGET}:${VERSION}" "${ORG}/${TARGET}:latest"
diff --git a/docker-copyedit b/docker-copyedit
new file mode 160000
index 0000000..ab6bd5d
--- /dev/null
+++ b/docker-copyedit
@@ -0,0 +1 @@
+Subproject commit ab6bd5d9f5ca3a9ba314e7124c2aac8ad7987a3b
next reply other threads:[~2020-02-23 19:46 UTC|newest]
Thread overview: 50+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-02-23 19:46 Alexys Jacob [this message]
-- strict thread matches above, loose matches on Subject: below --
2024-11-27 12:39 [gentoo-commits] proj/docker-images:master commit in: / Michał Górny
2024-11-23 7:25 Michał Górny
2024-11-23 7:20 Michał Górny
2024-11-23 7:20 Michał Górny
2024-11-23 7:20 Michał Górny
2024-11-23 7:13 Michał Górny
2024-09-14 21:07 John Helmert III
2024-09-08 22:47 John Helmert III
2024-05-26 16:39 John Helmert III
2024-05-26 14:27 John Helmert III
2024-05-26 14:27 John Helmert III
2024-03-03 4:31 John Helmert III
2024-03-03 4:31 John Helmert III
2024-03-03 4:31 John Helmert III
2024-02-18 17:12 John Helmert III
2024-02-08 3:17 John Helmert III
2024-02-08 3:17 John Helmert III
2024-02-08 3:17 John Helmert III
2024-02-08 3:17 John Helmert III
2023-11-26 20:54 John Helmert III
2023-10-14 17:35 John Helmert III
2022-12-21 19:56 John Helmert III
2022-05-23 8:24 Alexys Jacob
2022-02-18 17:39 Alexys Jacob
2021-10-21 11:13 Alexys Jacob
2021-08-30 7:34 Alexys Jacob
2021-04-30 7:58 Alexys Jacob
2021-02-13 17:51 Alexys Jacob
2021-02-13 17:51 Alexys Jacob
2021-02-13 17:51 Alexys Jacob
2021-02-05 21:55 Max Magorsch
2020-09-04 14:49 Alexys Jacob
2020-09-04 14:49 Alexys Jacob
2020-09-03 20:34 Alexys Jacob
2020-08-26 9:03 Alexys Jacob
2020-08-24 13:05 Alexys Jacob
2020-08-24 12:58 Alexys Jacob
2020-08-20 12:17 Alexys Jacob
2020-08-20 9:28 Alexys Jacob
2020-05-26 11:54 Alexys Jacob
2020-04-09 7:26 Alexys Jacob
2020-04-09 7:26 Alexys Jacob
2020-02-23 19:48 Alexys Jacob
2020-02-23 19:46 Alexys Jacob
2019-11-15 8:28 Alexys Jacob
2019-11-15 8:28 Alexys Jacob
2019-11-15 8:28 Alexys Jacob
2019-11-15 8:25 Alexys Jacob
2019-11-14 23:02 Alexys Jacob
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1582487195.6219ee847cf38d60753bde2bbe91b0130279c840.ultrabug@gentoo \
--to=ultrabug@gentoo.org \
--cc=gentoo-commits@lists.gentoo.org \
--cc=gentoo-dev@lists.gentoo.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox