File tree 1 file changed +14
-3
lines changed
1 file changed +14
-3
lines changed Original file line number Diff line number Diff line change @@ -132,19 +132,30 @@ Whenever you make changes to your data model definitions or update the code
132
132
generators and/or skeleton server projects ` graphql-server ` or
133
133
` single-page-app ` , you should repeat the following code generation.
134
134
135
+ #### Create files as current user
136
+
137
+ To generate code files from within a Docker container into which external host
138
+ folders are mounted, you need to start the respective Docker container as the
139
+ yourself.
140
+
141
+ First, find out your user and your group identifiers by running ` id ` in a terminal.
142
+ Remember your user ID (` uid ` ) and your group ID (` gid ` ).
143
+
135
144
#### Generate the GraphQL server
136
145
137
146
```
138
- docker run --rm -it -v `pwd`:/opt --user 1000:1000 sciencedb-code-generators:latest
139
- graphql-server-model-codegen generate --jsonFiles /opt/data_model_definitions -o /opt/graphql-server
147
+ docker run --rm -it -v `pwd`:/opt --user <your_uid>:<your_gid> sciencedb-code-generators:latest
148
+ graphql-server-model-codegen --jsonFiles /opt/data_model_definitions -o /opt/graphql-server
140
149
```
150
+ where ` <your_uid> ` and ` <your_gid> ` are your user ID and your group ID, respectively.
141
151
142
152
#### Generate the Single Page Application (SPA) server
143
153
144
154
```
145
- docker run --rm -it -v `pwd`:/opt --user 1000:1000 sciencedb-code-generators:latest
155
+ docker run --rm -it -v `pwd`:/opt --user <your_uid>:<your_gid> sciencedb-code-generators:latest
146
156
single-page-app-codegen --jsonFiles /opt/data_model_definitions -o /opt/single-page-app
147
157
```
158
+ where ` <your_uid> ` and ` <your_gid> ` are your user ID and your group ID, respectively.
148
159
149
160
### Multiple code generation
150
161
You can’t perform that action at this time.
0 commit comments