diff --git a/README.md b/README.md index 3950b34..9d84e61 100644 --- a/README.md +++ b/README.md @@ -184,7 +184,7 @@ $ curl --cacert ./certs/ca.cert.pem https://localhost:1180/health Expected result: ``` { - "version": "1.1.6" + "version": "1.1.8" } ``` diff --git a/build/Dockerfile b/build/Dockerfile index a55a3fe..63d98af 100644 --- a/build/Dockerfile +++ b/build/Dockerfile @@ -1,13 +1,15 @@ FROM ubuntu:20.04 -RUN apt-get clean && apt-get -y update && apt-get -y upgrade +ENV DEBIAN_FRONTEND=noninteractive + +RUN apt-get clean && apt-get -y update && apt-get -y upgrade && apt-get install -y openjdk-17-jdk maven make git curl swig cmake unzip software-properties-common --no-install-recommends RUN bash -c 'echo "deb http://dk.archive.ubuntu.com/ubuntu/ xenial main" >> /etc/apt/sources.list' RUN bash -c 'echo "deb http://dk.archive.ubuntu.com/ubuntu/ xenial universe" >> /etc/apt/sources.list' -RUN apt-get -y update -RUN apt-get -y install g++-4.9 g++-4.9-multilib + +RUN apt-get -y update && apt-get -y install g++-4.9 g++-4.9-multilib --no-install-recommends RUN bash -c 'head -n -2 /etc/apt/sources.list > intermediate_file;mv -f intermediate_file /etc/apt/sources.list' -RUN apt-get -y update +#RUN apt-get -y update RUN update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-4.9 10 RUN update-alternatives --install /usr/bin/g++ g++ /usr/bin/g++-4.9 10 RUN update-alternatives --install /usr/bin/cc cc /usr/bin/gcc 30 @@ -15,9 +17,6 @@ RUN update-alternatives --set cc /usr/bin/gcc RUN update-alternatives --install /usr/bin/c++ c++ /usr/bin/g++ 30 RUN update-alternatives --set c++ /usr/bin/g++ -RUN apt-get install -y software-properties-common && add-apt-repository -y ppa:ubuntu-toolchain-r/test -RUN apt-get install -y openjdk-11-jdk maven make git curl swig cmake unzip - # Create a user 'fdouser'. If the user name is updated, please update the same in docker-compose.yaml. RUN useradd -ms /bin/bash fdouser RUN mkdir -p /home/fdouser/epid-verification-service/ ; chown -R fdouser:fdouser /home/fdouser/epid-verification-service/ diff --git a/build/build.sh b/build/build.sh index d950654..807256a 100755 --- a/build/build.sh +++ b/build/build.sh @@ -10,14 +10,14 @@ export https_proxy_host=$(echo $https_proxy | awk -F':' {'print $2'} | tr -d '/' export https_proxy_port=$(echo $https_proxy | awk -F':' {'print $3'} | tr -d '/') export _JAVA_OPTIONS="-Dhttp.proxyHost=$http_proxy_host -Dhttp.proxyPort=$http_proxy_port -Dhttps.proxyHost=$https_proxy_host -Dhttps.proxyPort=$https_proxy_port" -export JAVA_HOME=/usr/lib/jvm/java-11-openjdk-amd64 +export JAVA_HOME=/usr/lib/jvm/java-17-openjdk-amd64 # The PGP signature verification requires additional proxy configuration in # ~/.m2/settings.xml. For simplicity and easier out of box experience, the PGP # signature verification is disabled here. In case this is used to create # production build, it is recommended to update ~/.m2/settings.xml to include # proxy configurations. -MVN_CONFIG="-Dpgpverify.skip=true" +MVN_CONFIG="-Dpgpverify.skip=true -Dcheckstyle.skip" build_source() { diff --git a/demo/Dockerfile-epid-verification b/demo/Dockerfile-epid-verification index b6b5bdf..dd20641 100644 --- a/demo/Dockerfile-epid-verification +++ b/demo/Dockerfile-epid-verification @@ -2,8 +2,7 @@ # SPDX-License-Identifier: Apache 2.0 FROM ubuntu:20.04 -RUN apt-get update && apt-get install -y openjdk-11-jdk -RUN apt-get install -y wget openssl +RUN apt-get update && apt-get install -y openjdk-17-jdk wget openssl --no-install-recommends # Create a user 'verifier'. # If the user name is updated, please update the same in cmdDocker.sh. diff --git a/demo/docker-compose.yml b/demo/docker-compose.yml index 85c2e72..446124a 100644 --- a/demo/docker-compose.yml +++ b/demo/docker-compose.yml @@ -6,7 +6,7 @@ version: '2.4' services: epid-verification-service: - image: epid-verification-service:1.1.6 + image: epid-verification-service:1.1.8 container_name: epid-verification-service expose: - "1180" diff --git a/pom.xml b/pom.xml index 89407cf..79f9e29 100644 --- a/pom.xml +++ b/pom.xml @@ -12,7 +12,7 @@ epid-verification-service FDO EPID Verification Service App jar - 1.1.6 + 1.1.8 FDO EPID Verification Service App