Skip to content

Commit 8ddc48d

Browse files
committed
Change Docker configuration to allow accessing substitution parameters
1 parent 4f296a6 commit 8ddc48d

File tree

3 files changed

+7
-2
lines changed

3 files changed

+7
-2
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,3 +44,4 @@ local.properties
4444
/*.txt
4545
/*.csv
4646
out/
47+
datagen_output/

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -60,8 +60,8 @@ In order to run the container, a `params.ini` file is required. For reference, p
6060
The container will output its results in the `/opt/ldbc_snb_datagen/social_network/` directory. In order to save the results of the generation, a directory must be mounted in the container from the host:
6161

6262
```bash
63-
mkdir datagen_output
64-
docker run --rm --mount type=bind,source="$(pwd)/datagen_output/",target="/opt/ldbc_snb_datagen/social_network/" --mount type=bind,source="$(pwd)/params.ini",target="/opt/ldbc_snb_datagen/params.ini" ldbc/datagen
63+
mkdir out
64+
docker run --rm --mount type=bind,source="$(pwd)/datagen_output/",target="/opt/ldbc_snb_datagen/out" --mount type=bind,source="$(pwd)/params.ini",target="/opt/ldbc_snb_datagen/params.ini" ldbc/datagen
6565
```
6666

6767
If the memory limit has to be raised, the `-e HADOOP_CLIENT_OPTS="-Xmx..."` parameter can override the default `-Xmx8G` value.

docker_run.sh

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,3 +17,7 @@ rm -f m*activityFactors*
1717
rm -f .m*activityFactors*
1818
rm -f m0friendList*
1919
rm -f .m0friendList*
20+
21+
# Move stuff to directory mounted to the host machine
22+
mv social_network/ out/
23+
mv substitution_parameters/ out/

0 commit comments

Comments
 (0)