Add support for `.service` file
Chưa có ai nhận issue này.
Đánh giá
- Độ khó
- 4/5
- Thời gian dự kiến
- 3-5 ngày
- Mức phù hợp với người mới
- 35/100
Hướng nghiên cứu
Start with manage_apps.py and deploy.sh, tracing the existing APP and METHOD environment-variable flow. Review the proposed SERVICEFILEPATH handling and connection.serviceExists checks, then follow how deploy.sh invokes manage_apps.py. Done means a .service file is recognized during deploy previews and the described service checks and creation flow works for applications needing services such as Redis or Postgres.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
For applications which require services like Redis or Postgres, a standard file (probably .service) would be useful to recognize and automatically spin up those services for the app. This is especially useful as part of the deploy preview, which would be frustrating to use for now for apps which depend on those resources.
We can accomplish this with logic along the lines of:
SERVICE_FILEPATH = os.environ.get("SERVICEFILEPATH")
METHOD = os.environ.get("METHOD")
if SERVICE_FILEPATH:
with open(SERVICE_FILEPATH, 'r') as svc_file:
service_configs = json.load(svc_file)
if not isinstance(service_configs, list):
service_configs = [service_configs]
if METHOD == "CHECKSVC":
for service in service_configs:
push = "false" if connection.serviceExists(APP, service['type']) else "true"
if push == "true":
print(push)
in manage_apps.py and logic along the lines of:
# Check if service needs to be created
if [[ -f "$APPS_DIR/$APP/.service" ]]; then
service_file="$APPS_DIR/$APP/.service"
create_svc=true
fi
if [[ "$create_svc" == "true" ]]; then
APP=$with_suffix METHOD="CREATESVC" SERVICEFILEPATH=$service_file python ./manage_apps.py
fi
in deploy.sh.
- Ngôn ngữ chính
- Không có dữ liệu ngôn ngữ
- Star
- 4
- Fork
- 3
- Chỉ số merge pull request
- Không có pull request nào được merge trong 30 ngày
Hướng dẫn đóng góp
Chưa lập chỉ mục được hướng dẫn đóng góp cho kho mã nguồn này
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 plotly/de-deploy
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 76/100
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 45/100
-
enhancement
Độ khó 3/5 1-2 ngày Mức phù hợp với người mới 25/100
-
Support multiple instances Đang mở
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 35/100
-
Add support for DE4 Đang mở
Tất cả issue của plotly/de-deploy
Issue tương tự
-
A cancelled tests run makes the coverage comment workflow fail and reports it as a red check on main Đang mởarea: ci bug perceived difficulty: 3
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
Nitjsefnie-Harness-Commons/daedalus#921 · 1 bình luận ·
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 88/100
crossplane/crossplane#7859 ·
-
Product: Terraform (AVM) Topic: Networking (HS) :globe_with_meridians:
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 88/100
Azure/Azure-Landing-Zones#4282 · 1 bình luận ·
-
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 88/100
-
bug carvel-triage
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 88/100
carvel-dev/kapp-controller#1861 ·