Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
S
swh-docs
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Vincent Sellier
swh-docs
Commits
68003665
Commit
68003665
authored
6 years ago
by
Stefano Zacchiroli
Browse files
Options
Downloads
Patches
Plain Diff
skeleton of a getting-started walk-through for developers
Related T1193
parent
f7e270a4
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
docs/getting-started.rst
+58
-0
58 additions, 0 deletions
docs/getting-started.rst
docs/index.rst
+7
-0
7 additions, 0 deletions
docs/index.rst
with
65 additions
and
0 deletions
docs/getting-started.rst
0 → 100644
+
58
−
0
View file @
68003665
.. _getting-started:
.. highlight:: bash
Run your own Software Heritage
==============================
This walkthrough will guide from the basic step of obtaining the source code of
the Software Heritage stack to running a local copy of it in which you can
ingest source code of existing repositories and browse them using the archive
web application.
Step 0 - get the code
---------------------
The `swh-environment
<https://forge.softwareheritage.org/source/swh-environment/>`_ Git (meta)
repository orchestrates the Git repositories of all Software Heritage modules.
Clone it::
git clone https://forge.softwareheritage.org/source/swh-environment.git
then recursively clone all Python module repositories. For this step you will
need the `mr <http://myrepos.branchable.com/>`_ tool, see the `README` file of
swh-environment for more information::
cd swh-environment
readlink -f .mrconfig >> ~/.mrtrust
mr up
For periodic code updates in the future you can use the following helper::
cd swh-environment
bin/update
Step 1 - set up storage
-----------------------
Then you will need a local storage to archive source code artifacts. It comes
in two parts: a content-addressable object storage on your file system (for
file contents) and a Postgres database (for the graph structure of the
archive). See the :ref:`data-model` for more information.
**TO BE WRITTEN**
Step 2 - ingest repositories
----------------------------
**TO BE WRITTEN**
Step 3 - browse the archive
---------------------------
**TO BE WRITTEN**
This diff is collapsed.
Click to expand it.
docs/index.rst
+
7
−
0
View file @
68003665
...
...
@@ -8,6 +8,13 @@ Software Heritage - Development Documentation
:caption: Contents:
Getting started
---------------
* :ref:`getting-started` ← start here to hack on the Software Heritage software
stack
Components
----------
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment