make aws default docker registry in remaining scripts
AWS has much better anonymous pull request limits (1 per second) vs
docker hub which is 100 per 6 hours per IP address. A lot of our CI and
development occurs on shared systems so it's easy to exceed this limit
on an IP basis.
Tested:
- Verified no setting for DOCKER_REG and a setting of docker.io work as
expected within these scripts
Change-Id: Ic5cb5ee07ee83567b6cf26754b6d1045025bdd65
Signed-off-by: Andrew Geissler <geissonator@yahoo.com>
diff --git a/build-setup.sh b/build-setup.sh
index f9b9df9..c435ae7 100755
--- a/build-setup.sh
+++ b/build-setup.sh
@@ -24,8 +24,8 @@
# CONTAINER_ONLY Set to "true" if you only want to build the docker
# container. The bitbake will not occur in this case.
# DOCKER_REG: <optional, the URL of a docker registry to utilize
-# instead of the default docker hub
-# (ex. public.ecr.aws/ubuntu or public.ecr.aws/docker/library)
+# instead of our default (public.ecr.aws/ubuntu)
+# (ex. docker.io or public.ecr.aws/docker/library)
#
# Docker Image Build Variables:
# BITBAKE_OPTS Set to "-c populate_sdk" or whatever other BitBake options
@@ -35,7 +35,8 @@
# container, path cannot be located on network storage.
# Default: "$WORKSPACE/build"
# distro The distro used as the base image for the build image:
-# fedora|ubuntu
+# fedora|ubuntu. Note that if you chose fedora, you will
+# need to also update DOCKER_REG to a supported fedora reg.
# Default: "ubuntu"
# img_name The name given to the target build's docker image.
# Default: "openbmc/${distro}:${imgtag}-${target}-${ARCH}"
@@ -90,7 +91,7 @@
UBUNTU_MIRROR=${UBUNTU_MIRROR:-""}
ENV_LOCAL_CONF=${ENV_LOCAL_CONF:-""}
container_only=${CONTAINER_ONLY:-false}
-docker_reg=${DOCKER_REG:-"docker.io"}
+docker_reg=${DOCKER_REG:-"public.ecr.aws/ubuntu"}
# Docker Image Build Variables:
build_dir=${build_dir:-${WORKSPACE}/build}