Add docs and enable cookiecutter to support other templates

This commit is contained in:
Bilawal Hameed
2020-02-03 15:17:28 +01:00
parent 7d9160db50
commit 7936a0643d
3 changed files with 20 additions and 2 deletions
+10
View File
@@ -8,6 +8,16 @@ Backstage is an open platform for building developer portals.
## Getting started
## Plugins
### Creating a Plugin
Run the following:
```terminal
$ ./tools/cookiecutter/init.sh frontend/packages/plugins/_template --output-dir frontend/packages/plugins
```
## Documentation
## License
-2
View File
@@ -1,5 +1,3 @@
FROM python:3.8-slim
RUN pip install cookiecutter==1.7.0 --index-url https://pypi.python.org/simple
ENTRYPOINT [ "cookiecutter" ]
+10
View File
@@ -0,0 +1,10 @@
#!/usr/bin/env bash
set -e
# Build the container
docker build $(pwd)/tools/cookiecutter -t backstage/tools/cookiecutter --quiet
# Run cookiecutter with our arguments
COOKIECUTTER_FLAGS=${@:-""}
docker run -it -v $(pwd):/app -w /app backstage/tools/cookiecutter $COOKIECUTTER_FLAGS