Add CI/CD pipeline, architecture documentation, and monitoring application
- Created a GitHub Actions workflow for CI/CD to deploy to Ghyamah, including testing, building, and pushing Docker images. - Added architecture design document for handling 15,000 requests per second, detailing system components, capacity planning, and cold start strategies. - Introduced a Python-based uptime/latency/SSL monitor with a static dashboard, utilizing standard libraries only. - Included Dockerfile and entrypoint script for the monitoring application, ensuring it runs as a non-root user and handles process management. - Added a .dockerignore file to exclude unnecessary files from the Docker build context. - Created an HTML dashboard for visualizing monitoring metrics, including uptime, latency, and SSL certificate status.
هذا الالتزام موجود في:
13
Q1/Dockerfile
Normal file
13
Q1/Dockerfile
Normal file
@@ -0,0 +1,13 @@
|
||||
FROM node:20-alpine3.16
|
||||
|
||||
WORKDIR /app
|
||||
|
||||
COPY --chown=node:node server.js .
|
||||
|
||||
RUN npm init -y && npm install express cors
|
||||
|
||||
USER node
|
||||
|
||||
EXPOSE 3000
|
||||
|
||||
CMD ["node" , "server.js"]
|
||||
المرجع في مشكلة جديدة
حظر مستخدم