lunes, 30 de septiembre de 2019

TIBCO BWCE monitoring Docker

TIBCO BWCE monitoring Docker


bext@bext-G3-3779:~/miDocker/bwceMon$ ls
app-version.json    Dockerfile     node_modules  src            wallaby.js
dbscripts           karma.conf.js  package.json  tests          webpack
dist                LICENSE        README.md     tsconfig.json
docker-compose.yml  manifest.yml   server        tslint.json
bext@bext-G3-3779:~/miDocker/bwceMon$ docker build -t bwce/monitoring:latest .
Sending build context to Docker daemon  87.38MB
Step 1/11 : FROM node:6.9.5-alpine
6.9.5-alpine: Pulling from library/node
b7f33cc0b48e: Pull complete 
578bb84776dc: Pull complete 
Digest: sha256:c44622b4a3f2ef62895fa90bc5b3723d4c348b3b0ec1495a3a4ad60dcfe80973
Status: Downloaded newer image for node:6.9.5-alpine
 ---> 66cf88e4fc20
Step 2/11 : RUN mkdir -p /usr/src/app
 ---> Running in e559a5ee51c4
Removing intermediate container e559a5ee51c4
 ---> 4a26ba0dff54
Step 3/11 : RUN chmod -R 777 /usr/src/app
 ---> Running in 8c9f4a9cf7c2
Removing intermediate container 8c9f4a9cf7c2
 ---> 629e324328d3
Step 4/11 : WORKDIR /usr/src/app
 ---> Running in 6b9f4c859ec5
Removing intermediate container 6b9f4c859ec5
 ---> 2a6fe0877e64
Step 5/11 : COPY package.json /usr/src/app
 ---> 35bd5cf1cba9
Step 6/11 : COPY app-version.json /usr/src/app
 ---> 26b422126b94
Step 7/11 : COPY dist /usr/src/app/dist
 ---> 3458d1f821cd
Step 8/11 : COPY server /usr/src/app/server
 ---> 28644180c627
Step 9/11 : COPY node_modules /usr/src/app/node_modules
 ---> ed6ccb79f5e7
Step 10/11 : EXPOSE 8080
 ---> Running in 99371ce905e9
Removing intermediate container 99371ce905e9
 ---> d391a7cd065e
Step 11/11 : CMD ["npm", "start"]
 ---> Running in 28aa28f0c3ab
Removing intermediate container 28aa28f0c3ab
 ---> a5faedfa3d52
Successfully built a5faedfa3d52
Successfully tagged bwce/monitoring:latest
bext@bext-G3-3779:~/miDocker/bwceMon$ 

bext@bext-G3-3779:~/miDocker/bwceMon$ export PERSISTENCE_TYPE="postgres"
bext@bext-G3-3779:~/miDocker/bwceMon$ echo "$PERSISTENCE_TYPE"
postgres
bext@bext-G3-3779:~/miDocker/bwceMon$ export DB_URL="postgresql://localhost:5432;DatabaseName=bwcemon"
bext@bext-G3-3779:~/miDocker/bwceMon$ echo "$DB_URL"
postgresql://localhost:5432;DatabaseName=bwcemon 
 

bext@bext-G3-3779:~/miDocker/bwceMon$ docker run -p 8080:8080 -e PERSISTENCE_TYPE='postgres' -e DB_URL='postgresql://postgres:password@localhost:5432/postgres' --name bwcemon -t bwce/monitoring
 

eot

2 comentarios: