Both sides previous revision Previous revision Next revision | Previous revision |
windows:chocolatey:setup-self-hosted-choco-repo [2025/02/11 07:37] – updated Zyzonix | windows:chocolatey:setup-self-hosted-choco-repo [2025/02/11 08:10] (current) – old revision restored (2025/02/11 08:09) Zyzonix |
---|
- Change owner of unpacked files: <code bash>chown nexus -R /opt/nexus-<version></code> | - Change owner of unpacked files: <code bash>chown nexus -R /opt/nexus-<version></code> |
- Make binary executeable: <code bash>chmod +x /opt/nexus-<version>/bin/nexus</code> | - Make binary executeable: <code bash>chmod +x /opt/nexus-<version>/bin/nexus</code> |
- Create systemservice with the name ''nexus.service'' and copy it to ''/etc/systemd/system'' (keep in mind to add the nexus version): | - Create systemservice with the name ''nexus.service'' and copy it to ''/etc/systemd/system'' (keep in mind to add the nexus version): <panel type="info" icon="glyphicon glyphicon-file" title="nexus.service"> |
| |
<panel type="info" icon="glyphicon glyphicon-file" title="nexus.service"> | |
<code bash> | <code bash> |
[Unit] | [Unit] |
WantedBy=multi-user.target | WantedBy=multi-user.target |
</code> | </code> |
<code bash>cp nexus.service /etc/systemd/system</code> | </panel><code bash>cp nexus.service /etc/systemd/system</code><code bash>systemctl start nexus.service</code><code bash>systemctl enable nexus.service</code> |
<code bash>systemctl start nexus.service</code> | |
<code bash>systemctl enable nexus.service</code> | |
- When everything was successful, enter the webservice with ''<nowiki>http://<ip>:8081/</nowiki>'' | - When everything was successful, enter the webservice with ''<nowiki>http://<ip>:8081/</nowiki>'' |
- The password for ''admin'' is located under ''/opt/sonatype/sonatype-work/nexus3/admin.password'' after entering the password, it's forced to be changed.<code bash>cat /opt/sonatype/sonatype-work/nexus3/admin.password</code> The installation of Nexus is now finished! | - The password for ''admin'' is located under ''/opt/sonatype/sonatype-work/nexus3/admin.password'' after entering the password, it's forced to be changed.<code bash>cat /opt/sonatype/sonatype-work/nexus3/admin.password</code> The installation of Nexus is now finished! |
To make the proxy-repository and all local hosted packages available through one URL, add a ''nuget-group'' on the repository tab. Then add both ''nuget-proxy'' and ''nuget-hosted'' to the group. | To make the proxy-repository and all local hosted packages available through one URL, add a ''nuget-group'' on the repository tab. Then add both ''nuget-proxy'' and ''nuget-hosted'' to the group. |
| |
=== APT Repository === | === APT Repository (hosted) === |
| - Firstly create a GPG-Key for signing the release file: |
| - Therefore install ''gpg'' and generate a key with <code bash>gpg --gen-key</code>. Then export the key with to paste it under ''APT Settings'': <code bash>gpg --export-secret-key --armor <KEY-ID> > Key.gpg</code> |
| - If your key is password-secured enter the passphrase in the field below. |
| - Then add the name above e.g. ''apt'', and set the distribution e.g. to ''stable'' |
| - It's then recommended to upload the public-release-key to a RAW storage to make it easy to download. Therefore export the public key with: <code bash>gpg --armor --export <KEY-ID> > Key.gpg</code> |
| - Finally add the repo to APT: <code bash>echo "deb [signed-by=/usr/share/keyrings/your-repo.gpg] https://<your-repo>/repository/apt/ stable main" | sudo tee /etc/apt/sources.list.d/<your-repo>.list</code> |
| - And add the key: <code bash>curl -sS https://<your-repo>/repository/storage/ReleaseKey.gpg | gpg --dearmor | sudo tee /usr/share/keyrings/<your-repo>.gpg > /dev/null</code> |
| - Finished! |
| |
----- | ----- |