Reposilite

提供: ArchWiki
2023年2月3日 (金) 02:14時点におけるKgx (トーク | 投稿記録)による版 (英語版から転載)
(差分) ← 古い版 | 最新版 (差分) | 新しい版 → (差分)
ナビゲーションに移動 検索に移動

Reposilite から reposilite は、:

JVM エコシステムにおける Maven ベースの成果物のための、軽量で使いやすいリポジトリマネージャーです。Nexus、Archiva、Artifactoryのようなマネージャーを置き換える、シンプルで拡張性のあるスケーラブルなセルフホストソリューションで、リソースの消費量を削減します。

Installation

Install reposiliteAUR

Getting started

Reposilite does the majority of its configuration through the web interface. When you first start reposilite you will not have any user to login as. Ensure that the systemd service is stopped before continuing:

# systemctl stop reposilite

Now, we need to start reposilite through the command line to be able to interact with the cli:

# java -jar /usr/share/java/reposilite/reposilite.jar -wd /var/lib/reposilite
ノート: -wd sets the working directory to /var/lib/reposilite, if this is not set the data will be stored in the directory you execute the jar, which is undesired.

Once the server has started, you need to create a new administrator account, we will use ! to indicate a command which should be done through the reposilite cli:

! token-generate username m

Remember to replace username with the desired username, it is best to let reposilite generate you a secure token, but if you wish to use your own token, you can use the following command:

! token-generate --secret="your token" username m
警告: Do not use a weak token, if it is too easy to break an attacker could break into your reposilite server and potentially have access to your servers filesystem!
ノート: The trailing "m" character is used to give the user manager permissions (commonly known as an administrator, or root user within other applications), this will allow the user to configure reposilite, therefore keep this user safe!

Now that you have generated the username (if you let reposilite generate your token, make sure to copy this down securely, a password manager is recommended), you can stop the reposilite server using the following command:

! stop

Reposilite will then gracefully shutdown and detach from your terminal.

You can now [Start/enable] reposilite.service and you will be able to access the reposilite web interface over http://127.0.0.1:8080.