]> git.ozlabs.org Git - petitboot/blobdiff - docker/builder-include
docker: Add libfdt-dev
[petitboot] / docker / builder-include
index 40e0120ca9b1017ade31354fa4f7485fdf63b44f..d2d94a4d5f3f032c0f8c982b40b26d43f47e8c69 100644 (file)
@@ -19,6 +19,19 @@ arch_tag() {
        esac
 }
 
+docker_from() {
+       local a="$(arch)"
+
+       case "${a}" in
+               amd64) echo "ubuntu:17.10" ;;
+               arm64) echo "arm64v8/ubuntu:17.10" ;;
+               *)
+                       echo "${name}: ERROR: Unknown arch ${a}" >&2
+                       exit 1
+               ;;
+       esac
+}
+
 run_cmd () {
        local cmd="${*}"
 
@@ -37,7 +50,7 @@ show_tag () {
        echo "${DOCKER_TAG}"
 }
 
-: ${VERSION:="1"}
+: ${VERSION:="2"}
 : ${ARCH_TAG:="$(arch_tag)"}
 : ${DOCKER_NAME:="pb-builder"}
 : ${DOCKER_TAG:="${DOCKER_NAME}:${VERSION}${ARCH_TAG}"}