Skip to content

CuteChuanChuan/__SideProject__BikeOpenData-Producer

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Bike OpenData - Producer

Overview

This repo includes a producer which call the Bike OpenData API and send the data to Kafka.

Deployment

  1. create fat jar (sbt clean assembly)
  2. create docker image and push to registry
  3. use AWS Fargate to run the docker image

Some steps of configuration

Upload image to AWS ECR (things in curly brackets means you need to replace it with your own values)

  1. login to AWS ECR
    (aws ecr get-login-password --region {Region} | docker login --username AWS --password-stdin {AWS_ACCOUNT_ID}.dkr.ecr.{Region}.amazonaws.com)
  2. create repository
  3. tag the image
    (docker tag {localImageName}:{tag} {AWS_ACCOUNT_ID}.dkr.ecr.{Region}.amazonaws.com/{repositoryName}:{tag})
  4. push the image
    (docker push {AWS_ACCOUNT_ID}.dkr.ecr.{Region}.amazonaws.com/{repositoryName}:{tag})

Related projects

  • Consumer (read message from kafka and insert into postgres): Link

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published