Skip to content

Commit

Permalink
Version 0.1.0 (#78)
Browse files Browse the repository at this point in the history
  • Loading branch information
torosent authored Dec 18, 2018
1 parent b4ff9c1 commit 3945113
Show file tree
Hide file tree
Showing 50 changed files with 612 additions and 362 deletions.
80 changes: 80 additions & 0 deletions .dockerignore
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/
35 changes: 0 additions & 35 deletions .travis.yml

This file was deleted.

9 changes: 9 additions & 0 deletions Dockerfile.golang.base
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
9 changes: 9 additions & 0 deletions Dockerfile.golang.deps
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
16 changes: 16 additions & 0 deletions Dockerfile.python.deps
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
Loading

0 comments on commit 3945113

Please sign in to comment.