parabuzzle / craneoperator

Gives you a simple web interface for browsing around a Docker Registry
https://hub.docker.com/r/parabuzzle/craneoperator
MIT License
128 stars 32 forks source link

Integrate with Nexus Repository #73

Open chirag-ji opened 2 years ago

chirag-ji commented 2 years ago

Hello all,

How can we integrate 'craneoperator' with 'Nexus Repository manager'.

My docker-compose file:

version: "3"
services:
  nexus:
    container_name: nexus
    image: sonatype/nexus3
    restart: always
    ports:
      - "80:80"
      - "8081:8081"
      - "8082:8082"
    networks:
      - nexus-net

  docker-registry-ui:
    image: parabuzzle/craneoperator:latest
    depends_on:
      - nexus
    ports:
      - "81:80"
    environment:
      - REGISTRY_HOST=nexus
      - REGISTRY_PORT=8081
      - REGISTRY_PROTOCOL=http
      - SSL_VERIFY=false
      - USERNAME=admin
      - PASSWORD=admin
    networks:
      - nexus-net

networks:
  nexus-net:

Port 80 connected to 'docker' group which includes 'docker-hub' proxy and 'docker' hosted repository.

Tried connect to 8081, below was the output:

2022-10-25 03:31:35 - Oj::ParseError - unexpected character at line 1, column 2 [parse.c:690]:
03:31:35 web.1  |       /webapp/lib/helpers.rb:46:in `load'
03:31:35 web.1  |       /webapp/lib/helpers.rb:46:in `get'
03:31:35 web.1  |       /webapp/server.rb:47:in `fetch_catalog'
03:31:35 web.1  |       /webapp/server.rb:61:in `containers'

Tried connect to 80, below was the output.

03:42:05 web.1  | started with pid 8
03:42:06 web.1  | I, [2022-10-25T03:42:06.389450 #8]  INFO -- : Refreshing Gem list
03:42:06 web.1  | I, [2022-10-25T03:42:06.783407 #8]  INFO -- : listening on addr=0.0.0.0:80 fd=7
03:42:06 web.1  | I, [2022-10-25T03:42:06.783581 #8]  INFO -- : worker=0 spawning...
03:42:06 web.1  | I, [2022-10-25T03:42:06.785170 #8]  INFO -- : worker=1 spawning...
03:42:06 web.1  | I, [2022-10-25T03:42:06.785741 #11]  INFO -- : worker=0 spawned pid=11
03:42:06 web.1  | I, [2022-10-25T03:42:06.785893 #11]  INFO -- : worker=0 ready
03:42:06 web.1  | I, [2022-10-25T03:42:06.786689 #8]  INFO -- : worker=2 spawning...
03:42:06 web.1  | I, [2022-10-25T03:42:06.787271 #14]  INFO -- : worker=1 spawned pid=14
03:42:06 web.1  | I, [2022-10-25T03:42:06.787419 #14]  INFO -- : worker=1 ready
03:42:06 web.1  | I, [2022-10-25T03:42:06.788278 #8]  INFO -- : master process ready
03:42:06 web.1  | I, [2022-10-25T03:42:06.788745 #17]  INFO -- : worker=2 spawned pid=17
03:42:06 web.1  | I, [2022-10-25T03:42:06.788892 #17]  INFO -- : worker=2 ready
03:42:14 web.1  | 127.0.0.1 - admin [25/Oct/2022:03:42:14 +0000] "GET /containers HTTP/1.1" 200 796 0.0486
03:42:15 web.1  | 127.0.0.1 - admin [25/Oct/2022:03:42:15 +0000] "GET /api/registryinfo HTTP/1.1" 200 159 0.0427
03:42:15 web.1  | 127.0.0.1 - admin [25/Oct/2022:03:42:15 +0000] "GET /api/registryinfo HTTP/1.1" 200 159 0.0044
03:42:15 web.1  | 127.0.0.1 - admin [25/Oct/2022:03:42:15 +0000] "GET /bootstrap.min.css.map HTTP/1.1" 404 984 0.0041
03:42:47 web.1  | E, [2022-10-25T03:42:47.823048 #8] ERROR -- : worker=1 PID:14 timeout (31s > 30s), killing
03:42:47 web.1  | E, [2022-10-25T03:42:47.829642 #8] ERROR -- : reaped #<Process::Status: pid 14 SIGKILL (signal 9)> worker=1
03:42:47 web.1  | I, [2022-10-25T03:42:47.829815 #8]  INFO -- : worker=1 spawning...
03:42:47 web.1  | I, [2022-10-25T03:42:47.831921 #7420]  INFO -- : worker=1 spawned pid=7420
03:42:47 web.1  | I, [2022-10-25T03:42:47.832231 #7420]  INFO -- : worker=1 ready

Please suggest.

Thanks