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
Branch
herald-docker
Lint
Lint Passed
Unit
No Test Coverage
Build Status
Buildable 24643
Build 48883: Build Diffecash-herald-tests
Build 48882: arc lint + arc unit

Event Timeline

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

apps/ecash-herald/.dockerignore
2

Macro newlinebernie:

apps/ecash-herald/docker-compose.yml
8

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