Our great sponsors
-
InfluxDB
Power Real-Time Data Analytics at Scale. Get real-time insights from all types of time series data with InfluxDB. Ingest, query, and analyze billions of data points in real-time with unbounded cardinality.
-
libcurl
A command line tool and library for transferring data with URL syntax, supporting DICT, FILE, FTP, FTPS, GOPHER, GOPHERS, HTTP, HTTPS, IMAP, IMAPS, LDAP, LDAPS, MQTT, POP3, POP3S, RTMP, RTMPS, RTSP, SCP, SFTP, SMB, SMBS, SMTP, SMTPS, TELNET, TFTP, WS and WSS. libcurl offers a myriad of powerful features
-
WorkOS
The modern identity platform for B2B SaaS. The APIs are flexible and easy-to-use, supporting authentication, user identity, and complex enterprise features like SSO and SCIM provisioning.
Here's my project @ GitHub - unfor19/nexus-ops. To understand how it all works, check the provision/entrypoint.sh file; I tried to make it as neat as possible.
NXRM Integration API Scripting Examples
Automated actions should be done using NXRM REST API, which will help add more features easily. Since I chose Bash, I'm using curl to make HTTP requests.
ARG NEXUS_VERSION="3.30.1" FROM sonatype/nexus3:${NEXUS_VERSION} as app USER root RUN curl -L -o /usr/local/bin/jq https://github.com/stedolan/jq/releases/download/jq-1.6/jq-linux64 && \ chmod +x /usr/local/bin/jq USER nexus ENV NEXUS_DATA_PATH="/nexus-data" \ NEXUS_ADMIN_USERNAME="admin" \ NEXUS_ADMIN_PASSWORD="admin" \ NEXUS_API_PATH="service/rest/v1" \ NEXUS_BASE_PATH="http://localhost:8081" \ NEXUS_OPS_VERBOSE="false" WORKDIR /"${NEXUS_DATA_PATH}/nexus-ops/" COPY provision/ . CMD /nexus-data/nexus-ops/entrypoint.sh
As you can see from the Dockerfile above, I'm copying the directory provision/ to the NXRM image, and instead of running /opt/sonatype/start-nexus-repository-manager.sh as the CMD, I wrapped it with the provision/entrypoint.sh script.