@@ -156,7 +156,7 @@ It is also possible to pass a parameter file:
156
156
157
157
### Docker images
158
158
SNB Datagen images are available via [ Docker Hub] ( https://hub.docker.com/orgs/ldbc/repositories ) .
159
- The image tags follow the pattern ` ${DATAGEN_VERSION}-${PLATFORM_VERSION} ` , e.g ` ldbc/datagen-standalone:0.5.0-2.12_spark3.1 ` .
159
+ The image tags follow the pattern ` ${DATAGEN_VERSION/+/- }-${PLATFORM_VERSION} ` , e.g ` ldbc/datagen-standalone:0.5.0-2.12_spark3.2 ` .
160
160
161
161
When building images ensure that you [ use BuildKit] ( https://docs.docker.com/develop/develop-images/build_enhancements/#to-enable-buildkit-builds ) .
162
162
@@ -170,27 +170,28 @@ docker run \
170
170
--mount type=bind,source=" $( pwd) " /out_sf0.003_interactive,target=/out \
171
171
--mount type=bind,source=" $( pwd) " /conf,target=/conf,readonly \
172
172
-e SPARK_CONF_DIR=/conf \
173
- ldbc/datagen-standalone:latest --parallelism 1 -- --format csv --scale-factor 0.003 --mode interactive
173
+ ldbc/datagen-standalone:${DATAGEN_VERSION / + / -} - ${PLATFORM_VERSION} --parallelism 1 -- --format csv --scale-factor 0.003 --mode interactive
174
174
```
175
175
176
176
The standalone Docker image can be built with the provided Dockerfile. To build, execute the following command from the repository directory:
177
177
178
178
``` bash
179
- docker build . --target=standalone -t ldbc/datagen-standalone:latest
179
+ docker build . --target=standalone -t ldbc/datagen-standalone:${DATAGEN_VERSION / + / -} - ${PLATFORM_VERSION}
180
180
```
181
181
182
182
#### JAR-only image
183
183
The ` ldbc/datagen-jar ` image contains the assembly JAR, so it can bundled in your custom container:
184
184
185
185
``` docker
186
186
FROM my-spark-image
187
- COPY --from=ldbc/datagen-jar:latest /jar /lib/ldbc-datagen.jar
187
+ ARG VERSION
188
+ COPY --from=ldbc/datagen-jar:$VERSION /jar /lib/ldbc-datagen.jar
188
189
```
189
190
190
191
The JAR-only Docker image can be built with the provided Dockerfile. To build, execute the following command from the repository directory:
191
192
192
193
``` bash
193
- docker build . --target=jar -t ldbc/datagen-jar:latest
194
+ docker build . --target=jar -t ldbc/datagen-jar:${DATAGEN_VERSION / + / -} - ${PLATFORM_VERSION}
194
195
```
195
196
### Elastic MapReduce
196
197
0 commit comments