Skip to content

Commit 180efd7

Browse files
committed
fix: bind mount path
1 parent b82e822 commit 180efd7

File tree

3 files changed

+4
-3
lines changed

3 files changed

+4
-3
lines changed

README.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,8 @@ This repository builds the official Stochastix application images and installer.
77
To create a new Stochastix project, run the following command, replacing `your-project-name` with the desired name for your project folder:
88

99
```bash
10-
docker run --rm -it --pull=always -v "$PWD":/app -v /var/run/docker.sock:/var/run/docker.sock \
10+
docker run --rm -it --pull=always -e HOST_PWD="$PWD" \
11+
-v "$PWD":/app -v /var/run/docker.sock:/var/run/docker.sock \
1112
ghcr.io/phpquant/stochastix-installer your-project-name
1213
```
1314

build/app.Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ RUN set -eux; \
6767
ds \
6868
;
6969

70-
RUN git config --global --add safe.directory /app && git config --global --add safe.directory /repos/core
70+
RUN git config --global --add safe.directory /app
7171

7272
# https://getcomposer.org/doc/03-cli.md#composer-allow-superuser
7373
ENV COMPOSER_ALLOW_SUPERUSER=1

build/installer/install.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ echo "🚀 Installing Stochastix... (This may take 3 to 10 minutes depending on
4040

4141
# Use the mounted Docker socket to run docker-compose on the host machine,
4242
# specifying the project directory for context.
43-
docker run --rm -it -v "${PROJECT_PATH}:/app" ghcr.io/phpquant/stochastix:latest php --version
43+
docker run --rm -it -v "${HOST_PWD}/${PROJECT_NAME}:/app" ghcr.io/phpquant/stochastix:latest php --version
4444
docker compose -p "${PROJECT_NAME}" -f "${PROJECT_PATH}/compose.yaml" up -d
4545

4646
echo

0 commit comments

Comments
 (0)