Skip to content

Commit

Permalink
Use fixed todo list app
Browse files Browse the repository at this point in the history
Reference:
sixeyed#37
  • Loading branch information
serra committed Jan 3, 2024
1 parent 961f289 commit 81124a7
Show file tree
Hide file tree
Showing 30 changed files with 95 additions and 95 deletions.
2 changes: 1 addition & 1 deletion ch04/docker-images/amd64.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,4 @@ version: "3.7"

services:
ch04-todo-list:
image: kiamol/ch04-todo-list:latest-linux-amd64
image: tsouhaieb/todofix:latest-linux-amd64
2 changes: 1 addition & 1 deletion ch04/docker-images/arm64.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,4 @@ version: "3.7"

services:
ch04-todo-list:
image: kiamol/ch04-todo-list:latest-linux-arm64
image: tsouhaieb/todofix:latest-linux-arm64
2 changes: 1 addition & 1 deletion ch04/docker-images/docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,6 @@ version: "3.7"

services:
ch04-todo-list:
image: kiamol/ch04-todo-list:latest
image: tsouhaieb/todofix:latest
build:
context: ./todo-list
2 changes: 1 addition & 1 deletion ch04/todo-list/todo-web-dev-broken.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ spec:
spec:
containers:
- name: web
image: kiamol/ch04-todo-list
image: tsouhaieb/todofix
volumeMounts:
- name: config
mountPath: "/app"
Expand Down
6 changes: 3 additions & 3 deletions ch04/todo-list/todo-web-dev-no-logging.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ spec:
spec:
containers:
- name: web
image: kiamol/ch04-todo-list
image: tsouhaieb/todofix
volumeMounts:
- name: config
mountPath: "/app/config"
Expand All @@ -23,5 +23,5 @@ spec:
configMap:
name: todo-web-config-dev
items:
- key: config.json
path: config.json
- key: config.json
path: config.json
2 changes: 1 addition & 1 deletion ch04/todo-list/todo-web-dev.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ spec:
spec:
containers:
- name: web
image: kiamol/ch04-todo-list
image: tsouhaieb/todofix
volumeMounts:
- name: config
mountPath: "/app/config"
Expand Down
14 changes: 7 additions & 7 deletions ch04/todo-list/todo-web-test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -28,10 +28,10 @@ spec:
spec:
containers:
- name: web
image: kiamol/ch04-todo-list
image: tsouhaieb/todofix
env:
- name: ASPNETCORE_ENVIRONMENT
value: Test
- name: ASPNETCORE_ENVIRONMENT
value: Test
volumeMounts:
- name: config
mountPath: "/app/config"
Expand All @@ -44,12 +44,12 @@ spec:
configMap:
name: todo-web-config-test
items:
- key: config.json
path: config.json
- key: config.json
path: config.json
- name: secret
secret:
secretName: todo-web-secret-test
defaultMode: 0400
items:
- key: secrets.json
path: secrets.json
- key: secrets.json
path: secrets.json
2 changes: 1 addition & 1 deletion ch04/todo-list/todo-web.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ spec:
spec:
containers:
- name: web
image: kiamol/ch04-todo-list
image: tsouhaieb/todofix
env:
- name: Logging__LogLevel__Default
value: Warning
10 changes: 5 additions & 5 deletions ch05/lab/solution/web.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -24,12 +24,12 @@ spec:
spec:
containers:
- name: web
image: kiamol/ch04-todo-list
image: tsouhaieb/todofix
env:
- name: Database__Provider
value: Sqlite
- name: ConnectionStrings__ToDoDb
value: "Filename=/data/todo-list-lab.db"
- name: Database__Provider
value: Sqlite
- name: ConnectionStrings__ToDoDb
value: "Filename=/data/todo-list-lab.db"
volumeMounts:
- name: data
mountPath: /data
Expand Down
10 changes: 5 additions & 5 deletions ch05/lab/todo-list/web.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -25,9 +25,9 @@ spec:
spec:
containers:
- name: web
image: kiamol/ch04-todo-list
image: tsouhaieb/todofix
env:
- name: Database__Provider
value: Sqlite
- name: ConnectionStrings__ToDoDb
value: "Filename=/data/todo-list-lab.db"
- name: Database__Provider
value: Sqlite
- name: ConnectionStrings__ToDoDb
value: "Filename=/data/todo-list-lab.db"
14 changes: 7 additions & 7 deletions ch05/todo-list/web/todo-web.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -25,10 +25,10 @@ spec:
spec:
containers:
- name: web
image: kiamol/ch04-todo-list
image: tsouhaieb/todofix
env:
- name: ASPNETCORE_ENVIRONMENT
value: Test
- name: ASPNETCORE_ENVIRONMENT
value: Test
volumeMounts:
- name: config
mountPath: "/app/config"
Expand All @@ -41,12 +41,12 @@ spec:
configMap:
name: todo-web-config
items:
- key: config.json
path: config.json
- key: config.json
path: config.json
- name: secret
secret:
secretName: todo-web-secret
defaultMode: 0400
items:
- key: secrets.json
path: secrets.json
- key: secrets.json
path: secrets.json
14 changes: 7 additions & 7 deletions ch08/todo-list/web/todo-web.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,10 +15,10 @@ spec:
spec:
containers:
- name: web
image: kiamol/ch04-todo-list
image: tsouhaieb/todofix
env:
- name: ASPNETCORE_ENVIRONMENT
value: Test
- name: ASPNETCORE_ENVIRONMENT
value: Test
volumeMounts:
- name: config
mountPath: "/app/config"
Expand All @@ -31,12 +31,12 @@ spec:
configMap:
name: todo-web-config
items:
- key: config.json
path: config.json
- key: config.json
path: config.json
- name: secret
secret:
secretName: todo-web-secret
defaultMode: 0400
items:
- key: secrets.json
path: secrets.json
- key: secrets.json
path: secrets.json
18 changes: 9 additions & 9 deletions ch08/todo-list/web/update/todo-web-readonly.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,12 +15,12 @@ spec:
spec:
containers:
- name: web
image: kiamol/ch04-todo-list
image: tsouhaieb/todofix
env:
- name: ASPNETCORE_ENVIRONMENT
value: Test
- name: Database__ReadOnly
value: "true"
- name: ASPNETCORE_ENVIRONMENT
value: Test
- name: Database__ReadOnly
value: "true"
volumeMounts:
- name: config
mountPath: "/app/config"
Expand All @@ -33,12 +33,12 @@ spec:
configMap:
name: todo-web-config
items:
- key: config.json
path: config.json
- key: config.json
path: config.json
- name: secret
secret:
secretName: todo-web-secret
defaultMode: 0400
items:
- key: secrets.json
path: secrets.json
- key: secrets.json
path: secrets.json
14 changes: 7 additions & 7 deletions ch09/todo-list/web/todo-web.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,10 +15,10 @@ spec:
spec:
containers:
- name: web
image: kiamol/ch04-todo-list
image: tsouhaieb/todofix
env:
- name: ASPNETCORE_ENVIRONMENT
value: Test
- name: ASPNETCORE_ENVIRONMENT
value: Test
volumeMounts:
- name: config
mountPath: "/app/config"
Expand All @@ -31,12 +31,12 @@ spec:
configMap:
name: todo-web-config
items:
- key: config.json
path: config.json
- key: config.json
path: config.json
- name: secret
secret:
secretName: todo-web-secret
defaultMode: 0400
items:
- key: secrets.json
path: secrets.json
- key: secrets.json
path: secrets.json
18 changes: 9 additions & 9 deletions ch09/todo-list/web/update/todo-web-readonly.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,12 +15,12 @@ spec:
spec:
containers:
- name: web
image: kiamol/ch04-todo-list
image: tsouhaieb/todofix
env:
- name: ASPNETCORE_ENVIRONMENT
value: Test
- name: Database__ReadOnly
value: "true"
- name: ASPNETCORE_ENVIRONMENT
value: Test
- name: Database__ReadOnly
value: "true"
volumeMounts:
- name: config
mountPath: "/app/config"
Expand All @@ -33,12 +33,12 @@ spec:
configMap:
name: todo-web-config
items:
- key: config.json
path: config.json
- key: config.json
path: config.json
- name: secret
secret:
secretName: todo-web-secret
defaultMode: 0400
items:
- key: secrets.json
path: secrets.json
- key: secrets.json
path: secrets.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ spec:
spec:
containers:
- name: web
image: kiamol/ch04-todo-list
image: tsouhaieb/todofix
env:
- name: ASPNETCORE_ENVIRONMENT
value: {{ .Values.environment | title }}
Expand Down
16 changes: 8 additions & 8 deletions ch10/lab/todo-list/todo-web-deployment.yaml
Original file line number Diff line number Diff line change
@@ -1,31 +1,31 @@
apiVersion: apps/v1
kind: Deployment
metadata:
name: todo-web # this needs to be templated
name: todo-web # this needs to be templated
labels:
kiamol: ch10-lab
spec:
selector:
matchLabels: # this needs to be templated
app: todo-web
matchLabels: # this needs to be templated
app: todo-web
environment: test
template:
metadata:
labels: # this needs to be templated
labels: # this needs to be templated
app: todo-web
environment: test
spec:
containers:
- name: web
image: kiamol/ch04-todo-list
image: tsouhaieb/todofix
env:
- name: ASPNETCORE_ENVIRONMENT
value: Test # this should be parameterized
- name: ASPNETCORE_ENVIRONMENT
value: Test # this should be parameterized
volumeMounts:
- name: config
mountPath: "/app/config"
readOnly: true
volumes:
- name: config
configMap:
name: todo-web-config # this needs to be templated
name: todo-web-config # this needs to be templated
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ spec:
spec:
containers:
- name: web
image: kiamol/ch04-todo-list
image: tsouhaieb/todofix
volumeMounts:
- name: config
mountPath: "/app/config"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ spec:
spec:
containers:
- name: web
image: kiamol/ch04-todo-list
image: tsouhaieb/todofix
volumeMounts:
- name: config
mountPath: "/app/config"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ spec:
spec:
containers:
- name: web
image: kiamol/ch04-todo-list
image: tsouhaieb/todofix
volumeMounts:
- name: config
mountPath: "/app/config"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ spec:
spec:
containers:
- name: web
image: kiamol/ch04-todo-list
image: tsouhaieb/todofix
volumeMounts:
- name: config
mountPath: "/app/config"
Expand Down
Loading

0 comments on commit 81124a7

Please sign in to comment.