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)
Fri, Dec 20, 5:07 AM
Unknown Object (File)
Fri, Dec 20, 4:25 AM
Unknown Object (File)
Fri, Dec 20, 4:25 AM
Unknown Object (File)
Fri, Dec 20, 4:25 AM
Unknown Object (File)
Fri, Dec 20, 4:24 AM
Unknown Object (File)
Fri, Dec 20, 4:17 AM
Unknown Object (File)
Sun, Dec 8, 7:29 AM
Unknown Object (File)
Sun, Dec 1, 1:05 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
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
  • 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