Skip to content

Commit 8e87269

Browse files
committed
Doc build
1 parent e036c14 commit 8e87269

File tree

2 files changed

+72
-2
lines changed

2 files changed

+72
-2
lines changed

Dockerfile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
FROM registry.redhat.io/ubi8/nodejs-14
1+
FROM registry.access.redhat.com/ubi8/nodejs-14
22
USER root
33
WORKDIR /docs
44
COPY . .
@@ -9,4 +9,4 @@ RUN npm run build
99

1010
EXPOSE 3000
1111
USER 1001
12-
CMD npm run serve
12+
CMD node server.js

deploy/openshift.yaml

Lines changed: 70 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,70 @@
1+
apiVersion: v1
2+
kind: Service
3+
metadata:
4+
labels:
5+
app: frontend-docs
6+
name: frontend-docs
7+
namespace: insights
8+
spec:
9+
ports:
10+
- name: 3000-tcp
11+
port: 3000
12+
- name: 8080-tcp
13+
port: 8080
14+
selector:
15+
app: frontend-docs
16+
---
17+
apiVersion: apps/v1
18+
kind: Deployment
19+
metadata:
20+
name: frontend-docs
21+
namespace: insights
22+
spec:
23+
progressDeadlineSeconds: 600
24+
replicas: 1
25+
revisionHistoryLimit: 10
26+
selector:
27+
matchLabels:
28+
app: frontend-docs
29+
strategy:
30+
rollingUpdate:
31+
maxSurge: 25%
32+
maxUnavailable: 25%
33+
type: RollingUpdate
34+
template:
35+
metadata:
36+
labels:
37+
app: frontend-docs
38+
spec:
39+
containers:
40+
- image: quay.io/lphiri/frontend-docs:latest
41+
imagePullPolicy: Always
42+
name: frontend-docs
43+
ports:
44+
- containerPort: 3000
45+
protocol: TCP
46+
- containerPort: 8080
47+
protocol: TCP
48+
terminationMessagePath: /dev/termination-log
49+
terminationMessagePolicy: File
50+
dnsPolicy: ClusterFirst
51+
restartPolicy: Always
52+
schedulerName: default-scheduler
53+
terminationGracePeriodSeconds: 30
54+
---
55+
apiVersion: route.openshift.io/v1
56+
kind: Route
57+
metadata:
58+
labels:
59+
app: frontend-docs
60+
name: frontend-docs
61+
namespace: insights
62+
spec:
63+
host: front-end-docs-insights.apps.ocp4.prod.psi.redhat.com
64+
port:
65+
targetPort: 3000-tcp
66+
to:
67+
kind: Service
68+
name: frontend-docs
69+
weight: 100
70+
wildcardPolicy: None

0 commit comments

Comments
 (0)