Skip to content

Commit

Permalink
Merge pull request #13 from theohbrothers/docs/readme-add-development…
Browse files Browse the repository at this point in the history
…-section

Docs (readme): Add Development section
  • Loading branch information
leojonathanoh authored Oct 30, 2022
2 parents b343ba6 + 300f349 commit dcb5133
Show file tree
Hide file tree
Showing 3 changed files with 31 additions and 4 deletions.
14 changes: 14 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -38,3 +38,17 @@ An example `docker-compose.yml` is included demonstrating how to use this image
Q: Why is there no alpine image?

- At the present moment, alpine is not yet supported by the [Varnish Agent](https://github.com/varnish/vagent2)

## Development

Requires Windows `powershell` or [`pwsh`](https://github.com/PowerShell/PowerShell).

```powershell
# Install Generate-DockerImageVariants module: https://github.com/theohbrothers/Generate-DockerImageVariants
Install-Module -Name Generate-DockerImageVariants -Repository PSGallery -Scope CurrentUser -Force -Verbose
# Edit ./generate templates
# Generate the variants
Generate-DockerImageVariants .
```
3 changes: 0 additions & 3 deletions generate/README.md

This file was deleted.

18 changes: 17 additions & 1 deletion generate/templates/README.md.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,10 @@ $(
}
}) -join ''
)
"@ + @'
"@

@'
## Usage
An example `docker-compose.yml` is included demonstrating how to use this image with an separate Varnish image (e.g. [`varnish-alpine-docker`](https://github.com/thiagofigueiro/varnish-alpine-docker)).
Expand Down Expand Up @@ -55,4 +57,18 @@ Q: Why is there no alpine image?
- At the present moment, alpine is not yet supported by the [Varnish Agent](https://github.com/varnish/vagent2)
## Development
Requires Windows `powershell` or [`pwsh`](https://github.com/PowerShell/PowerShell).
```powershell
# Install Generate-DockerImageVariants module: https://github.com/theohbrothers/Generate-DockerImageVariants
Install-Module -Name Generate-DockerImageVariants -Repository PSGallery -Scope CurrentUser -Force -Verbose
# Edit ./generate templates
# Generate the variants
Generate-DockerImageVariants .
```
'@

0 comments on commit dcb5133

Please sign in to comment.