diff --git a/.circleci/config.yml b/.circleci/config.yml deleted file mode 100644 index c22883c..0000000 --- a/.circleci/config.yml +++ /dev/null @@ -1,80 +0,0 @@ -version: 2 -defaults: &defaults - docker: - - image: circleci/python:2.7.18-stretch-browsers -install_dependency: &install_dependency - name: Installation of build and deployment dependencies. - command: | - sudo apt install jq - sudo pip install awscli --upgrade - sudo pip install docker-compose -install_deploysuite: &install_deploysuite - name: Installation of install_deploysuite. - command: | - git clone --branch v1.4.3 https://github.com/topcoder-platform/tc-deploy-scripts ../buildscript - cp ./../buildscript/master_deploy.sh . - cp ./../buildscript/buildenv.sh . - cp ./../buildscript/awsconfiguration.sh . -restore_cache_settings_for_build: &restore_cache_settings_for_build - key: docker-node-modules-{{ checksum "package-lock.json" }} - -save_cache_settings: &save_cache_settings - key: docker-node-modules-{{ checksum "package-lock.json" }} - paths: - - node_modules - -builddeploy_steps: &builddeploy_steps - - checkout - - setup_remote_docker - - run: *install_dependency - - run: *install_deploysuite - - restore_cache: *restore_cache_settings_for_build - - run: ./build.sh ${APPNAME} - - save_cache: *save_cache_settings - - deploy: - name: Running MasterScript. - command: | - ./awsconfiguration.sh $DEPLOY_ENV - source awsenvconf - ./buildenv.sh -e $DEPLOY_ENV -b ${LOGICAL_ENV}-${APPNAME}-deployvar - source buildenvvar - ./master_deploy.sh -d ECS -e $DEPLOY_ENV -t latest -s ${LOGICAL_ENV}-global-appvar,${LOGICAL_ENV}-${APPNAME}-appvar -i ${APPNAME} - - -jobs: - # Build & Deploy against development backend - "build-dev": - <<: *defaults - environment: - DEPLOY_ENV: "DEV" - LOGICAL_ENV: "dev" - APPNAME: "u-bahn-user-skills-processor" - steps: *builddeploy_steps - - "build-prod": - <<: *defaults - environment: - DEPLOY_ENV: "PROD" - LOGICAL_ENV: "prod" - APPNAME: "u-bahn-user-skills-processor" - steps: *builddeploy_steps - -workflows: - version: 2 - build: - jobs: - # Development builds are executed on "develop" branch only. - - "build-dev": - context : org-global - filters: - branches: - only: - - develop - - # Production builds are exectuted only on tagged commits to the - # master branch. - - "build-prod": - context : org-global - filters: - branches: - only: master diff --git a/README.md b/README.md index d795b56..828e811 100644 --- a/README.md +++ b/README.md @@ -1,3 +1,5 @@ +# DEPRECATED - Feb 1, 2024 - see https://topcoder.atlassian.net/browse/CORE-203 + # UBahn - User Skills Processor Sync the skills for a user in u-bahn with the skills in members api @@ -15,11 +17,11 @@ The following parameters can be set in config files or in env variables: - LOG_LEVEL: the log level; default value: 'debug' - KAFKA_URL: comma separated Kafka hosts; default value: 'localhost:9092' - KAFKA_CLIENT_CERT: Kafka connection certificate, optional; default value is undefined; - if not provided, then SSL connection is not used, direct insecure connection is used; - if provided, it can be either path to certificate file or certificate content + if not provided, then SSL connection is not used, direct insecure connection is used; + if provided, it can be either path to certificate file or certificate content - KAFKA_CLIENT_CERT_KEY: Kafka connection private key, optional; default value is undefined; - if not provided, then SSL connection is not used, direct insecure connection is used; - if provided, it can be either path to private key file or private key content + if not provided, then SSL connection is not used, direct insecure connection is used; + if provided, it can be either path to private key file or private key content - KAFKA_GROUP_ID: the Kafka group id, default value is 'skill-record-processor' - SKILL_SYNC_TOPIC: the sync skill Kafka message topic, default value is 'backgroundjob.sync.user.skills' - UBAHN_API_URL: The ubahn api url, default value: 'https://api.topcoder-dev.com/v5' @@ -54,27 +56,27 @@ There is a `/health` endpoint that checks for the health of the app. This sets u 2. From the project root directory, run the following command to install the dependencies - ```bash - npm install - ``` + ```bash + npm install + ``` 3. To run linters if required - ```bash - npm run lint - ``` + ```bash + npm run lint + ``` - To fix possible lint errors: + To fix possible lint errors: - ```bash - npm run lint:fix - ``` + ```bash + npm run lint:fix + ``` 4. Start the processor and health check dropin - ```bash - npm start - ``` + ```bash + npm start + ``` ## Local Deployment with Docker @@ -88,9 +90,9 @@ To run the Skill Record Processor using docker, follow the below steps 4. Once that is done, run the following command - ```bash - docker-compose up - ``` + ```bash + docker-compose up + ``` 5. When you are running the application for the first time, It will take some time initially to download the image and install the dependencies @@ -98,10 +100,10 @@ To run the Skill Record Processor using docker, follow the below steps 1. config `AUTH0_CLIENT_ID`, `AUTH0_CLIENT_SECRET` 2. start kafka-console-producer to write messages to `backgroundjob.sync.user.skills` - `docker exec -it skill-record-processor_kafka /opt/kafka/bin/kafka-console-producer.sh --broker-list localhost:9092 --topic backgroundjob.sync.user.skills` + `docker exec -it skill-record-processor_kafka /opt/kafka/bin/kafka-console-producer.sh --broker-list localhost:9092 --topic backgroundjob.sync.user.skills` 3. write message: - `{ "topic": "backgroundjob.sync.user.skills", "originator": "backgroundjob.service", "timestamp": "2021-05-08T00:00:00.000Z", "mime-type": "application/json", "payload": {"id":"88774616","handle":"billsedison","firstName":"Sachin1","lastName":"Kumar1"} }` + `{ "topic": "backgroundjob.sync.user.skills", "originator": "backgroundjob.service", "timestamp": "2021-05-08T00:00:00.000Z", "mime-type": "application/json", "payload": {"id":"88774616","handle":"billsedison","firstName":"Sachin1","lastName":"Kumar1"} }` 4. Watch the app console, It will show message successfully handled. 5. write non handle message: - `{ "topic": "backgroundjob.sync.user.skills", "originator": "backgroundjob.service", "timestamp": "2021-05-08T00:00:00.000Z", "mime-type": "application/json", "payload": {"id":"88774616","firstName":"Sachin1","lastName":"Kumar1"} }` -6. watch the app console, it will show the ignoring message + `{ "topic": "backgroundjob.sync.user.skills", "originator": "backgroundjob.service", "timestamp": "2021-05-08T00:00:00.000Z", "mime-type": "application/json", "payload": {"id":"88774616","firstName":"Sachin1","lastName":"Kumar1"} }` +6. watch the app console, it will show the ignoring message
Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.
Alternative Proxies: