Skip to content

Commit e76ac02

Browse files
committed
added backend verification in CI and Dockerfiles for api & UI
1 parent 323f056 commit e76ac02

File tree

3 files changed

+15
-0
lines changed

3 files changed

+15
-0
lines changed

.github/workflows/ci.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,10 @@ jobs:
4848
with:
4949
node-version: '18'
5050

51+
- name: Verify Backend API
52+
run: |
53+
curl --retry 5 --retry-delay 5 -f http://localhost:8080/api/health
54+
5155
- name: Install frontend dependencies
5256
run: |
5357
cd order-ui

order-api/Dockerfile

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
FROM openjdk:17-jdk-slim
2+
WORKDIR /app
3+
COPY . .
4+
RUN ./mvnw package -DskipTests
5+
CMD ["java", "-jar", "target/order-api-0.0.1-SNAPSHOT.jar"]

order-ui/Dockerfile

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
FROM node:18-alpine
2+
WORKDIR /app
3+
COPY . .
4+
RUN npm install && npm run build
5+
EXPOSE 3000
6+
CMD ["npm", "start"]

0 commit comments

Comments
 (0)