-
Notifications
You must be signed in to change notification settings - Fork 567
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
50 changed files
with
612 additions
and
362 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 |
---|---|---|
@@ -0,0 +1,80 @@ | ||
# Go | ||
|
||
vendor/ | ||
|
||
# Git | ||
.git | ||
.gitignore | ||
|
||
# CI | ||
.azure-pipelines.yml | ||
|
||
|
||
# Docker | ||
.docker | ||
|
||
# Byte-compiled / optimized / DLL files | ||
__pycache__/ | ||
*/__pycache__/ | ||
*/*/__pycache__/ | ||
*/*/*/__pycache__/ | ||
*.py[cod] | ||
*/*.py[cod] | ||
*/*/*.py[cod] | ||
*/*/*/*.py[cod] | ||
|
||
# C extensions | ||
*.so | ||
|
||
# Distribution / packaging | ||
.Python | ||
env/ | ||
build/ | ||
develop-eggs/ | ||
dist/ | ||
downloads/ | ||
eggs/ | ||
lib/ | ||
lib64/ | ||
parts/ | ||
sdist/ | ||
var/ | ||
*.egg-info/ | ||
.installed.cfg | ||
*.egg | ||
|
||
# PyInstaller | ||
# Usually these files are written by a python script from a template | ||
# before PyInstaller builds the exe, so as to inject date/other infos into it. | ||
*.manifest | ||
*.spec | ||
|
||
# Installer logs | ||
pip-log.txt | ||
pip-delete-this-directory.txt | ||
|
||
# Unit test / coverage reports | ||
htmlcov/ | ||
.tox/ | ||
.coverage | ||
.cache | ||
nosetests.xml | ||
coverage.xml | ||
|
||
# Translations | ||
*.mo | ||
*.pot | ||
|
||
# PyBuilder | ||
target/ | ||
|
||
# Virtual environment | ||
.env/ | ||
.venv/ | ||
venv/ | ||
|
||
# IDE | ||
.idea | ||
.vscode | ||
docs/ | ||
charts/ |
This file was deleted.
Oops, something went wrong.
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 |
---|---|---|
@@ -0,0 +1,9 @@ | ||
ARG REGISTRY=presidio.azurecr.io | ||
|
||
FROM ${REGISTRY}/presidio-golang-deps | ||
|
||
WORKDIR $GOPATH/src/github.com/Microsoft/presidio | ||
ADD . $GOPATH/src/github.com/Microsoft/presidio | ||
|
||
RUN dep ensure && \ | ||
make go-test |
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 |
---|---|---|
@@ -0,0 +1,9 @@ | ||
FROM golang:1.11.3-alpine3.8 | ||
|
||
ARG DEP_VERSION="0.5.0" | ||
|
||
RUN apk --update add curl git make g++ | ||
|
||
RUN curl -L -s https://github.com/golang/dep/releases/download/v${DEP_VERSION}/dep-linux-amd64 -o $GOPATH/bin/dep && \ | ||
chmod +x $GOPATH/bin/dep && \ | ||
curl -L https://git.io/vp6lP | sh |
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 |
---|---|---|
@@ -0,0 +1,16 @@ | ||
FROM python:3.7.1-alpine3.8 | ||
|
||
ARG re2_version="2018-12-01" | ||
ARG NAME=presidio-analyzer | ||
COPY ./${NAME}/requirements.txt /usr/bin/${NAME}/requirements.txt | ||
|
||
WORKDIR /usr/bin/${NAME} | ||
|
||
RUN apk --update add --no-cache g++ && \ | ||
apk --update add --no-cache --virtual build_deps make tar wget clang && \ | ||
wget -O re2.tar.gz https://github.com/google/re2/archive/${re2_version}.tar.gz && \ | ||
mkdir re2 && tar --extract --file "re2.tar.gz" --directory "re2" --strip-components 1 && \ | ||
cd re2 && make install && cd .. && rm -rf re2 && rm re2.tar.gz && \ | ||
pip install --no-cache-dir cython && \ | ||
pip install --no-cache-dir -r requirements.txt && \ | ||
apk del build_deps |
Oops, something went wrong.