docker: Add DOCKER_FROM arg
[petitboot] / docker / builder-include
index 40e0120ca9b1017ade31354fa4f7485fdf63b44f..87405b8ed5772dcbdf328afb1c675a90a83843f2 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="${*}"