Skip to content

Commit

Permalink
Merge pull request #64 from usnistgov/fix/mkjq
Browse files Browse the repository at this point in the history
Upgrade jq to 1.7.1
  • Loading branch information
RayPlante authored Jun 26, 2024
2 parents 57ed4ae + 53ffbcc commit f23f235
Show file tree
Hide file tree
Showing 8 changed files with 14 additions and 9 deletions.
2 changes: 1 addition & 1 deletion docker/dockbuild.sh
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ PACKAGE_NAME=oar-metadata
## containers to be built. List them in dependency order (where a latter one
## depends the former ones).
#
DOCKER_IMAGE_DIRS="pymongo jqfromsrc ejsonschema mdtests"
DOCKER_IMAGE_DIRS="pymongo jq ejsonschema mdtests"

. $codedir/oar-build/_dockbuild.sh

Expand Down
2 changes: 1 addition & 1 deletion docker/ejsonschema/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM oar-metadata/jqfromsrc:latest
FROM oar-metadata/jq

RUN apt-get update && apt-get install -y unzip uwsgi uwsgi-src \
uuid-dev libcap-dev libpcre3-dev python3-distutils
Expand Down
14 changes: 9 additions & 5 deletions docker/jq/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -6,13 +6,17 @@ RUN apt-get update && \
WORKDIR /root

# Download a jq binary and do a checksum check on it
COPY jq.sha256 .
RUN curl -L -o jq-linux64 \
https://github.com/stedolan/jq/releases/download/jq-1.5/jq-linux64 && \
sha256sum -c jq.sha256
COPY jq-linux-amd64.sha256 jq-linux-arm64.sha256 ./
RUN arch=$(uname -m) && \
{ [ "$arch" != "x86_64" ] || arch="amd64"; } && \
curl -L -o jq-linux-$arch \
https://github.com/stedolan/jq/releases/download/jq-1.7.1/jq-linux-$arch && \
sha256sum -c jq-linux-$arch.sha256

# install jq
RUN chmod a+x jq-linux64 && cp jq-linux64 /usr/local/bin/jq
RUN arch=$(uname -m) && \
{ [ "$arch" != "x86_64" ] || arch="amd64"; } && \
chmod a+x jq-linux-$arch && cp jq-linux-$arch /usr/local/bin/jq

CMD ["bash"]

Expand Down
1 change: 1 addition & 0 deletions docker/jq/jq-linux-amd64.sha256
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
5942c9b0934e510ee61eb3e30273f1b3fe2590df93933a93d7c58b81d19c8ff5 jq-linux-amd64
1 change: 1 addition & 0 deletions docker/jq/jq-linux-arm64.sha256
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
4dd2d8a0661df0b22f1bb9a1f9830f06b6f3b8f7d91211a1ef5d7c4f06a8b4a5 jq-linux-arm64
1 change: 0 additions & 1 deletion docker/jq/jq.sha256

This file was deleted.

1 change: 0 additions & 1 deletion docker/jqfromsrc/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@ RUN git clone http://github.com/stedolan/jq.git jq-dev && \
git checkout a9f97e9e61a910a374a5d768244e8ad63f407d3e && \
git submodule update --init && \
autoreconf -fi && \
(cd docs && pipenv install) && \
./configure --with-oniguruma=builtin && \
make -j8 && \
make check-TESTS && \
Expand Down
1 change: 1 addition & 0 deletions docker/pymongo/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -22,3 +22,4 @@ ENV LANGUAGE en_US:en
ENV LC_ALL en_US.UTF-8
RUN python -m pip install pymongo

ENV HOME /root

0 comments on commit f23f235

Please sign in to comment.