diff --git a/images/centos7.4/Dockerfile b/images/centos7.x/Dockerfile similarity index 97% rename from images/centos7.4/Dockerfile rename to images/centos7.x/Dockerfile index d4a082b..7026a41 100644 --- a/images/centos7.4/Dockerfile +++ b/images/centos7.x/Dockerfile @@ -10,7 +10,8 @@ # See the License for the specific language governing permissions and # limitations under the License. -FROM centos:7.4.1708 +ARG BASE_IMAGE=centos:7.8.2003 +FROM ${BASE_IMAGE} ENV container docker # Delete a number of unit files which might cause issues. diff --git a/images/centos7.x/README.rst b/images/centos7.x/README.rst new file mode 100644 index 0000000..00ebf3d --- /dev/null +++ b/images/centos7.x/README.rst @@ -0,0 +1,20 @@ + +Instructions to build Centos 7.x images to use in a clusterdock topology +======================================================================== + +To build a centos 7.x image, use the folowing command. + +``docker build . -t clusterdock/topology_nodebase:centos7.8 --build-arg BASE_IMAGE=centos7.8.2003`` + +The build-arg BASE_IMAGE can take any valid centos 7.x tags from the official centos repo on docker hub. Some examples +are + +========== =============== +Version Tag +========== =============== +Centos 7.4 centos7.4.1708 +Centos 7.5 centos7.5.1804 +Centos 7.6 centos7.6.1810 +Centos 7.8 centos7.8.2003 +========== =============== + diff --git a/images/centos7.4/ssh/id_rsa b/images/centos7.x/ssh/id_rsa similarity index 100% rename from images/centos7.4/ssh/id_rsa rename to images/centos7.x/ssh/id_rsa diff --git a/images/centos7.4/ssh/id_rsa.pub b/images/centos7.x/ssh/id_rsa.pub similarity index 100% rename from images/centos7.4/ssh/id_rsa.pub rename to images/centos7.x/ssh/id_rsa.pub