Skip to content

Commit bbad5ed

Browse files
committed
improved update process by removing host dependency
1 parent 4cc530b commit bbad5ed

3 files changed

Lines changed: 48758 additions & 48758 deletions

File tree

server/preprocessing/other-scripts/update_contentproviders.R

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ tryCatch({
4040
triple <- list(name = "GoTriple", internal_name = "fttriple")
4141
contentproviders <- rbind(contentproviders, triple)
4242

43-
write(toJSON(contentproviders), file = output_path)
43+
write(toJSON(contentproviders, pretty = TRUE), file = output_path)
4444
log$info(paste("contentproviders.json updated:", output_path,
4545
"", nrow(contentproviders), "entries"))
4646
}, error = function(err) {

server/workers/build_docker_images.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ echo ""
1212
docker exec dev-base-1 Rscript /headstart/other-scripts/update_contentproviders.R \
1313
/headstart/other-scripts \
1414
/common/contentproviders.json
15-
docker cp dev-base-1:/common/contentproviders.json - | tar -xO | python3 -c "import json,sys; print(json.dumps(json.load(sys.stdin), indent=4, ensure_ascii=False))" > "$CONTENTPROVIDERS_FILE"
15+
docker cp dev-base-1:/common/contentproviders.json "$CONTENTPROVIDERS_FILE"
1616

1717
# Commit if the file changed
1818
cd "$SCRIPT_DIR/../.." && git diff --quiet "$CONTENTPROVIDERS_FILE"

0 commit comments

Comments
 (0)