Hi Saad,
Please find my docker file content below:
FROM alpine
WORKDIR /nlgservice
RUN apk update && apk add openjdk8 && apk add apache-ant
# copy the content of the local directory to the working directory
COPY / .
# Publish port
EXPOSE 8585
ENTRYPOINT ["ant"]
Please find the error below:
---------------------------------------------------------------------------
TimeoutError Traceback (most recent call last)
<ipython-input-9-937552c427e5> in <module>
6 p.predicate = verb
7 p.object = obj
----> 8 print(realise_en.element(p))
<ipython-input-2-1e0229a598cc> in element(self, elt, **kwargs)
16 elt.accept(v)
17 #self.logger.debug('XML for realisation:\n{0}'.format(v.to_xml()))
---> 18 result = self.client.xml_request(v.to_xml())
19 return result.replace(' ,', ',')
<ipython-input-1-52fa072b1d7a> in xml_request(self, data)
120
121 def xml_request(self, data):
--> 122 with self.socket as sock:
123 sock.send_string(data)
124 result = sock.recv_string()
<ipython-input-1-52fa072b1d7a> in __enter__(self)
101 # allow the use in 'with' statement
102 def __enter__(self):
--> 103 self.connect()
104 return self
105
<ipython-input-1-52fa072b1d7a> in connect(self)
39 self.socket = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
40 try:
---> 41 self.socket.connect((self.host, self.port))
42 except OSError as msg:
43 self.socket.close()
TimeoutError: [Errno 60] Operation timed out
Please suggest if any changes required in docker file
Thanks & Regards
Suresh