cookiecutter seems to work

This commit is contained in:
Raghunandan Balachandran
2020-02-07 14:32:03 +01:00
parent 06f7b6694b
commit 17e60d92e3
2 changed files with 5 additions and 7 deletions
+2 -1
View File
@@ -31,5 +31,6 @@ CMD ["./service"]
### Scaffolder Stage
### needs extra cookiecutter
FROM default AS scaffolder
RUN apt-get update && apt-get install -y python-pip
RUN apt-get update && apt-get install -y python-pip
RUN apt-get install -y python-backports.functools-lru-cache
RUN pip install cookiecutter==1.7.0 --index-url https://pypi.python.org/simple
@@ -23,17 +23,14 @@ const CreateEntityFormPage = () => {
description: '',
},
onSubmit: (values: any) => {
console.log(JSON.stringify(values, null, 2));
console.log(google_protobuf_struct_pb);
const client = new scaffolderV1.Client('http://localhost:8080');
const req = new scaffolderV1.CreateRequest();
req.setComponentId(values.entityId);
req.setTemplateId(templateId);
req.setMetadata(
new google_protobuf_struct_pb.Struct({
fields: {
description: values.description,
},
new google_protobuf_struct_pb.Struct.fromJavaScript({
description: values.description,
}),
);
req.setPrivate(false);