Skip to content

Commit

Permalink
Purge temporary container used during build
Browse files Browse the repository at this point in the history
  • Loading branch information
findepi authored and losipiuk committed Sep 10, 2021
1 parent b3d5121 commit b632ef7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion bin/generate-sources.sh
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,6 @@ SOURCE_DIR=src/main/thrift
TARGET_DIR=target/generated-sources/thrift
rm -rf "${ROOT_DIR:?}/${TARGET_DIR}"
mkdir -p "${ROOT_DIR}/${TARGET_DIR}"
docker run -u "$(id -u)" -v "${ROOT_DIR}:/rundir" thrift:0.9.3 thrift -o /rundir/${TARGET_DIR} --gen java:beans,hashcode,generated_annotations=undated /rundir/${SOURCE_DIR}/hive_metastore.thrift
docker run -u "$(id -u)" -v "${ROOT_DIR}:/rundir" --rm thrift:0.9.3 thrift -o /rundir/${TARGET_DIR} --gen java:beans,hashcode,generated_annotations=undated /rundir/${SOURCE_DIR}/hive_metastore.thrift
mv "${ROOT_DIR}/${TARGET_DIR}"/gen-javabean/* "${ROOT_DIR}/${TARGET_DIR}"
rmdir "${ROOT_DIR}/${TARGET_DIR}"/gen-javabean

0 comments on commit b632ef7

Please sign in to comment.