Sign inSign up

denfle/interbau-ag

By denfle

Updated over 1 year ago

Website Interbau AG

Image
0

1.3K

denfle/interbau-ag repository overview

Prerquisits

  • Docker Installed!
  • Login to Docker with access to repository denfle
  • NPM Installed

Development

Clone the Repository

git clone xxx

Install the Node dependencies

npm install
Connect to MongoDb in the k8s cluster
 export MONGODB_ROOT_PASSWORD=$(kubectl get secret --namespace interbau interbauag-mongodb-dev.interbau.svc.cluster.local -o jsonpath="{.data.mongodb-root-password}" | base64 --decode)

kubectl port-forward --namespace interbau svc/interbauag-mongodb-dev 443:443 & mongosh --host 127.0.0.1 --authenticationDatabase admin -p $MONGODB_ROOT_PASSWORD
Start the App in development mode

This will automatically restart the node server for each file chnge

npm run start:dev

The Landingpage can be developed for differnt versions which can be actived in a pod

var getActiveVersion = function () {
    return process.ACTIVE_VERSION || 'v1';
}

Activation of a specific version in the POD yaml k8s deployment file

    env:
    - name: ACTIVE_VERSION
      value: "v2"

Deploy development to k8s cluster

Deploy app to Kubernetes Cluster

k apply -f ./scripts/k8s-deployment-dev.yaml

The application will be accessible under

http://treppenlift-landingpage-dev.dennisfleischmann.de/

Tag summary

Content type

Image

Digest

sha256:19f098f9c

Size

1.6 GB

Last updated

over 1 year ago

docker pull denfle/interbau-ag