From 8ceb5059772d0d7063a0ff1fc0c1e0734e76bb77 Mon Sep 17 00:00:00 2001 From: Shane McDonald Date: Sat, 26 Dec 2020 13:01:25 -0500 Subject: [PATCH] Add standalone target for rendering official Dockerfile With the next commit it will be possible to run: ``` $ make Dockerfile $ docker build . ``` --- Makefile | 3 +++ installer/roles/image_build/templates/Dockerfile.j2 | 4 +++- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/Makefile b/Makefile index 783547930f..415abd7104 100644 --- a/Makefile +++ b/Makefile @@ -622,3 +622,6 @@ psql-container: VERSION: @echo "awx: $(VERSION)" + +Dockerfile: installer/roles/image_build/templates/Dockerfile.j2 + ansible localhost -m template -a "src=installer/roles/image_build/templates/Dockerfile.j2 dest=Dockerfile" diff --git a/installer/roles/image_build/templates/Dockerfile.j2 b/installer/roles/image_build/templates/Dockerfile.j2 index 64417060c7..89e7d543d3 100644 --- a/installer/roles/image_build/templates/Dockerfile.j2 +++ b/installer/roles/image_build/templates/Dockerfile.j2 @@ -1,9 +1,11 @@ -{% if build_dev|bool %} +{% if build_dev|default(False)|bool %} ### This file is generated from ### installer/roles/image_build/templates/Dockerfile.j2 ### ### DO NOT EDIT ### +{% else %} + {% set build_dev = False %} {% endif %} # Locations - set globally to be used across stages