Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use latest jq develop version #89

Closed
wants to merge 2 commits into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 11 additions & 4 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,18 +1,25 @@
FROM python:3.9-slim
RUN apt-get update && apt-get upgrade -y --no-install-recommends \
&& apt-get install -y xsltproc libxml2-utils git build-essential curl zip unzip wget python3-venv python3-pip lftp --no-install-recommends \
&& apt-get install -y xsltproc libxml2-utils git build-essential curl zip unzip wget python3-venv python3-pip lftp autoconf automake make libtool flex --no-install-recommends \
&& apt-get clean && rm -rf /var/cache/apt
WORKDIR /deps
#RUN git clone https://github.com/edsu/json2xml.git
RUN git clone https://github.com/Cheedoong/xml2json.git
RUN git clone https://github.com/OpenDataServices/flatten-tool.git
RUN wget https://github.com/stedolan/jq/releases/download/jq-1.6/jq-linux64 -O jq

# install jq manually because of performance issues in release 1.6
RUN mkdir jq
RUN git clone https://github.com/stedolan/jq.git jq/repo
RUN cd /deps/jq/repo && git checkout a9f97e9e61a910a374a5d768244e8ad63f407d3e && git submodule update --init \
&& autoreconf -fi && ./configure --with-oniguruma=builtin --disable-maintainer-mode --prefix=$PWD/.. \
&& make && make install
RUN chmod +x jq
RUN cd xml2json && make

RUN cd /deps/xml2json && make
RUN cd /deps/flatten-tool
RUN python3 -m venv .ve
#RUN source .ve/bin/activate
RUN ["/bin/bash", "-c", "source .ve/bin/activate"]
RUN pip install json2xml
#RUN pip3 install -r requirements.txt
ENV PATH="$PATH:/deps:/deps/xml2json"
ENV PATH="$PATH:/deps:/deps/xml2json:/deps/jq/bin"