Skip to content
This repository has been archived by the owner on Dec 4, 2021. It is now read-only.

Add Docker to Containerize RPC Services #33

Closed
wants to merge 2 commits into from
Closed

Add Docker to Containerize RPC Services #33

wants to merge 2 commits into from

Conversation

evanugarte
Copy link
Collaborator

@evanugarte evanugarte commented Apr 13, 2020

Waiting on #44

Resolves #32

How to Test this PR

  1. Install docker using this guide
  2. Install docker-compose like this
  3. In SCE-RPC directory, type sudo docker-compose up. This will create 3 containers for each RPC service.
  4. Run sudo docker ps to get the container id of a running service
  5. With a chosen id, do sudo docker inspect <id> to find the ip addres
  6. Test that the client can talk to the container by adding a snippet of code to invoke the RPC.

For example in client/ledsign/led_sign_client.js

async function main() {
  await healthCheck('doodie', '172.18.0.4')
  .then(res => console.log('we got', res))
  .catch(err => console.log('nO!', err))
}

main()

@evanugarte evanugarte added the enhancement New feature or request label Apr 13, 2020
@evanugarte evanugarte self-assigned this Apr 13, 2020
@evanugarte
Copy link
Collaborator Author

Closing this due to this article

@evanugarte evanugarte closed this Jul 24, 2020
@evanugarte evanugarte deleted the docker branch July 24, 2020 16:26
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Add Docker to Containerize RPC Services
1 participant