Skip to content

Commit

Permalink
fix readme + dockerfile (#12)
Browse files Browse the repository at this point in the history
* fix readme + dockerfile

* update build-icon
  • Loading branch information
Günter Grodotzki authored Mar 23, 2020
1 parent a1a6e26 commit 1dbcb45
Show file tree
Hide file tree
Showing 6 changed files with 415 additions and 169 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
/.buildpath
/.project
/.settings/
/.idea/

/test.php
/version.txt
Expand Down
4 changes: 2 additions & 2 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,10 +15,10 @@ env:

matrix:
include:
- php: 7.4
- php: 7.3
- php: 7.2
env: DEPLOY=true
- php: 7.1
- php: 7.2

deploy:
- provider: releases
Expand Down
4 changes: 3 additions & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
FROM php:7.2-alpine
FROM php:7.3-alpine

ENTRYPOINT ["/usr/local/bin/myformer"]

WORKDIR /dumps

COPY myformer.phar /usr/local/bin/myformer
41 changes: 21 additions & 20 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
[![Build Status](https://travis-ci.org/NINEJKH/myformer.svg?branch=master)](https://travis-ci.org/NINEJKH/myformer)

# myformer

[![Build Status](https://travis-ci.com/NINEJKH/myformer.svg?branch=master)](https://travis-ci.com/NINEJKH/myformer)

## Installation

```bash
Expand Down Expand Up @@ -39,32 +39,33 @@ $ mysqldump \
### create config

```bash
$ cat <<'EOF' > .myform.json
$ cat <<'EOF' > ./myform.json
{
"table_name": [{
"columnA": {
"Tel": null
}
},
{
"columnB": {
"Email": "qa+%[email protected]"
}
},
{
"columnC": {
"Set": "static content"
}
}
]
"table_name": {
"columnA": {
"Tel": null
},
"columnB": {
"Email": "qa+%[email protected]"
},
"columnC": {
"Set": "static content"
}
}
}
EOF
```

### anonymise data

```bash
$ myformer transform *_data.sql
myformer transform foobar_data.sql
```

or via docker:

```bash
docker run -it --rm -v "${PWD}:/dumps" 9jkh/myformer transform foobar_data.sql
```

This will create a file with the same name + postfixed with "+transformed".
Expand Down
7 changes: 6 additions & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,13 @@
"email": "[email protected]"
}
],
"config": {
"platform": {
"php": "7.3.16"
}
},
"require": {
"php": ">=7.1.0",
"php": ">=7.3.0",
"symfony/console": "^4.0"
},
"autoload": {
Expand Down
Loading

0 comments on commit 1dbcb45

Please sign in to comment.