Skip to content

Instantly share code, notes, and snippets.

@shinji62
Last active February 14, 2018 01:53
Show Gist options
  • Save shinji62/bd558b6619ea20e90dd226580a96fcca to your computer and use it in GitHub Desktop.
Save shinji62/bd558b6619ea20e90dd226580a96fcca to your computer and use it in GitHub Desktop.
Add proxy to harbor PKS
sudo su -
monit stop harbor

Check with monit summary to be sure harbor is stop

vi /var/vcap/packages/harbor-app/docker-compose.clair.yml

Then on the clair configuration just add your proxy

clair:
    networks:
      - harbor-clair
    container_name: clair
    image: vmware/clair-photon:v2.0.1-v1.4.0
    restart: always
    cpu_quota: 150000
    depends_on:
      - postgres
    volumes:
      - ./common/config/clair:/config:z
    logging:
      driver: "syslog"
      options:
        syslog-address: "tcp://127.0.0.1:1514"
        tag: "clair"
    environment: <=== Should ident same a logging just before.
       HTTP_PROXY: "http://my-proxy.com:80"
       HTTPS_PROXY: "https://my-proxy.com:80"

monit start harbor

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment