Skip to content

Commit 64dbb3e

Browse files
committed
chore(web-basisc): update readme challenge
Signed-off-by: Gabriel Mocanu <gabi.mocanu98@gmail.com>
1 parent c45c1f3 commit 64dbb3e

File tree

3 files changed

+9
-10
lines changed

3 files changed

+9
-10
lines changed
Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,11 @@
1-
FROM php:7.2-apache AS builder
1+
# Stage 1: Generate the source file with the flag
2+
FROM alpine:latest AS builder
23

34
ARG FLAG
45
COPY src/index.template.html /tmp/index.template.html
56
RUN sed "s/__TEMPLATE__/${FLAG}/g" /tmp/index.template.html > /tmp/index.html
67

8+
# Stage 2: Final image
79
FROM php:7.2-apache
810

9-
COPY --from=builder /tmp/index.html /var/www/html/readme/index.html
11+
COPY --from=builder /tmp/index.html /var/www/html/readme/

chapters/web-application-security/web-basics/drills/readme/deploy/activity.mk

Lines changed: 0 additions & 1 deletion
This file was deleted.

chapters/web-application-security/web-basics/drills/readme/deploy/values.yaml

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -5,11 +5,9 @@ challenge:
55
category: web-basics
66

77
image:
8-
repository: sss-web-01_readme
8+
repository: ghcr.io/open-education-hub/web-security/web-basics/readme
99
tag: latest
10-
pullPolicy: IfNotPresent
11-
12-
replicaCount: 1
10+
pullPolicy: Always
1311

1412
containerPort: 80
1513

@@ -20,6 +18,6 @@ service:
2018

2119
healthCheck:
2220
enabled: true
23-
path: /readme/
24-
initialDelaySeconds: 5
25-
periodSeconds: 10
21+
path: "/readme/"
22+
initialDelaySeconds: 10
23+
periodSeconds: 15

0 commit comments

Comments
 (0)