debug fix
This commit is contained in:
parent
7c7c1a98b6
commit
73751ed456
2 changed files with 5 additions and 0 deletions
|
|
@ -4,4 +4,6 @@ ADD combined_update_ddl.sql /init.sql
|
||||||
|
|
||||||
RUN apk add --update --no-cache postgresql-client
|
RUN apk add --update --no-cache postgresql-client
|
||||||
|
|
||||||
|
RUN ls
|
||||||
|
|
||||||
CMD [ "sh", "-c", "psql -U clearing -h db -p 5432 -d clearing -f init.sql" ]
|
CMD [ "sh", "-c", "psql -U clearing -h db -p 5432 -d clearing -f init.sql" ]
|
||||||
|
|
@ -111,6 +111,7 @@ def stop_docker_compose() -> None:
|
||||||
|
|
||||||
|
|
||||||
def combine_ddl_updates_into_file():
|
def combine_ddl_updates_into_file():
|
||||||
|
logging.info(f"Combining DDLs...")
|
||||||
pattern = re.compile(r'updateDDL_(\d+)\.(\d+)\.sql$')
|
pattern = re.compile(r'updateDDL_(\d+)\.(\d+)\.sql$')
|
||||||
|
|
||||||
files = []
|
files = []
|
||||||
|
|
@ -130,6 +131,8 @@ def combine_ddl_updates_into_file():
|
||||||
content = infile.read().rstrip('\n')
|
content = infile.read().rstrip('\n')
|
||||||
outfile.write(content + '\n\n')
|
outfile.write(content + '\n\n')
|
||||||
|
|
||||||
|
logging.info(f"Result: {os.listdir(f'{CLR_TEST_DIR}/db-updater')}")
|
||||||
|
|
||||||
|
|
||||||
def main() -> None:
|
def main() -> None:
|
||||||
folders = [i for i in sorted(os.listdir(DATA_ROOT_DIR)) if re.search("\\d{1,}.\\d{1,}.*", i)]
|
folders = [i for i in sorted(os.listdir(DATA_ROOT_DIR)) if re.search("\\d{1,}.\\d{1,}.*", i)]
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue