Commit 8ce782f7 authored by rancher's avatar rancher

Dockerfile

parent 5758750a
FROM clarinpl/cpp
WORKDIR /home/install
COPY CMakeScripts/ CMakeScripts/
COPY CMakeLists.txt .
COPY tag_converter_service.cpp .
RUN mkdir build && \
cd build && \
cmake .. && make
WORKDIR /home/worker
COPY mappings/ mappings/
RUN cp /home/install/bin/* . && \
rm -r /home/install
CMD ["./tag_converter"]
[tag_converter]
mapping=/home/igor/services/tag_converter/mappings/nkjp2upos.tconv
mapping = ./mappings
[service]
tool = new_tag_converter
tool = tag_converter
root = /samba/requests/
rabbit_host = 10.17.0.85
......@@ -17,4 +17,4 @@ port = 11125
local_log_level = INFO
[logging_levels]
__main__ = INFO
\ No newline at end of file
__main__ = INFO
......@@ -16,6 +16,7 @@ class tag_converter_Worker: public NLPWorker
{
public:
void process(string task_path, ptree &config, string output_path);
void process(ptree &data, ptree &options);
void static_init(ptree config);
void init(ptree config);
private:
......@@ -52,6 +53,9 @@ void tag_converter_Worker::init(ptree config)
}
}
void tag_converter_Worker::process(ptree &data, ptree &options){
}
void tag_converter_Worker::process(string task_path, ptree &config, string output_path)
{
std::ifstream input(task_path);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment