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)
Sun, Nov 10, 11:08 PM
Unknown Object (File)
Fri, Nov 8, 10:05 AM
Unknown Object (File)
Fri, Nov 8, 10:05 AM
Unknown Object (File)
Fri, Nov 8, 10:05 AM
Unknown Object (File)
Fri, Nov 8, 10:05 AM
Unknown Object (File)
Fri, Nov 8, 10:05 AM
Unknown Object (File)
Tue, Nov 5, 4:48 PM
Unknown Object (File)
Tue, Nov 5, 4:48 PM
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
Branch
barthap/backup-svc-docker
Lint
No Lint Coverage
Unit
No Test Coverage

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