containerisation
Maintainer thường phản hồi trong vòng 1 ngày
Chưa có ai nhận issue này.
Đánh giá
- Độ khó
- 3/5
- Thời gian dự kiến
- 1-2 ngày
- Mức phù hợp với người mới
- 35/100
- Loại issue
- Tính năng
- Độ rõ ràng
- Khá rõ ràng
- Mức độ hoạt động
- Đình trệ
- Công nghệ
- apache, docker, javascript, node.js
- Lĩnh vực
- devops, infrastructure
Hướng nghiên cứu
Start with the proposed Dockerfile, .dockerignore, container/update-httpd-config.sh, and the deployment and development additions to README.md. Check that the documented build and run paths match the files and that both development and production containers can be reproduced. Done means the project builds and runs through both container paths with the documented setup.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
Type issue:
small improvement / portability
Reason:
It could potentially improve portability
Solution:
I currently have created a local branch from the repository and added a handful of files aimed at building a simple small apache2 httpd server based container to run the project.
The created Dockerfile also provides the option to build/run the development server from a container.
new files:
- Dockerfile
FROM node:14.16.0 as build
RUN mkdir -p /app
WORKDIR /app
COPY . .
RUN npm install && npm run build
FROM build AS develop
CMD [ "npm", "run", "develop" ]
FROM httpd:2.4 AS production
## Configure httpd apache server
COPY container/update-httpd-conf.sh /
RUN chmod 750 /update-httpd-conf.sh
RUN ["/bin/sh", "/update-httpd-conf.sh"]
COPY --from=build /app/build/ /compare/
- .dockerignore
node_modules
build
*.md
.github
test/*
- container/update-httpd-config.sh
# Add configuration to the httpd.conf file
cat >> /usr/local/apache2/conf/httpd.conf <<-EOF
DocumentRoot "/compare"
LogLevel debug
<Directory /compare>
Require all granted
Header set Access-Control-Allow-Origin "*"
</Directory>
<Files "*.*">
Require all granted
Header set Access-Control-Allow-Origin "*"
</Files>
EOF
updated files:
- README.md
sub-section to deploying yourself, describing how to build & run the image/container.
sub-section to developing, describing how to build & run the development image/container.
Remarks/other:
I've currently tested my implementation locally as well as having successfully deployed it to a Cloud Foundry platform.
- Ngôn ngữ chính
- JavaScript
- Star
- 120
- Fork
- 18
- Merge trung bình
- 3 phút
- Pull request đã merge (30 ngày)
- 10
Chuẩn bị môi trường
Dự án này không cung cấp dev container, Dockerfile hay hướng dẫn đóng góp, nên bạn cần tự thiết lập môi trường: hãy bắt đầu từ README và xem hướng dẫn đóng góp lần đầu của chúng tôi để biết các bước chung.
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Issue khác của sitespeedio/compare
-
Độ khó 3/5 1-2 ngày Mức phù hợp với người mới 20/100
sitespeedio/compare#155 · 1 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 3/5 1-2 ngày Mức phù hợp với người mới 45/100
sitespeedio/compare#151 · 2 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 35/100
sitespeedio/compare#150 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Diff sizes of each http request Not AvailableCó thể làm lại được @soulgalore đã nhận 1353 ngày trước và không có pull request nào đang mở. Đang mở
sitespeedio/compare#149 · 6 bình luận · 1 người được giao ·
Maintainer thường phản hồi trong vòng 1 ngày
-
prio:3
Độ khó 3/5 1-2 ngày Mức phù hợp với người mới 35/100
sitespeedio/compare#109 · 5 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
Tất cả issue của sitespeedio/compare
Issue tương tự
-
Site Suggestion: bullseyeĐang mở
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 65/100
Maintainer thường phản hồi trong vòng 1 ngày
-
Add toro4n to the data modeling toolsCó thể đã có người làm @henriklantzhedstrom-prog đã nhận hôm nay. Đang mở
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 62/100
neo4j/docs-getting-started#546 ·
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 65/100
Maintainer thường phản hồi trong vòng 25 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 70/100
libnativeapi/nativeapi#21 ·
-
area: core complexity: easy impact: medium
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 86/100
ueberdosis/tiptap#8668 ·
Maintainer thường phản hồi trong vòng 1 ngày