Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added Docker support and example drone.io config #54

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
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 <[email protected]>
LABEL maintainer="[email protected]"

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
```