Skip to content

PratikMahajan/Twitter-Knative-Serverless-Video-Download

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

29 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Twitter Knative Serverless Video Download

Get Video Download URL of quoted tweet. Built on Knative Serving

Setup

Twitter API keys

Add your Twitter API keys in secrets.yaml file in deploy/templates.

Check secrets.yaml.example file in deploy/templates for reference

All the secrets should be in base64 format in the secrets.yaml
P.S. your secrets file should always be gitignored and dockerignored to avoid leaking secrets

RUN

Build the docker image

make docker-build

Run the docker image on local machine

make docker-run
The default entrypoint while running the docker image on local machine is /bin/sh

Upload the docker image to dockerhub

make docker-push

Build and Upload the docker image to repository

make docker

Deploy the image to kubernetes/knative cluster

Make sure you have knative installed on the cluster

Deploy the image to Staging

make staging
It creates a docker image from your current working directory and uploads it to docker hub before depolying the image \

If you are looking to deploy to staging without building and pushing docker image, use
make staging-rollout

Deploy the image to Production

make production
Takes the latest production image from docker hub to deploy
Make sure you have github webhooks configured on dockerhub

Misc.

  • To change the default namespace and docker repository see Makefile

About

Twitter Video Downloader build on Kubernetes using Knative Serving

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published