From fec023866e13ede8be725b64e9a9a020f06f534d Mon Sep 17 00:00:00 2001 From: Oscar Hinton Date: Thu, 24 Mar 2022 21:23:29 +0100 Subject: [PATCH] Add utils for testing updating processes (#1448) --- package.json | 1 + scripts/dev/.gitignore | 1 + scripts/dev/docker-compose.yml | 19 +++++++++++++++++++ 3 files changed, 21 insertions(+) create mode 100644 scripts/dev/.gitignore create mode 100644 scripts/dev/docker-compose.yml diff --git a/package.json b/package.json index 6095a01c78..e31c01a044 100644 --- a/package.json +++ b/package.json @@ -57,6 +57,7 @@ "publish:mac": "npm run build && npm run clean:dist && electron-builder --mac -p always", "publish:mac:mas": "npm run dist:mac:mas && npm run upload:mas", "publish:win": "npm run build && npm run clean:dist && electron-builder --win --x64 --arm64 --ia32 -p always -c.win.certificateSubjectName=\"8bit Solutions LLC\"", + "publish:win:dev": "npm run build && npm run clean:dist && electron-builder --win --x64 --arm64 --ia32 -p always", "upload:mas": "xcrun altool --upload-app --type osx --file \"$(find ./dist/mas-universal/Bitwarden*.pkg)\" --username $APPLE_ID_USERNAME --password $APPLE_ID_PASSWORD", "prettier": "prettier --write .", "prepare": "husky install" diff --git a/scripts/dev/.gitignore b/scripts/dev/.gitignore new file mode 100644 index 0000000000..1269488f7f --- /dev/null +++ b/scripts/dev/.gitignore @@ -0,0 +1 @@ +data diff --git a/scripts/dev/docker-compose.yml b/scripts/dev/docker-compose.yml new file mode 100644 index 0000000000..e6332def40 --- /dev/null +++ b/scripts/dev/docker-compose.yml @@ -0,0 +1,19 @@ +version: "3" + +services: + minio: + image: minio/minio + command: server /data --console-address ":9001" + ports: + - "9000:9000" + - "9001:9001" + # environment: + # MINIO_ROOT_USER: minioadmin + # MINIO_ROOT_PASSWORD: minioadmin + healthcheck: + test: ["CMD", "curl", "-f", "http://localhost:9000/minio/health/live"] + interval: 30s + timeout: 20s + retries: 3 + volumes: + - ./data:/data