Page MenuHomePhabricator

[ecash-herald] Add docker files for automated prod deployments
ClosedPublic

Authored by bytesofman on Aug 1 2023, 00:05.

Details

Summary

Adding docker files to be used by a teamcity build.

Note: secrets.js will need to be manually created on the eventual prod server

Test Plan

Review files and assess if this is ok for teamcity deployment, in particular please advise on any preferred approaches for maintaining a secrets.js. We will end up using a similar approach for alias-server

To test it locally:

  1. cp secrets.sample.js secrets.js
  2. Update secrets.js
docker build -t herald_local .
docker run --init --rm --name herald herald_local

and msgs send with your specified bot to your specified channel as blocks come in

Diff Detail

Repository
rABC Bitcoin ABC
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

The docker-compose file brings no value imo as long as there is a single container

apps/ecash-herald/.dockerignore
2 ↗(On Diff #41660)

Macro newlinebernie:

apps/ecash-herald/docker-compose.yml
8 ↗(On Diff #41660)

That's wrong, you're not using the nodejs image since you're building yours

Fabien requested changes to this revision.Aug 1 2023, 05:30
This revision now requires changes to proceed.Aug 1 2023, 05:30

remove docker-compose, add newline

This revision is now accepted and ready to land.Aug 1 2023, 17:38