Skip to content

Commit

Permalink
Renamed library to bookservice
Browse files Browse the repository at this point in the history
  • Loading branch information
sjs994 committed Sep 14, 2021
1 parent 8577de6 commit 043a8f3
Show file tree
Hide file tree
Showing 20 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ FROM node:12.13.0-alpine
RUN mkdir -p /opt/app
WORKDIR /opt/app
RUN adduser -S app
COPY library/ .
COPY bookservice/ .
RUN npm install
RUN chown -R app /opt/app
USER app
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
2 changes: 1 addition & 1 deletion library/tracing.js → bookservice/tracing.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ const { constants } = require("./constants");

const provider = new NodeTracerProvider({
resource: new Resource({
[SemanticResourceAttributes.SERVICE_NAME]: "library-app",
[SemanticResourceAttributes.SERVICE_NAME]: "BookService",
})
});
diag.setLogger(new DiagConsoleLogger(), DiagLogLevel.ALL);
Expand Down
2 changes: 1 addition & 1 deletion checkout/constants.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ const constants = {
PORT: process.env.PORT || 3001,
ZIPKIN_HOSTNAME: process.env.ZIPKIN_HOSTNAME || "zipkin",
ZIPKIN_PORT: process.env.ZIPKIN_PORT || 9411,
INVENTORY_HOSTNAME: process.env.INVENTORY_HOSTNAME || "library",
INVENTORY_HOSTNAME: process.env.INVENTORY_HOSTNAME || "bookservice",
INVENTORY_PORT: process.env.INVENTORY_PORT || 3000
};

Expand Down
4 changes: 2 additions & 2 deletions docker-compose.debug.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ services:
build:
context: checkout
depends_on:
- library
- bookservice
- zipkin
command: "node --inspect-brk=0.0.0.0 checkout.js"
ports:
Expand All @@ -39,7 +39,7 @@ services:
networks:
- app-tier

library:
bookservice:
build:
context: .
environment:
Expand Down
4 changes: 2 additions & 2 deletions docker-compose.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -30,14 +30,14 @@ services:
build:
context: checkout
depends_on:
- library
- bookservice
- zipkin
ports:
- '3001:3001'
networks:
- app-tier

library:
bookservice:
build:
context: .
environment:
Expand Down

0 comments on commit 043a8f3

Please # to comment.