Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 11 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
FROM alpine

MAINTAINER Alexander Zierhut <info@zierhut-it.de>
LABEL maintainer="info@zierhut-it.de"

RUN apk add --no-cache git composer openssl php-common php-bcmath php-json php-mbstring php-tokenizer

WORKDIR /obfuscate
RUN git clone https://github.com/naneau/php-obfuscator . && composer install

ENTRYPOINT ["/obfuscate/bin/obduscate" "obfuscate"]
15 changes: 15 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -45,3 +45,18 @@ You can run the obfuscator with a configuration file through
```bash
./bin/obfuscate obfuscate /input/directory /output/directory --config=/foo/bar/config.yml
```

## Docker Support
### Usage
There is a docker image of this project. You could use it to implement obfuscation into your CI processes. It can be found <a href="https://hub.docker.com/repository/docker/zierhutit/naneau-php-obfuscator/general">here</A>. It is called `zierhutit/naneau-php-obfuscator/`.

### Drone CI
Example Configuration:
```YAML
- name: Obfuscation
image: zierhutit/naneau-php-obfuscator
commands:
- mkdir /drone/src-tmp
- cp -rf /drone/src/* /drone/src-tmp
- /obfuscate/bin/obfuscate obfuscate /drone/src-tmp /drone/src
```