Skip to content

Commit 69ce564

Browse files
committed
Work around git safe-directory issue
1 parent ac55fd5 commit 69ce564

File tree

2 files changed

+5
-4
lines changed

2 files changed

+5
-4
lines changed

Dockerfile

+2-1
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,8 @@ RUN apt update \
1616
&& apt install -y \
1717
ca-certificates \
1818
git \
19-
libssl1.1
19+
libssl1.1 \
20+
&& git config --global --add safe.directory '*'
2021

2122
ENTRYPOINT [ "/usr/local/bin/panamax" ]
2223
CMD ["--help"]

README.md

+3-3
Original file line numberDiff line numberDiff line change
@@ -24,11 +24,11 @@ Alternatively, you can clone this repository and `cargo build` or `cargo run` wi
2424
Panamax is available as a docker image, so you can run:
2525

2626
```
27-
$ docker run --rm -it -v /path/to/mirror/:/mirror panamaxrs/panamax init /mirror
27+
$ docker run --rm -it -v /path/to/mirror/:/mirror --user $(id -u) panamaxrs/panamax init /mirror
2828
(Modify /path/to/mirror/mirror.toml as needed)
29-
$ docker run --rm -it -v /path/to/mirror/:/mirror panamaxrs/panamax sync /mirror
29+
$ docker run --rm -it -v /path/to/mirror/:/mirror --user $(id -u) panamaxrs/panamax sync /mirror
3030
(Once synced, serve the mirror)
31-
$ docker run --rm -it -v /path/to/mirror/:/mirror -p8080:8080 panamaxrs/panamax serve /mirror
31+
$ docker run --rm -it -v /path/to/mirror/:/mirror --user $(id -u) -p8080:8080 panamaxrs/panamax serve /mirror
3232
```
3333

3434
Alternatively, you can run panamax in a bare-metal environment like below.

0 commit comments

Comments
 (0)