Create zip on macos without the hidden directories (for elasticbeanstalk)
zip -rX v0.49.4.zip . -x '**/.DS_Store' -x '.DS_Store'
unzip -v v0.49.4.zip| date -u '+%Y.%m.%d%H%M' |
| #!/usr/bin/env bash | |
| ./gradlew -version | |
| ./gradlew shadowJar --no-daemon | |
| jdkModules=$(jdeps --print-module-deps --ignore-missing-deps ./build/libs/application.jar) | |
| echo "Building JRE with modules: $jdkModules" | |
| rm -rf ./build/libs/jre | |
| jlink --compress zip-6 --strip-debug --no-header-files --no-man-pages --output ./build/libs/jre --add-modules "$jdkModules" |
| # Empty bucket | |
| rclone delete --rmdirs {{config_name}}:{{bucket_name}} |
| - name: Check DB schema docs | |
| run: | | |
| DOCS_FOLDER="/tmp/qweebi-docs-gen/" | |
| mkdir -p $DOCS_FOLDER | |
| chmod 777 $DOCS_FOLDER | |
| ./flyway/generate_db_docs.sh versions.env -nohtml $DOCS_FOLDER | |
| GENERATED_SCHEMA_HASH=$(md5sum -t /tmp/qweebi-docs-gen/db.public.xml | cut -c 1-32) | |
| EXISTING_SCHEMA_HASH=$(md5sum -t ./flyway/docs/db.public.xml | cut -c 1-32) | |
| echo "Generated schema hash: $GENERATED_SCHEMA_HASH, Saved schema hash: $EXISTING_SCHEMA_HASH" |
| ARG NODE_VERSION | |
| # Typescript build | |
| FROM node:$NODE_VERSION as builder | |
| # Server build | |
| WORKDIR /src | |
| COPY ./src ./src | |
| COPY index.ts ./ | |
| COPY tracing.ts ./ |
zip -rX v0.49.4.zip . -x '**/.DS_Store' -x '.DS_Store'
unzip -v v0.49.4.zip| Get-AppxPackage Microsoft.XboxGamingOverlay | Remove-AppxPackage | |
| reg add HKEY_CURRENT_USER\SOFTWARE\Microsoft\Windows\CurrentVersion\GameDVR /f /t REG_DWORD /v "AppCaptureEnabled" /d 0 | |
| reg add HKEY_CURRENT_USER\System\GameConfigStore /f /t REG_DWORD /v "GameDVR_Enabled" |
| import { PostgreSqlContainer, StartedPostgreSqlContainer } from "@testcontainers/postgresql" | |
| class ResettablePostgreSqlContainer extends PostgreSqlContainer { | |
| private dumpSaveDirectory: string = "" | |
| override async start(): Promise<StartedResettablePostgreSqlContainer> { | |
| const container = await super.start() | |
| return new StartedResettablePostgreSqlContainer(this.dumpSaveDirectory, container) | |
| } |
| kill -9 $(lsof -ti:8080) |
| python3 -m http.server 8080 |