项目作者: Sczuka

项目描述 :
Sonatype Nexus3 with github authentication
高级语言: Dockerfile
项目地址: git://github.com/Sczuka/docker-sonatype-nexus3-github-oauth.git


docker-sonatype-nexus3-github-auth

Sonatype Nexus3 with github authentication docker container.

This docker environment inherits sonartype/nexus and add the nexus3-github-oauth-plugin plugin.

Configuration

The following configurations may be used then deploying with docker-compose:

docker-compose.yaml:

  1. version: "3"
  2. services:
  3. nexus:
  4. image: ghcr.io/sczuka/docker-sonatype-nexus3-github-oauth:v3.40.0
  5. volumes:
  6. - nexus-data:/nexus-data
  7. - "./githuboauth.properties:/opt/sonatype/nexus/etc/githuboauth.properties:ro"
  8. restart: unless-stopped
  9. ports:
  10. - "8081:8081"
  11. volumes:
  12. nexus-data:
  13. driver: local
  14. driver_opts:
  15. type: 'none'
  16. o: 'bind'
  17. device: '/srv/nexus3/data'

githuboauth.properties:

  1. github.api.url=https://api.github.com
  2. github.principal.cache.ttl=PT1M
  3. # Filtering out my-organization-to-check
  4. github.org=my-organization-to-check