Skip to content

Commit

Permalink
crate docker repos in nexus
Browse files Browse the repository at this point in the history
  • Loading branch information
BraisVQ committed Jun 20, 2023
1 parent 7288e8d commit 0163f6d
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
1 change: 1 addition & 0 deletions nexus/json/createBlobStores.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
blobStore.createFileBlobStore('atlassian_public', '/nexus-data/blobs/atlassian_public');
blobStore.createFileBlobStore('npm-private', '/nexus-data/blobs/npm-private');
blobStore.createFileBlobStore('pypi-private', '/nexus-data/blobs/pypi-private');
blobStore.createFileBlobStore('docker', '/nexus-data/blobs/docker');
blobStore.createFileBlobStore('leva-documentation', '/nexus-data/blobs/leva-documentation')",
"type":"groovy"
}
5 changes: 4 additions & 1 deletion nexus/json/createRepos.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,10 +19,13 @@
repository.createPyPiHosted('pypi-private', 'pypi-private', true, WritePolicy.ALLOW_ONCE);
repository.createPyPiGroup('pypi-all', ['pypi-registry', 'pypi-private'], 'default');
repository.createRawHosted('leva-documentation', 'leva-documentation', false, WritePolicy.ALLOW);
repository.createDockerProxy('dockerhub-proxy', 'https://registry-1.docker.io', 'HUB', null, null, null, 'docker', true, true);
repository.createDockerProxy('github-proxy', 'https://ghcr.io', 'REGISTRY', null, null, null, 'docker', true, true);
repository.createDockerGroup('docker-group', 5000, null, ['dockerhub-proxy', 'github-proxy'], true, 'docker', false);
repositoryManager = repository.repositoryManager;
repository = repositoryManager.get('maven-public');
config = repository.configuration.copy();
config.attributes['group']['memberNames'] = ['maven-releases', 'maven-snapshots', 'maven-central'];
repositoryManager.update(config)",
"type":"groovy"
}
}

0 comments on commit 0163f6d

Please sign in to comment.