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

Add Docker to Containerize RPC Services - #33

Closed
evanugarte wants to merge 2 commits into
masterfrom
docker
Closed

Add Docker to Containerize RPC Services#33
evanugarte wants to merge 2 commits into
masterfrom
docker

Conversation

@evanugarte

@evanugarteevanugarte commented Apr 13, 2020

Copy link
Copy Markdown
Collaborator

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

asyncfunctionmain(){awaithealthCheck('doodie','172.18.0.4').then(res=>console.log('we got',res)).catch(err=>console.log('nO!',err))}main()

@evanugarte

Copy link
Copy Markdown
CollaboratorAuthor

Closing this due to this article

@evanugarte
evanugarte deleted the docker branch July 24, 2020 16:26
Sign up for freeto subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

enhancementNew feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add Docker to Containerize RPC Services

1 participant

@evanugarte