Skip to content

Commit df3f659

Browse files
authored
Merge pull request #221 from Lemoncode/orchestration-exersice-review
Orchestration exersice review
2 parents 0d6eb17 + eee39f4 commit df3f659

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

60 files changed

+19174
-23226
lines changed

01-contenedores/contenedores-v/01-load-balancer-host/readme.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,7 @@ We can check that the apps are up and running
9999
```
100100
curl http://localhost:8081
101101
curl http://localhost:8082
102-
curl http: //localhost:8083
102+
curl http://localhost:8083
103103
```
104104
105105
Now we can build our load balancer

02-orquestacion/exercises/00-monolith-in-mem/README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,13 +27,13 @@ PORT=
2727
## Running the Application with Docker on Local
2828

2929
```bash
30-
$ docker build -t jaimesalas/lc-todo-monolith .
30+
docker build -t jaimesalas/lc-todo-monolith .
3131
```
3232

3333
Start app without database
3434

3535
```bash
36-
$ docker run -d -p 3000:3000 \
36+
docker run -d -p 3000:3000 \
3737
-e NODE_ENV=production \
3838
-e PORT=3000 \
3939
jaimesalas/lc-todo-monolith

02-orquestacion/exercises/00-monolith-in-mem/todo-app/Dockerfile

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
FROM node:12-alpine3.12 as builder
1+
FROM node:22-alpine AS builder
22

33
WORKDIR /build
44

@@ -15,14 +15,14 @@ COPY package*.json ./
1515
COPY tsconfig.json ./
1616

1717
# Build apps
18-
RUN npm install
18+
RUN npm ci
1919

2020
RUN cd ./frontend && npm install
2121

2222
RUN npm run build
2323

2424
# Packaging app
25-
FROM node:12-alpine3.12 as app
25+
FROM node:22-alpine AS app
2626

2727
WORKDIR /app
2828

02-orquestacion/exercises/00-monolith-in-mem/todo-app/frontend/config/webpack.dev.js

Lines changed: 8 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -2,13 +2,12 @@ const { merge } = require('webpack-merge');
22
const common = require('./webpack.common');
33

44
module.exports = merge(common, {
5-
mode: 'development',
6-
devtool: 'eval-source-map',
7-
devServer: {
8-
proxy: {
9-
'/api/': 'http://localhost:3000',
10-
},
11-
port: 8081,
12-
stats: 'errors-only',
5+
mode: 'development',
6+
devtool: 'eval-source-map',
7+
devServer: {
8+
proxy: {
9+
'/api/': 'http://localhost:3000',
1310
},
14-
});
11+
port: 8081,
12+
},
13+
});

0 commit comments

Comments
 (0)