PowerShell / PowerShell/PowerShell-Docker

Windows Modules for Windows Nanoimage

Đang mở
#822 0 bình luận 0 reaction 0 người được giao Xem trên GitHub

Chưa có ai nhận issue này.

Issue-Enhancement
Ngôn ngữ chính
Dockerfile
Star
449
Fork
158
Merge trung bình
3 ngày 10 giờ
Pull request đã merge (30 ngày)
1

Mô tả

Summary of the new feature / enhancement

I wanted to manage certificates in a Windows nano image using Powershell, e.g. Import-Certificate

Currently these Windows modules are not included.

My attempts to add them myself were not successful.
Using the PKI module as an example, I copied the files into the nano image and tried to load the module:

Import-Module: Could not load file or assembly 'Microsoft.CertificateServices.PKIClient.Cmdlets, Culture=neutral, PublicKeyToken=null'. The system cannot find the file specified.

Other import methods also produce a similar error:
Failed to load assembly: Exception calling “LoadFile” with “1” argument(s): “Could not load file or assembly ‘C:\tmp\Microsoft.CertificateServices.PKIClient.Cmdlets.dll’. The specified module could not be found.”

I think it might have to do with a lack of dependencies. PKI, for example has:

Referenced Assembly: mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089
Referenced Assembly: Microsoft.VisualC, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a
Referenced Assembly: System, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089
Referenced Assembly: System.Core, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089
Referenced Assembly: System.Xml, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089
Referenced Assembly: System.Configuration.Install, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a
Referenced Assembly: System.Management.Automation, Version=3.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35

It would be great if these Windows modules were also available.

Proposed technical implementation details (optional)

No response

Hướng dẫn đóng góp

Mở hướng dẫn đóng góp

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. 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.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Hướng nghiên cứu

Không có tệp, kiểm thử hoặc điểm vào nào được nêu. Hãy bắt đầu bằng cách kiểm tra cách các image Windows Nano được xây dựng và cách các module PowerShell cùng các dependency của chúng được đưa vào; công việc được xem là hoàn tất khi có thể import và sử dụng các module Windows được yêu cầu trong image mà không thiếu assembly.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Đánh giá

Công nghệ
docker, powershell
Lĩnh vực
devops, infrastructure
Loại issue
Tính năng
Độ khó
5/5
Thời gian dự kiến
Hơn một tuần
Mức độ hoạt động
Đình trệ
Độ rõ ràng
Cần làm rõ
Mức phù hợp với người mới
25/100

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.