Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Local Docker Setup for tc-project-service
Non-Topcoder Services
docker-compose.yml
file underlocal/full
extends the all services present inlocal/docker-compose.yml
using theextends
keyword.2181
and9092
respectively.tc-notifictations
. No host port is mapped to this, and is only available internally by other services on port5432
.kafka-client
has been included. The sole purpose of this service is to create all topics listed underlocal/full/kafka-client/topics.txt
. The service exists after all topics have been created.Topcoder Services
local/full/generic-tc-service/Dockerfile
GIT_URL
andGIT_BRANCH
BYPASS_TOKEN_VALIDATION
, which if set to1
will add the required line to bypass token validation innode_modules/tc-core-library-js/lib/auth/verifier.js
.kafka-client
to create all required topics and exit.host.docker.internal
. This hostname works out of the box for the "Docker For Mac" application. To handle the case of Linux based hosts, an entry is made into/etc/hosts
on conatiner startup such that it resolves to the host IP.tc-notifications
service. Three services extend this base configuration, one for each of the three commands:npm run start
npm run startAPI
npm run reset:db