Skip to content

Commit

Permalink
cleanups
Browse files Browse the repository at this point in the history
  • Loading branch information
oliwierptak committed Nov 14, 2021
1 parent bc6e540 commit 50ab184
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 10 deletions.
14 changes: 7 additions & 7 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -16,11 +16,11 @@ RUN curl -sS https://getcomposer.org/installer | php \
RUN composer self-update


ADD ./ /popo/
RUN rm -rf /popo/tests/logs/coverage/
RUN rm -rf /popo/tests/logs/coverage.xml
RUN rm -rf /popo/tests/App/Example/
RUN rm -rf /popo/tests/AppRedefinedNamespace/Example/
RUN rm -rf /popo/tests/AppWithNamespaceRoot/Example/
ADD ./ /popo-app/
RUN rm -rf /popo-app/tests/logs/coverage/
RUN rm -rf /popo-app/tests/logs/coverage.xml
RUN rm -rf /popo-app/tests/App/Example/
RUN rm -rf /popo-app/tests/AppRedefinedNamespace/Example/
RUN rm -rf /popo-app/tests/AppWithNamespaceRoot/Example/

WORKDIR /popo
WORKDIR /popo-app/
6 changes: 4 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -364,13 +364,13 @@ Add popo scrip to composer and run `composer popo` in a project.
With docker you can generate files without installing `POPO` as dependency in the project.

```
docker container run -it --rm -v "$(pwd):/app/" -w/app oliwierptak/popo bin/popo
docker container run -it --rm -v "$(pwd):/popo/" -w/popo oliwierptak/popo /popo-app/bin/popo
```

You can either run the command directly, or create an alias, e.g.:

```
alias docker-popo='docker container run -it --rm -v "$(pwd):/app/" -w/app oliwierptak/popo bin/popo ${@}'
alias docker-popo='docker container run -it --rm -v "$(pwd):/popo/" -w/popo oliwierptak/popo /popo-app/bin/popo ${@}'
```

For example:
Expand All @@ -381,3 +381,5 @@ docker-popo report -s tests/fixtures/popo.yml
```

See also: [bin/docker-popo](bin/docker-popo).

Note: Use different
2 changes: 1 addition & 1 deletion bin/docker-popo
Original file line number Diff line number Diff line change
@@ -1 +1 @@
docker container run -it --rm -v "$(pwd):/app/" -w/app oliwierptak/popo bin/popo ${@}
docker container run -it --rm -v "$(pwd):/popo/" -w/popo oliwierptak/popo /popo-app/bin/popo ${@}

0 comments on commit 50ab184

Please sign in to comment.