This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
FROM golang:alpine | |
RUN adduser -D app -h /go/ | |
ADD code/src /go/src/enrichment/ | |
RUN chown -R app:app /go/ | |
WORKDIR /go/src/enrichment/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ npm install config | |
$ mkdir config | |
$ vi config/default.json | |
{ | |
"Customer": { | |
"dbConfig": { | |
"host": "localhost", | |
"port": 5984, | |
"user": "dbuser", |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const fs = require('fs') | |
const path = require('path') | |
try { | |
fs.unlinkSync(path.join(__dirname, 'local.json')) | |
} catch (err) {} | |
const AWS = require('aws-sdk') | |
AWS.config.update({ region: 'us-east-1' }) | |
const ssm = new AWS.SSM() | |
var serviceName = require('../package.json').name |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#Output | |
apiVersion: networking.k8s.io/v1 | |
kind: Ingress | |
metadata: | |
annotations: | |
alb.ingress.kubernetes.io/scheme: internet-facing | |
alb.ingress.kubernetes.io/target-type: ip | |
kubernetes.io/ingress.class: alb | |
creationTimestamp: null | |
labels: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#Output | |
apiVersion: networking.k8s.io/v1 | |
kind: Ingress | |
metadata: | |
annotations: | |
alb.ingress.kubernetes.io/scheme: internet-facing | |
alb.ingress.kubernetes.io/target-type: ip | |
kubernetes.io/ingress.class: alb | |
creationTimestamp: null | |
labels: |