Skip to content

Pull Image Proxy Issue ​

จากภาพคือ error ที่ไม่สามารถ download library ที่ request ไปยัง domain dl-cdn.alpinelinux.org ได้ เนื่องจากติด proxy

Proxy

วิธีการแก้ไขเมื่อไม่สามารถดาวน์โหลด module ได้ เนื่องจากติด proxy ​

  1. เข้าไปหน้า Component Detail ของ Application ที่มีปัญหา

Proxy

  1. กดเข้าไปที่ GitLab ในส่วน SSO

Proxy

  1. ทำการ Login Gitlab

Proxy

  1. เมื่อเข้ามาแล้วให้กดไปที่ เมนู CI/CD ด้านซ้ายมือดังรูป จากนั้นทำการกดไปเข้าที่ Variable

Proxy

  1. ทำการ เพิ่ม Variable "KANIKO_EXTRA_ARGS" ที่ทำหน้าที่ในการ Set Proxy บน Repository

Proxy

Proxy

  1. ทำการเพิ่ม Arg บน Dockerfile ( SSL_CERT_DIR และ NODE_OPTIONS ) ดังรูป

Proxy

  1. ทำการ Build Pipeline ใหม่อีกครั้ง

We build Enterprise Platform Engineering to digitalized transform your organization into a DevSecOps culture.