Page MenuHomePhabricator

[services][backup] Use Rust service in Dockerfile
ClosedPublic

Authored by bartek on Jan 13 2023, 12:06 PM.
Tags
None
Referenced Files
Unknown Object (File)
Wed, May 1, 2:46 PM
Unknown Object (File)
Mar 31 2024, 10:51 AM
Unknown Object (File)
Mar 31 2024, 10:51 AM
Unknown Object (File)
Mar 31 2024, 10:51 AM
Unknown Object (File)
Mar 31 2024, 10:50 AM
Unknown Object (File)
Mar 31 2024, 10:40 AM
Unknown Object (File)
Mar 13 2024, 1:41 AM
Unknown Object (File)
Mar 13 2024, 1:41 AM
Subscribers

Details

Summary

Resolves ENG-2701

  • Mostly copy-pasted Dockerfile from Blob service
  • Made it more flexible by moving LOCALSTACK_URL and BLOB_SERVICE_URL to docker-compose.yml config
  • I left COMM_SERVICES_SANDBOX handled internally in-app, because it is more flexible - distinguishes truthy and falsy values - see this line

Depends on D6246

Test Plan
cd services
yarn init-local-cloud

# now this also starts blob service automatically
# no need to run 'yarn run-blob-service'
yarn run-backup-service-in-sandbox

# in a separate terminal
yarn run-integration-tests backup

Diff Detail

Repository
rCOMM Comm
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

bartek held this revision as a draft.
services/backup/Dockerfile
49–52 ↗(On Diff #20952)
  • I know that a preferred way is to use the CMD ["command", "arg1" ...] syntax, but it doesn't parse variables
  • I passed in the COMM_SERVICES_SANDBOX env var instead of the --sandbox flag, because the in-app parser will automatically recognize truthy/falsy values ("true"/"false", "1"/"0" etc) better than scripting here
bartek published this revision for review.Jan 13 2023, 12:14 PM
This revision is now accepted and ready to land.Jan 17 2023, 11:22 AM