Skip to content

Commit

Permalink
Merge pull request #3 from theohbrothers/refactor/generate-remove-doc…
Browse files Browse the repository at this point in the history
…kerfile.header.ps1-and-dockerfile.footer.ps1-and-only-use-dockerfile.ps1

Refactor (generate): Remove Dockerfile.header.ps1 and Dockerfile.footer.ps1 and only use Dockerfile.ps1
  • Loading branch information
leojonathanoh authored Sep 12, 2021
2 parents feba600 + 6786527 commit 32720f1
Show file tree
Hide file tree
Showing 14 changed files with 9 additions and 32 deletions.
4 changes: 2 additions & 2 deletions generate/definitions/VARIANTS.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -50,8 +50,8 @@ $VARIANTS_SHARED = @{
templates = @{
'Dockerfile' = @{
common = $true
includeHeader = $true
includeFooter = $true
includeHeader = $false
includeFooter = $false
passes = @(
@{
variables = @{}
Expand Down
2 changes: 0 additions & 2 deletions generate/templates/Dockerfile.footer.ps1

This file was deleted.

3 changes: 0 additions & 3 deletions generate/templates/Dockerfile.header.ps1

This file was deleted.

12 changes: 7 additions & 5 deletions generate/templates/Dockerfile.ps1
Original file line number Diff line number Diff line change
@@ -1,6 +1,10 @@
@"
$(
($VARIANT['_metadata']['components'] | % {
FROM $( $VARIANT['_metadata']['distro'] ):$( $VARIANT['_metadata']['distro_version'] )
"@

$VARIANT['_metadata']['components'] | % {
$component = $_

switch( $component ) {
Expand Down Expand Up @@ -58,6 +62,4 @@ RUN apk add --no-cache openssh
throw "No such component: $component"
}
}
}) -join ''
)
"@
}
2 changes: 0 additions & 2 deletions variants/3.10-curl-git-jq-ssh/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -8,5 +8,3 @@ RUN apk add --no-cache jq

RUN apk add --no-cache openssh



2 changes: 0 additions & 2 deletions variants/3.10-mysqlclient-openssl/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -4,5 +4,3 @@ RUN apk add --no-cache mysql-client

RUN apk add --no-cache openssl



2 changes: 0 additions & 2 deletions variants/3.11-curl-git-jq-ssh/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -8,5 +8,3 @@ RUN apk add --no-cache jq

RUN apk add --no-cache openssh



2 changes: 0 additions & 2 deletions variants/3.11-mysqlclient-openssl/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -4,5 +4,3 @@ RUN apk add --no-cache mysql-client

RUN apk add --no-cache openssl



2 changes: 0 additions & 2 deletions variants/3.12-curl-git-jq-ssh/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -8,5 +8,3 @@ RUN apk add --no-cache jq

RUN apk add --no-cache openssh



2 changes: 0 additions & 2 deletions variants/3.12-mysqlclient-openssl/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -4,5 +4,3 @@ RUN apk add --no-cache mysql-client

RUN apk add --no-cache openssl



2 changes: 0 additions & 2 deletions variants/3.8-curl-git-jq-ssh/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -8,5 +8,3 @@ RUN apk add --no-cache jq

RUN apk add --no-cache openssh



2 changes: 0 additions & 2 deletions variants/3.8-mysqlclient-openssl/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -4,5 +4,3 @@ RUN apk add --no-cache mysql-client

RUN apk add --no-cache openssl



2 changes: 0 additions & 2 deletions variants/3.9-curl-git-jq-ssh/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -8,5 +8,3 @@ RUN apk add --no-cache jq

RUN apk add --no-cache openssh



2 changes: 0 additions & 2 deletions variants/3.9-mysqlclient-openssl/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -4,5 +4,3 @@ RUN apk add --no-cache mysql-client

RUN apk add --no-cache openssl



0 comments on commit 32720f1

Please sign in to comment.