Sign inSign up

beliaievlas/passwordstorageappspring-app

By beliaievlas

•Updated over 3 years ago

Simple Password Storage Application

Image
0

229

beliaievlas/passwordstorageappspring-app repository overview

⁠Configuration:

Environment vairables are passed to the run command for configuring a PasswordStorage container.

NameDefaultDescription
BACKBLAZE_APPLICATION_KEY_ID''REQUIRED property. backblaze application key id
BACKBLAZE_APPLICATION_KEY''REQUIRED property. backblaze application key
BACKBLAZE_USER_AGENT''REQUIRED property. backblaze user agent
BACKBLAZE_BUCKET_PASSWORD_STORAGE_NAME''REQUIRED property.. Backblaze bucket name
MONGODB_URI'mongodb://localhost:27017'Optional.MongoDB uri
SECRET_JWT_PASSWORD${random.value}Jwt secret
SECRET_KEY_PAIR_PASSWORD${random.value}key pair passwords secret
⁠Start Application via Kubernetes Locally:
  1. Run minikube: minikube start --vm-driver=docker
  2. Apply Configuration via ConfigMap/Secrets
  3. Apply Configuration files: kubectl apply kuber/*
  4. Make the External Service accessible: minikube service passwordstorageapp
⁠Start Application via docker-compose Locally:
  1. Run docker-compose build
  2. Run docker-compose up
⁠Deploy application to GCP Cloud Run (Run in Cloud Shell):
docker pull beliaievlas/passwordstorageappspring-app:latest
docker tag docker.io/beliaievlas/passwordstorageappspring-app:latest gcr.io/password-storage-357716/beliaievlas/passwordstorageappspring-app:latest
docker push gcr.io/password-storage-357716/beliaievlas/passwordstorageappspring-app:latest
⁠(Optional) To be able to run get-credentials-by-service.sh, put-credentials.sh as programs, follow the steps of the example:
  1. Run chmod u+x myfile.sh
  2. Run cp myfile.sh /usr/local/bin
  3. Run code ~/.zshrc and add the following line:
    1. alias myfile=./myfile.sh
    2. Save and exit
  4. execute the following command-line exec zsh
  5. Test running myfile in terminal
  6. Congratulations! You are able to run get-credentials-by-service.sh, put-credentials.sh file as a program
# put-credentials.sh
putcr <serviceName> <login> <password> <description>
# get-credentials.sh
getcr <serviceName>
# get-services.sh
getservices 
# delete-credentials.sh
delcr <serviceName>

Tag summary

Content type

Image

Digest

sha256:461070f8e…

Size

123.7 MB

Last updated

over 3 years ago

docker pull beliaievlas/passwordstorageappspring-app:1.0.1