diff --git a/Dockerfile b/Dockerfile index d3009de..8973c50 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,6 +1,6 @@ FROM golang:1.12-buster -RUN apt update && apt install bzip2 +RUN apt update && apt install -y bzip2 RUN mkdir -p /yap/src COPY . /yap/src/yap @@ -9,6 +9,8 @@ ENV GOPATH=/yap WORKDIR /yap/src/yap RUN bunzip2 data/*.bz2 + +ENV GIT_SSL_NO_VERIFY=1 RUN go get . RUN go build . diff --git a/README.md b/README.md index 77f8776..a2d5e46 100644 --- a/README.md +++ b/README.md @@ -245,8 +245,9 @@ $ When sending the request from a Python client, try using this code: ```python + from pprint import pprint import requests - impot json + import json text = 'גנן גידל דגן בגן' localhost_yap = "http://localhost:8000/yap/heb/joint" @@ -254,6 +255,7 @@ $ headers = {'content-type': 'application/json'} response = requests.get(url=localhost_yap, data=data, headers=headers) json_response = response.json() + pprint(json_response) ``` ## Joint vs Pipeline