-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* fix readme + dockerfile * update build-icon
- Loading branch information
Günter Grodotzki
authored
Mar 23, 2020
1 parent
a1a6e26
commit 1dbcb45
Showing
6 changed files
with
415 additions
and
169 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,7 @@ | ||
/.buildpath | ||
/.project | ||
/.settings/ | ||
/.idea/ | ||
|
||
/test.php | ||
/version.txt | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 | ||
|
@@ -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". | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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": { | ||
|
Oops, something went wrong.