Skip to content

Commit 6bd2ecc

Browse files
vlad-ivanov-nameLMG
authored andcommitted
wip
1 parent fc857af commit 6bd2ecc

File tree

3 files changed

+22
-14
lines changed

3 files changed

+22
-14
lines changed

README.md

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,20 +6,24 @@ blazingly-fast, incremental, and reversible implementation of git history filter
66
`josh-proxy` can be integrated with any git host:
77

88
```
9-
$ docker run -p 8000:8000 -e JOSH_REMOTE=https://github.com -v josh-vol:/data/git joshproject/josh-proxy:latest
9+
$ docker run \
10+
-p 8000:8000 \
11+
-e JOSH_REMOTE=https://github.com \
12+
-v josh-vol:/data/git \
13+
joshproject/josh-proxy:latest
1014
```
1115

1216
See [Container options](#container-options) for full list of environment variables.
1317

1418
## Use cases
1519

16-
### Partial cloning
20+
### Partial cloning <a href="https://josh-project.dev/~/ui/browse?repo=josh.git&path=&filter=%3A%2Fdocs&rev=HEAD"><img src="https://img.shields.io/badge/try_it-josh--project.dev-black"/></a>
1721

1822
Reduce scope and size of clones by treating subdirectories of the monorepo
1923
as individual repositories.
2024

2125
```
22-
$ git clone http://josh/monorepo.git:/path/to/library.git
26+
$ git clone https://josh-project.dev/josh.git:/docs.git
2327
```
2428

2529
The partial repo will act as a normal git repository but only contain the files

docs/src/guide/gettingstarted.md

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -10,35 +10,35 @@ proxy to serve your own git repository.
1010
1111
## Setting up the proxy
1212

13-
Josh is distributed via [docker hub](https://hub.docker.com/r/joshproject/josh-proxy),
13+
Josh is distributed via [Docker Hub](https://hub.docker.com/r/joshproject/josh-proxy),
1414
and is installed and started with the following command:
1515

1616
```shell
1717
{{#include gettingstarted.t:docker_github}}
1818
```
1919

20-
This starts josh as a proxy to github.com, in a docker container,
21-
mounting the ./git\_data folder to the image for use by josh.
20+
This starts Josh as a proxy to `github.com`, in a Docker container,
21+
creating a volume `josh-vol` and mounting it to the image for use by Josh.
2222

2323
## Cloning a repository
2424

25-
Once josh is running, we can clone a repository through it.
26-
For example, let's clone josh:
25+
Once Josh is running, we can clone a repository through it.
26+
For example, let's clone Josh:
2727

2828
```shell
2929
{{#include gettingstarted.t:clone_full}}
3030
```
3131

32-
As we can see, this repository is simply the normal josh one:
32+
As we can see, this repository is simply the normal Josh one:
3333

3434
```shell
3535
{{#include gettingstarted.t:ls_full}}
3636
```
3737

38-
## Extracting a module
38+
## Cloning a part of the repo
3939

40-
Josh becomes interesting when we want to extract a module.
41-
Let's check out the josh repository again, but this time let's filter
40+
Josh becomes interesting when we want to clone a part of the repo.
41+
Let's check out the Josh repository again, but this time let's filter
4242
only the documentation out:
4343

4444
```shell

docs/src/guide/gettingstarted.t

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,13 @@
11
$ export TESTTMP=${PWD}
2-
$ mkdir git_data
32

43
# starting josh
54
ANCHOR: docker_github
6-
$ docker run -d -p 8000:8000 -e JOSH_REMOTE=https://github.com -v josh-vol:$(pwd)/git_data joshproject/josh-proxy:latest > josh.out
5+
$ docker run \
6+
> --detach \
7+
> --publish 8000:8000 \
8+
> --env JOSH_REMOTE=https://github.com \
9+
> --volume josh-vol:/data/git \
10+
> joshproject/josh-proxy:latest > josh.out
711
ANCHOR_END: docker_github
812

913
# waiting for josh to be running

0 commit comments

Comments
 (0)