From 36a9347b023d314a4a9c902a4621697378cd1641 Mon Sep 17 00:00:00 2001 From: Robpol86 Date: Fri, 30 Dec 2016 13:42:23 -0800 Subject: [PATCH] Using hook script and flattening dir structure. Learned this from https://github.com/docker/hub-feedback/issues/508#issuecomment-254342911 and from https://github.com/git-lfs/build-dockers --- Dockerfile | 2 ++ centos/6/Dockerfile => Dockerfile.centos6 | 0 centos/7/Dockerfile => Dockerfile.centos7 | 0 fedora/22/Dockerfile => Dockerfile.fedora22 | 0 fedora/23/Dockerfile => Dockerfile.fedora23 | 0 fedora/24/Dockerfile => Dockerfile.fedora24 | 0 fedora/25/Dockerfile => Dockerfile.fedora25 | 0 fedora/rawhide/Dockerfile => Dockerfile.fedoraRawhide | 0 hooks/build | 3 +++ 9 files changed, 5 insertions(+) create mode 100644 Dockerfile rename centos/6/Dockerfile => Dockerfile.centos6 (100%) rename centos/7/Dockerfile => Dockerfile.centos7 (100%) rename fedora/22/Dockerfile => Dockerfile.fedora22 (100%) rename fedora/23/Dockerfile => Dockerfile.fedora23 (100%) rename fedora/24/Dockerfile => Dockerfile.fedora24 (100%) rename fedora/25/Dockerfile => Dockerfile.fedora25 (100%) rename fedora/rawhide/Dockerfile => Dockerfile.fedoraRawhide (100%) create mode 100644 hooks/build diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..ee90348 --- /dev/null +++ b/Dockerfile @@ -0,0 +1,2 @@ +FROM fedora:rawhide +# Dummy file. diff --git a/centos/6/Dockerfile b/Dockerfile.centos6 similarity index 100% rename from centos/6/Dockerfile rename to Dockerfile.centos6 diff --git a/centos/7/Dockerfile b/Dockerfile.centos7 similarity index 100% rename from centos/7/Dockerfile rename to Dockerfile.centos7 diff --git a/fedora/22/Dockerfile b/Dockerfile.fedora22 similarity index 100% rename from fedora/22/Dockerfile rename to Dockerfile.fedora22 diff --git a/fedora/23/Dockerfile b/Dockerfile.fedora23 similarity index 100% rename from fedora/23/Dockerfile rename to Dockerfile.fedora23 diff --git a/fedora/24/Dockerfile b/Dockerfile.fedora24 similarity index 100% rename from fedora/24/Dockerfile rename to Dockerfile.fedora24 diff --git a/fedora/25/Dockerfile b/Dockerfile.fedora25 similarity index 100% rename from fedora/25/Dockerfile rename to Dockerfile.fedora25 diff --git a/fedora/rawhide/Dockerfile b/Dockerfile.fedoraRawhide similarity index 100% rename from fedora/rawhide/Dockerfile rename to Dockerfile.fedoraRawhide diff --git a/hooks/build b/hooks/build new file mode 100644 index 0000000..8724547 --- /dev/null +++ b/hooks/build @@ -0,0 +1,3 @@ +#!/bin/bash + +docker build -t ${IMAGE_NAME} -f Dockerfile.${DOCKER_TAG} .