Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cease and desist destructive tendencies #24

Merged
merged 1 commit into from
Oct 17, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
21 changes: 0 additions & 21 deletions systemd/nexus-setup.sh
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@
else
# If URL is specified, use proxy configuration
echo >&2 "warning: using proxy configuration: $1"
config="type: proxy

Check warning on line 43 in systemd/nexus-setup.sh

View workflow job for this annotation

GitHub Actions / shellcheck

config appears unused. Verify use (or export if used externally).
proxy:
contentMaxAge: 1440
metadataMaxAge: 1
Expand Down Expand Up @@ -89,26 +89,5 @@
nexus-upload-script /usr/local/share/nexus-setup/groovy/*.groovy >&2

nexus-enable-anonymous-access >&2
nexus-remove-default-repos >&2

cat > /tmp/nexus-repositories.yaml << EOF
---
cleanup: null
docker:
forceBasicAuth: false
httpPort: 5000
httpsPort: null
v1Enabled: false
format: docker
name: registry
online: true
storage:
blobStoreName: default
strictContentTypeValidation: false
writePolicy: ALLOW
${config}
EOF

nexus-repositories-create /tmp/nexus-repositories.yaml >&2
nexus-enable-docker-realm >&2
" || exit
Loading