diff --git a/CHANGELOG.md b/CHANGELOG.md index f5eb1bbf..086485b2 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,34 @@ # CHANGELOG +Contrast-Finder 0.8.5, 2018-02-21 +--------------------------------- + +Upgrade-o-meter: just replace the .war file and restart Tomcat + +### Outdated dependencies +- [#130 - Updated .jsp file, form tag: use "modelAttribute" instead of deprecated "commandName"](https://github.com/Asqatasun/Contrast-Finder/issues/130) +- [#138 - Upgraded markdown-page-generator-plugin (2.1.0 instead of 2.0.1)](https://github.com/Asqatasun/Contrast-Finder/issues/138) +- [#135 - Upgraded owasp:dependency-check (3.1.1 instead of 3.0.2)](https://github.com/Asqatasun/Contrast-Finder/issues/135) +- [#137 - Upgraded spring-security (4.2.4 instead of 4.2.3)](https://github.com/Asqatasun/Contrast-Finder/issues/137) +- [#139 - Upgraded javaee-web-api (8.0 instead of 7.0)](https://github.com/Asqatasun/Contrast-Finder/issues/139) + +### Bug +- [#128 - Webapp: added "charset=UTF-8" HTTP header for css, js, txt, json and xml files](https://github.com/Asqatasun/Contrast-Finder/issues/128) +- [#129 - Webapp: added custom HTTP error pages instead of Tomcat default pages](https://github.com/Asqatasun/Contrast-Finder/issues/129) + +### Improvement +- [#132 - Added new Docker image: pre-requisites_Alpine_tomcat-9](https://github.com/Asqatasun/Contrast-Finder/issues/132) +- [#134 - Added new Docker image: pre-requisites_Debian_tomcat-9_jre9](https://github.com/Asqatasun/Contrast-Finder/issues/134) +- [#127 - Webapp: added contribute.json file](https://github.com/Asqatasun/Contrast-Finder/issues/127) +- [#133 - Webapp: allowed the HTTP header "Cache-Control: immutable" for asset files (css, js, png)](https://github.com/Asqatasun/Contrast-Finder/issues/133) + +### Configuration +- [#131 - Changed default docker image: ubuntu-16.04_tomcat-7 instead of ubuntu-14.04_tomcat-7](https://github.com/Asqatasun/Contrast-Finder/issues/131) + +### Documentation +- Updated prerequisites and install documentation + + Contrast-Finder 0.8.4, 2018-01-24 --------------------------------- diff --git a/docker/RELEASE/Dockerfile b/docker/RELEASE/Dockerfile index a6718a90..c59b0530 120000 --- a/docker/RELEASE/Dockerfile +++ b/docker/RELEASE/Dockerfile @@ -1 +1 @@ -ubuntu-14.04_tomcat-7/Dockerfile \ No newline at end of file +ubuntu-16.04_tomcat-7/Dockerfile \ No newline at end of file diff --git a/docker/RELEASE/README.md b/docker/RELEASE/README.md index fdda931e..3b24aa24 100644 --- a/docker/RELEASE/README.md +++ b/docker/RELEASE/README.md @@ -13,9 +13,9 @@ Supported tags and respective `Dockerfile` links : * [pre-requisites_Alpine_tomcat-8.5](https://github.com/Asqatasun/Contrast-Finder/blob/master/docker/pre-requisites/pre-requisites_Alpine_tomcat-8.5/Dockerfile) ### Releases -* [latest, v0.8.4, ubuntu-14.04](https://github.com/Asqatasun/Contrast-Finder/blob/master/docker/RELEASE/ubuntu-14.04_tomcat-7/Dockerfile) -* [alpine, v0.8.4_alpine, alpine_tomcat-8.5](https://github.com/Asqatasun/Contrast-Finder/blob/master/docker/RELEASE/alpine_tomcat-8.5/Dockerfile) -* [v0.8.3](https://github.com/Asqatasun/Contrast-Finder/blob/v0.8.3/docker/RELEASE/Dockerfile), [v0.8.2](https://github.com/Asqatasun/Contrast-Finder/blob/v0.8.2/docker/RELEASE/Dockerfile), [v0.8.1](https://github.com/Asqatasun/Contrast-Finder/blob/v0.8.1/docker/RELEASE/Dockerfile), [v0.8.0](https://github.com/Asqatasun/Contrast-Finder/blob/v0.8.0/docker/RELEASE/Dockerfile) +* [latest, v0.8.5, ubuntu-16.04](https://github.com/Asqatasun/Contrast-Finder/blob/master/docker/RELEASE/ubuntu-16.04_tomcat-7/Dockerfile) +* [alpine, v0.8.5_alpine, alpine_tomcat-8.5](https://github.com/Asqatasun/Contrast-Finder/blob/master/docker/RELEASE/alpine_tomcat-8.5/Dockerfile) +* [v0.8.4](https://github.com/Asqatasun/Contrast-Finder/blob/v0.8.4/docker/RELEASE/Dockerfile), [v0.8.3](https://github.com/Asqatasun/Contrast-Finder/blob/v0.8.3/docker/RELEASE/Dockerfile), [v0.8.2](https://github.com/Asqatasun/Contrast-Finder/blob/v0.8.2/docker/RELEASE/Dockerfile), [v0.8.1](https://github.com/Asqatasun/Contrast-Finder/blob/v0.8.1/docker/RELEASE/Dockerfile), [v0.8.0](https://github.com/Asqatasun/Contrast-Finder/blob/v0.8.0/docker/RELEASE/Dockerfile) * [v0.7.0](https://github.com/Asqatasun/Contrast-Finder/blob/v0.7.0/docker/RELEASE/Dockerfile), [v0.6.0](https://github.com/Asqatasun/Contrast-Finder/blob/v0.6.0/docker/RELEASE/Dockerfile), [v0.5.2](https://github.com/Asqatasun/Contrast-Finder/blob/v0.5.2/docker/RELEASE/Dockerfile) ## How to use this image diff --git a/docker/RELEASE/alpine_tomcat-7/Dockerfile b/docker/RELEASE/alpine_tomcat-7/Dockerfile index 46cc8468..94f61a0a 100644 --- a/docker/RELEASE/alpine_tomcat-7/Dockerfile +++ b/docker/RELEASE/alpine_tomcat-7/Dockerfile @@ -1,7 +1,7 @@ FROM asqatasun/contrast-finder:pre-requisites_Alpine_tomcat-7 LABEL org.label-schema.schema-version = "1.0.0-rc.1" \ org.label-schema.name = "Contrast-Finder - WebApp (tomcat7 < jdk7 < alpine 3.7)" \ - org.label-schema.version = "0.8.4" \ + org.label-schema.version = "0.8.5" \ org.label-schema.url = "https://contrast-finder.org" \ org.label-schema.vcs-url = "https://github.com/Asqatasun/Contrast-Finder" \ org.label-schema.docker.cmd = "docker run -p 8087:8080 -d asqatasun/contrast-finder:alpine" \ @@ -13,9 +13,9 @@ LABEL org.label-schema.schema-version = "1.0.0-rc.1" # # --- Building this docker image # docker build -t asqatasun/contrast-finder . -# docker build -t asqatasun/contrast-finder --build-arg CONTRAST_FINDER_RELEASE=0.8.4 . -# docker build -t asqatasun/contrast-finder --build-arg SRC_URL_PREFIX=https://github.com/Asqatasun/Contrast-Finder/releases/download/v0.8.4/ . -# docker build -t asqatasun/contrast-finder --build-arg SRC_URL=https://github.com/Asqatasun/Contrast-Finder/releases/download/v0.8.4/contrast-finder-webapp_0.8.4.tar.gz . +# docker build -t asqatasun/contrast-finder --build-arg CONTRAST_FINDER_RELEASE=0.8.5 . +# docker build -t asqatasun/contrast-finder --build-arg SRC_URL_PREFIX=https://github.com/Asqatasun/Contrast-Finder/releases/download/v0.8.5/ . +# docker build -t asqatasun/contrast-finder --build-arg SRC_URL=https://github.com/Asqatasun/Contrast-Finder/releases/download/v0.8.5/contrast-finder-webapp_0.8.5.tar.gz . # # --- Launch a container # docker run -p 127.0.0.1:8087:8080 --name contrast.finder -d asqatasun/contrast-finder @@ -39,7 +39,7 @@ LABEL org.label-schema.schema-version = "1.0.0-rc.1" ################################################################### # build variables -ARG CONTRAST_FINDER_RELEASE="0.8.4" +ARG CONTRAST_FINDER_RELEASE="0.8.5" ARG SRC_URL_PREFIX="https://github.com/Asqatasun/Contrast-Finder/releases/download/v${CONTRAST_FINDER_RELEASE}" ARG SRC_URL="${SRC_URL_PREFIX}/contrast-finder-webapp_${CONTRAST_FINDER_RELEASE}.tar.gz" diff --git a/docker/RELEASE/alpine_tomcat-8.5/Dockerfile b/docker/RELEASE/alpine_tomcat-8.5/Dockerfile index b0264631..48b4d12f 100644 --- a/docker/RELEASE/alpine_tomcat-8.5/Dockerfile +++ b/docker/RELEASE/alpine_tomcat-8.5/Dockerfile @@ -1,7 +1,7 @@ FROM asqatasun/contrast-finder:pre-requisites_Alpine_tomcat-8.5 LABEL org.label-schema.schema-version = "1.0.0-rc.1" \ org.label-schema.name = "Contrast-Finder - WebApp (tomcat 8.5 < jdk 8 < alpine 3.7)" \ - org.label-schema.version = "0.8.4" \ + org.label-schema.version = "0.8.5" \ org.label-schema.url = "https://contrast-finder.org" \ org.label-schema.vcs-url = "https://github.com/Asqatasun/Contrast-Finder" \ org.label-schema.docker.cmd = "docker run -p 8087:8080 -d asqatasun/contrast-finder:alpine" \ @@ -13,9 +13,9 @@ LABEL org.label-schema.schema-version = "1.0.0-rc.1" # # --- Building this docker image # docker build -t asqatasun/contrast-finder . -# docker build -t asqatasun/contrast-finder --build-arg CONTRAST_FINDER_RELEASE=0.8.4 . -# docker build -t asqatasun/contrast-finder --build-arg SRC_URL_PREFIX=https://github.com/Asqatasun/Contrast-Finder/releases/download/v0.8.4/ . -# docker build -t asqatasun/contrast-finder --build-arg SRC_URL=https://github.com/Asqatasun/Contrast-Finder/releases/download/v0.8.4/contrast-finder-webapp_0.8.4.tar.gz . +# docker build -t asqatasun/contrast-finder --build-arg CONTRAST_FINDER_RELEASE=0.8.5 . +# docker build -t asqatasun/contrast-finder --build-arg SRC_URL_PREFIX=https://github.com/Asqatasun/Contrast-Finder/releases/download/v0.8.5/ . +# docker build -t asqatasun/contrast-finder --build-arg SRC_URL=https://github.com/Asqatasun/Contrast-Finder/releases/download/v0.8.5/contrast-finder-webapp_0.8.5.tar.gz . # # --- Launch a container # docker run -p 127.0.0.1:8087:8080 --name contrast.finder -d asqatasun/contrast-finder @@ -39,7 +39,7 @@ LABEL org.label-schema.schema-version = "1.0.0-rc.1" ################################################################### # build variables -ARG CONTRAST_FINDER_RELEASE="0.8.4" +ARG CONTRAST_FINDER_RELEASE="0.8.5" ARG SRC_URL_PREFIX="https://github.com/Asqatasun/Contrast-Finder/releases/download/v${CONTRAST_FINDER_RELEASE}" ARG SRC_URL="${SRC_URL_PREFIX}/contrast-finder-webapp_${CONTRAST_FINDER_RELEASE}.tar.gz" diff --git a/docker/RELEASE/ubuntu-14.04_tomcat-7/Dockerfile b/docker/RELEASE/ubuntu-14.04_tomcat-7/Dockerfile index 9ad14c24..a1eba9ba 100644 --- a/docker/RELEASE/ubuntu-14.04_tomcat-7/Dockerfile +++ b/docker/RELEASE/ubuntu-14.04_tomcat-7/Dockerfile @@ -1,7 +1,7 @@ FROM asqatasun/contrast-finder:pre-requisites_Ubuntu-14.04_tomcat-7 LABEL org.label-schema.schema-version = "1.0.0-rc.1" \ org.label-schema.name = "Contrast-Finder - WebApp (Ubuntu 14.04 - Tomcat 7)" \ - org.label-schema.version = "0.8.4" \ + org.label-schema.version = "0.8.5" \ org.label-schema.url = "https://contrast-finder.org" \ org.label-schema.vcs-url = "https://github.com/Asqatasun/Contrast-Finder" \ org.label-schema.docker.cmd = "docker run -p 8087:8080 -d asqatasun/contrast-finder" \ @@ -13,9 +13,9 @@ LABEL org.label-schema.schema-version = "1.0.0-rc.1" # # --- Building this docker image # docker build -t asqatasun/contrast-finder . -# docker build -t asqatasun/contrast-finder --build-arg CONTRAST_FINDER_RELEASE=0.8.4 . -# docker build -t asqatasun/contrast-finder --build-arg SRC_URL_PREFIX=https://github.com/Asqatasun/Contrast-Finder/releases/download/v0.8.4/ . -# docker build -t asqatasun/contrast-finder --build-arg SRC_URL=https://github.com/Asqatasun/Contrast-Finder/releases/download/v0.8.4/contrast-finder-webapp_0.8.4.tar.gz . +# docker build -t asqatasun/contrast-finder --build-arg CONTRAST_FINDER_RELEASE=0.8.5 . +# docker build -t asqatasun/contrast-finder --build-arg SRC_URL_PREFIX=https://github.com/Asqatasun/Contrast-Finder/releases/download/v0.8.5/ . +# docker build -t asqatasun/contrast-finder --build-arg SRC_URL=https://github.com/Asqatasun/Contrast-Finder/releases/download/v0.8.5/contrast-finder-webapp_0.8.5.tar.gz . # # --- Launch a container # docker run -p 127.0.0.1:8087:8080 --name contrast.finder -d asqatasun/contrast-finder @@ -37,7 +37,7 @@ LABEL org.label-schema.schema-version = "1.0.0-rc.1" ################################################################### # build variables -ARG CONTRAST_FINDER_RELEASE="0.8.4" +ARG CONTRAST_FINDER_RELEASE="0.8.5" ARG SRC_URL_PREFIX="https://github.com/Asqatasun/Contrast-Finder/releases/download/v${CONTRAST_FINDER_RELEASE}" ARG SRC_URL="${SRC_URL_PREFIX}/contrast-finder-webapp_${CONTRAST_FINDER_RELEASE}.tar.gz" diff --git a/docker/RELEASE/ubuntu-16.04_tomcat-7/Dockerfile b/docker/RELEASE/ubuntu-16.04_tomcat-7/Dockerfile index a31abc8d..3f3d5bea 100644 --- a/docker/RELEASE/ubuntu-16.04_tomcat-7/Dockerfile +++ b/docker/RELEASE/ubuntu-16.04_tomcat-7/Dockerfile @@ -1,7 +1,7 @@ FROM asqatasun/contrast-finder:pre-requisites_Ubuntu-16.04_tomcat-7 LABEL org.label-schema.schema-version = "1.0.0-rc.1" \ org.label-schema.name = "Contrast-Finder - WebApp (Ubuntu 16.04 - Tomcat 7)" \ - org.label-schema.version = "0.8.4" \ + org.label-schema.version = "0.8.5" \ org.label-schema.url = "https://contrast-finder.org" \ org.label-schema.vcs-url = "https://github.com/Asqatasun/Contrast-Finder" \ org.label-schema.docker.cmd = "docker run -p 8087:8080 -d asqatasun/contrast-finder" \ @@ -13,9 +13,9 @@ LABEL org.label-schema.schema-version = "1.0.0-rc.1" # # --- Building this docker image # docker build -t asqatasun/contrast-finder . -# docker build -t asqatasun/contrast-finder --build-arg CONTRAST_FINDER_RELEASE=0.8.4 . -# docker build -t asqatasun/contrast-finder --build-arg SRC_URL_PREFIX=https://github.com/Asqatasun/Contrast-Finder/releases/download/v0.8.4/ . -# docker build -t asqatasun/contrast-finder --build-arg SRC_URL=https://github.com/Asqatasun/Contrast-Finder/releases/download/v0.8.4/contrast-finder-webapp_0.8.4.tar.gz . +# docker build -t asqatasun/contrast-finder --build-arg CONTRAST_FINDER_RELEASE=0.8.5 . +# docker build -t asqatasun/contrast-finder --build-arg SRC_URL_PREFIX=https://github.com/Asqatasun/Contrast-Finder/releases/download/v0.8.5/ . +# docker build -t asqatasun/contrast-finder --build-arg SRC_URL=https://github.com/Asqatasun/Contrast-Finder/releases/download/v0.8.5/contrast-finder-webapp_0.8.5.tar.gz . # # --- Launch a container # docker run -p 127.0.0.1:8087:8080 --name contrast.finder -d asqatasun/contrast-finder @@ -37,7 +37,7 @@ LABEL org.label-schema.schema-version = "1.0.0-rc.1" ################################################################### # build variables -ARG CONTRAST_FINDER_RELEASE="0.8.4" +ARG CONTRAST_FINDER_RELEASE="0.8.5" ARG SRC_URL_PREFIX="https://github.com/Asqatasun/Contrast-Finder/releases/download/v${CONTRAST_FINDER_RELEASE}" ARG SRC_URL="${SRC_URL_PREFIX}/contrast-finder-webapp_${CONTRAST_FINDER_RELEASE}.tar.gz" diff --git a/docker/SNAPSHOT-local/Dockerfile b/docker/SNAPSHOT-local/Dockerfile index 2973c9b9..fb2cd11e 120000 --- a/docker/SNAPSHOT-local/Dockerfile +++ b/docker/SNAPSHOT-local/Dockerfile @@ -1 +1 @@ -distrib/ubuntu-14.04_tomcat-7/Dockerfile \ No newline at end of file +distrib/ubuntu-16.04_tomcat-7/Dockerfile \ No newline at end of file diff --git a/docker/SNAPSHOT-local/distrib/alpine_tomcat-7/Dockerfile b/docker/SNAPSHOT-local/distrib/alpine_tomcat-7/Dockerfile index 16f95129..b8ae8ad0 100644 --- a/docker/SNAPSHOT-local/distrib/alpine_tomcat-7/Dockerfile +++ b/docker/SNAPSHOT-local/distrib/alpine_tomcat-7/Dockerfile @@ -21,7 +21,7 @@ FROM asqatasun/contrast-finder:pre-requisites_Alpine_tomcat-7 ################################################################### # environment variables -ENV CONTRAST_FINDER_RELEASE="0.8.4" +ENV CONTRAST_FINDER_RELEASE="0.8.5" # Add contrast-finder .war ADD contrast-finder-webapp_${CONTRAST_FINDER_RELEASE}.tar.gz /root diff --git a/docker/SNAPSHOT-local/distrib/alpine_tomcat-8.5/Dockerfile b/docker/SNAPSHOT-local/distrib/alpine_tomcat-8.5/Dockerfile index e8fd935e..3d2b00ec 100644 --- a/docker/SNAPSHOT-local/distrib/alpine_tomcat-8.5/Dockerfile +++ b/docker/SNAPSHOT-local/distrib/alpine_tomcat-8.5/Dockerfile @@ -22,7 +22,7 @@ FROM asqatasun/contrast-finder:pre-requisites_Alpine_tomcat-8.5 # environment variables -ENV CONTRAST_FINDER_RELEASE="0.8.4" +ENV CONTRAST_FINDER_RELEASE="0.8.5" # Add contrast-finder .war ADD contrast-finder-webapp_${CONTRAST_FINDER_RELEASE}.tar.gz /root diff --git a/docker/SNAPSHOT-local/distrib/alpine_tomcat-9/Dockerfile b/docker/SNAPSHOT-local/distrib/alpine_tomcat-9/Dockerfile new file mode 100644 index 00000000..08ffd5b6 --- /dev/null +++ b/docker/SNAPSHOT-local/distrib/alpine_tomcat-9/Dockerfile @@ -0,0 +1,58 @@ +FROM asqatasun/contrast-finder:pre-requisites_Alpine_tomcat-9 + +# #### usage ###################################################### +# +# --- Building this docker image +# docker build -t asqatasun/contrast-finder:SNAPSHOT_local . +# +# --- Launch a container +# docker run -p 127.0.0.1:8087:8080 --name contrast.finder -d asqatasun/contrast-finder:SNAPSHOT_local +# +# --- Playing with this docker image +# docker exec -ti contrast.finder /bin/cat /softwares-version.txt +# docker exec -ti contrast.finder /bin/bash +# docker logs -f contrast.finder +# +# #### FROM ###################################################### +# asqatasun/contrast-finder:pre-requisites_Alpine_tomcat-9 https://github.com/Asqatasun/Contrast-Finder/blob/master/docker/pre-requisites/pre-requisites_Alpine_tomcat-9/Dockerfile +# |-- tomcat:9-jre8-alpine https://github.com/docker-library/tomcat/blob/master/9.0/jre8-alpine/Dockerfile +# |-- openjdk:8-jre-alpine https://github.com/docker-library/openjdk/blob/master/8-jre/alpine/Dockerfile +# |-- alpine:3.7 https://github.com/gliderlabs/docker-alpine/blob/master/versions/library-3.7/x86_64/Dockerfile +################################################################### + + +# environment variables +ENV CONTRAST_FINDER_RELEASE="0.8.5" + +# Add contrast-finder .war +ADD contrast-finder-webapp_${CONTRAST_FINDER_RELEASE}.tar.gz /root + +# Install contrast-finder +RUN cd /root/contrast-*/install/ && \ + mv -v contrast-*.war contrast-finder.war && \ + mv -v contrast-*.war ${TOMCAT_DIR}webapps && \ + rm -rf /root/contrast-* && \ + echo ${CONTRAST_FINDER_RELEASE} >> ${INFO_FILE} && \ + echo "" >> ${INFO_FILE} && \ + echo "--- ${CONF_FILE} ---" >> ${INFO_FILE} && \ + cat ${CONF_FILE} >> ${INFO_FILE} && \ + echo "" >> ${INFO_FILE} && \ + echo "--- Logs -----------" >> ${INFO_FILE} && \ + echo "${TOMCAT_DIR}logs/catalina.*.log" >> ${INFO_FILE} && \ + echo "${LOG_FILE}" >> ${INFO_FILE} && \ + echo "--------------------" >> ${INFO_FILE} && \ + cat ${INFO_FILE} > ${LOG_FILE} && echo "-- Install: Ok" + + +# Health Check of the Docker Container +# ----> see asqatasun/contrast-finder:pre-requisites_Alpine_tomcat-8.5 + + +###### don't work ############################ +# CMD catalina.sh run ; \ +# tail -f -n 200 ${TOMCAT_DIR}logs/catalina.*.log \ +# ${LOG_FILE} +################################################### + + # in "tomcat:9-jre8-alpine" DockerFile + # CMD ["catalina.sh", "run"] diff --git a/docker/SNAPSHOT-local/distrib/debian-9_tomcat-8.5/Dockerfile b/docker/SNAPSHOT-local/distrib/debian-9_tomcat-8.5/Dockerfile index f3dd2c00..c28a6acc 100644 --- a/docker/SNAPSHOT-local/distrib/debian-9_tomcat-8.5/Dockerfile +++ b/docker/SNAPSHOT-local/distrib/debian-9_tomcat-8.5/Dockerfile @@ -19,7 +19,7 @@ FROM asqatasun/contrast-finder:pre-requisites_Debian-9_tomcat-8.5 ################################################################### # environment variables -ENV CONTRAST_FINDER_RELEASE="0.8.4" +ENV CONTRAST_FINDER_RELEASE="0.8.5" # Add contrast-finder .war ADD contrast-finder-webapp_${CONTRAST_FINDER_RELEASE}.tar.gz /root diff --git a/docker/SNAPSHOT-local/distrib/debian_tomcat-9_jre9/Dockerfile b/docker/SNAPSHOT-local/distrib/debian_tomcat-9_jre9/Dockerfile new file mode 100644 index 00000000..b2a6a2c2 --- /dev/null +++ b/docker/SNAPSHOT-local/distrib/debian_tomcat-9_jre9/Dockerfile @@ -0,0 +1,60 @@ +FROM asqatasun/contrast-finder:pre-requisites_Debian_tomcat-9_jre9 + +# #### usage ###################################################### +# +# --- Building this docker image +# docker build -t asqatasun/contrast-finder:SNAPSHOT_local . +# +# --- Launch a container +# docker run -p 127.0.0.1:8087:8080 --name contrast.finder -d asqatasun/contrast-finder:SNAPSHOT_local +# +# --- Playing with this docker image +# docker exec -ti contrast.finder /bin/cat /softwares-version.txt +# docker exec -ti contrast.finder /bin/bash +# docker logs -f contrast.finder +# +# #### FROM ###################################################### +# asqatasun/contrast-finder:pre-requisites_Debian_tomcat-9_jre9 https://github.com/Asqatasun/Contrast-Finder/blob/master/docker/pre-requisites/pre-requisites_Debian_tomcat-9_jre9/Dockerfile +# |-- tomcat:9-jre9 https://github.com/docker-library/tomcat/blob/master/9.0/jre9/Dockerfile +# |-- openjdk:9-jre https://github.com/docker-library/openjdk/blob/master/9-jre/Dockerfile +# |-- buildpack-deps:sid-curl https://github.com/docker-library/buildpack-deps/blob/master/sid/curl/Dockerfile +# |-- debian:sid https://github.com/debuerreotype/docker-debian-artifacts/blob/dist-amd64/sid/Dockerfile +################################################################### + +# environment variables +ENV CONTRAST_FINDER_RELEASE="0.8.5" +ENV CONF_ENV="debug" + +# Add contrast-finder .war +ADD contrast-finder-webapp_${CONTRAST_FINDER_RELEASE}.tar.gz /root + +# Install contrast-finder +RUN cd /root/contrast-*/install/ && \ + mv -v contrast-*.war contrast-finder.war && \ + mv -v contrast-*.war ${TOMCAT_DIR}webapps && \ + rm -rf /root/contrast-* && \ +echo "env=${CONF_ENV}" >> ${CONF_FILE} && \ + echo ${CONTRAST_FINDER_RELEASE} >> ${INFO_FILE} && \ + echo "" >> ${INFO_FILE} && \ + echo "--- ${CONF_FILE} ---" >> ${INFO_FILE} && \ + cat ${CONF_FILE} >> ${INFO_FILE} && \ + echo "" >> ${INFO_FILE} && \ + echo "--- Logs -----------" >> ${INFO_FILE} && \ + echo "${TOMCAT_DIR}logs/catalina.*.log" >> ${INFO_FILE} && \ + echo "${LOG_FILE}" >> ${INFO_FILE} && \ + echo "--------------------" >> ${INFO_FILE} && \ + cat ${INFO_FILE} > ${LOG_FILE} && echo "-- Install: Ok" + + +# Health Check of the Docker Container +# ----> see asqatasun/contrast-finder:pre-requisites_debian-sid_tomcat-9_jre9 + + +###### don't work ############################ +# CMD catalina.sh run ; \ +# tail -f -n 200 ${TOMCAT_DIR}logs/catalina.*.log \ +# ${LOG_FILE} +################################################### + + # in "tomcat:9-jre9" DockerFile + # CMD ["catalina.sh", "run"] diff --git a/docker/SNAPSHOT-local/distrib/ubuntu-14.04_tomcat-7/Dockerfile b/docker/SNAPSHOT-local/distrib/ubuntu-14.04_tomcat-7/Dockerfile index 6145b4d4..e74b1245 100644 --- a/docker/SNAPSHOT-local/distrib/ubuntu-14.04_tomcat-7/Dockerfile +++ b/docker/SNAPSHOT-local/distrib/ubuntu-14.04_tomcat-7/Dockerfile @@ -19,7 +19,7 @@ FROM asqatasun/contrast-finder:pre-requisites_Ubuntu-14.04_tomcat-7 ################################################################### # environment variables -ENV CONTRAST_FINDER_RELEASE="0.8.4" +ENV CONTRAST_FINDER_RELEASE="0.8.5" # Add contrast-finder .war ADD contrast-finder-webapp_${CONTRAST_FINDER_RELEASE}.tar.gz /root diff --git a/docker/SNAPSHOT-local/distrib/ubuntu-16.04_tomcat-7/Dockerfile b/docker/SNAPSHOT-local/distrib/ubuntu-16.04_tomcat-7/Dockerfile index 95394ae0..2eda0f9a 100644 --- a/docker/SNAPSHOT-local/distrib/ubuntu-16.04_tomcat-7/Dockerfile +++ b/docker/SNAPSHOT-local/distrib/ubuntu-16.04_tomcat-7/Dockerfile @@ -19,7 +19,7 @@ FROM asqatasun/contrast-finder:pre-requisites_Ubuntu-16.04_tomcat-7 ################################################################### # environment variables -ENV CONTRAST_FINDER_RELEASE="0.8.4" +ENV CONTRAST_FINDER_RELEASE="0.8.5" # Add contrast-finder .war ADD contrast-finder-webapp_${CONTRAST_FINDER_RELEASE}.tar.gz /root diff --git a/docker/SNAPSHOT-local/distrib/ubuntu-16.04_tomcat-8.0/Dockerfile b/docker/SNAPSHOT-local/distrib/ubuntu-16.04_tomcat-8.0/Dockerfile index 65c56c49..65dbde4f 100644 --- a/docker/SNAPSHOT-local/distrib/ubuntu-16.04_tomcat-8.0/Dockerfile +++ b/docker/SNAPSHOT-local/distrib/ubuntu-16.04_tomcat-8.0/Dockerfile @@ -19,7 +19,7 @@ FROM asqatasun/contrast-finder:pre-requisites_Ubuntu-16.04_tomcat-8.0 ################################################################### # environment variables -ENV CONTRAST_FINDER_RELEASE="0.8.4" +ENV CONTRAST_FINDER_RELEASE="0.8.5" # Add contrast-finder .war ADD contrast-finder-webapp_${CONTRAST_FINDER_RELEASE}.tar.gz /root diff --git a/docker/SNAPSHOT-local/distrib/ubuntu-18.04_tomcat-8.5/Dockerfile b/docker/SNAPSHOT-local/distrib/ubuntu-18.04_tomcat-8.5/Dockerfile index 45ff4ca0..69efa649 100644 --- a/docker/SNAPSHOT-local/distrib/ubuntu-18.04_tomcat-8.5/Dockerfile +++ b/docker/SNAPSHOT-local/distrib/ubuntu-18.04_tomcat-8.5/Dockerfile @@ -20,7 +20,7 @@ FROM asqatasun/contrast-finder:pre-requisites_Ubuntu-18.04_tomcat-8.5 ################################################################### # environment variables -ENV CONTRAST_FINDER_RELEASE="0.8.4" +ENV CONTRAST_FINDER_RELEASE="0.8.5" # Add contrast-finder .war ADD contrast-finder-webapp_${CONTRAST_FINDER_RELEASE}.tar.gz /root diff --git a/docker/SNAPSHOT-local/test_config-file/01.no.config.file/Dockerfile b/docker/SNAPSHOT-local/test_config-file/01.no.config.file/Dockerfile index 56026f58..81d1789f 100644 --- a/docker/SNAPSHOT-local/test_config-file/01.no.config.file/Dockerfile +++ b/docker/SNAPSHOT-local/test_config-file/01.no.config.file/Dockerfile @@ -1,4 +1,4 @@ -FROM asqatasun/contrast-finder:pre-requisites_Ubuntu-14.04_tomcat-7 +FROM asqatasun/contrast-finder:pre-requisites_Ubuntu-16.04_tomcat-7 # #### usage ###################################################### # @@ -15,11 +15,11 @@ FROM asqatasun/contrast-finder:pre-requisites_Ubuntu-14.04_tomcat-7 # # #### FROM ###################################################### # asqatasun/contrast-finder:pre-requisites_Ubuntu-14.04_tomcat-7 https://github.com/Asqatasun/Contrast-Finder/blob/master/docker/pre-requisites/pre-requisites_Ubuntu-14.04_tomcat-7/Dockerfile -# |-- ubuntu:14.04 https://github.com/tianon/docker-brew-ubuntu-core/blob/dist-amd64/trusty/Dockerfile +# |-- ubuntu:16.04 https://github.com/tianon/docker-brew-ubuntu-core/blob/dist-amd64/xenial/Dockerfile ################################################################### # environment variables -ENV CONTRAST_FINDER_RELEASE="0.8.4" +ENV CONTRAST_FINDER_RELEASE="0.8.5" # Add contrast-finder .war ADD contrast-finder-webapp_${CONTRAST_FINDER_RELEASE}.tar.gz /root diff --git a/docker/SNAPSHOT-local/test_config-file/10.default.algo/Dockerfile b/docker/SNAPSHOT-local/test_config-file/10.default.algo/Dockerfile index 78d1fe79..7bd6150e 100644 --- a/docker/SNAPSHOT-local/test_config-file/10.default.algo/Dockerfile +++ b/docker/SNAPSHOT-local/test_config-file/10.default.algo/Dockerfile @@ -1,4 +1,4 @@ -FROM asqatasun/contrast-finder:pre-requisites_Ubuntu-14.04_tomcat-7 +FROM asqatasun/contrast-finder:pre-requisites_Ubuntu-16.04_tomcat-7 # #### usage ###################################################### # @@ -15,11 +15,11 @@ FROM asqatasun/contrast-finder:pre-requisites_Ubuntu-14.04_tomcat-7 # # #### FROM ###################################################### # asqatasun/contrast-finder:pre-requisites_Ubuntu-14.04_tomcat-7 https://github.com/Asqatasun/Contrast-Finder/blob/master/docker/pre-requisites/pre-requisites_Ubuntu-14.04_tomcat-7/Dockerfile -# |-- ubuntu:14.04 https://github.com/tianon/docker-brew-ubuntu-core/blob/dist-amd64/trusty/Dockerfile +# |-- ubuntu:16.04 https://github.com/tianon/docker-brew-ubuntu-core/blob/dist-amd64/xenial/Dockerfile ################################################################### # environment variables -ENV CONTRAST_FINDER_RELEASE="0.8.4" +ENV CONTRAST_FINDER_RELEASE="0.8.5" ENV CONF_DEFAULT_ALGO="Rgb" # ENV CONF_DEFAULT_ALGO="Rgb" # ENV CONF_DEFAULT_ALGO="HSV" diff --git a/docker/SNAPSHOT-local/test_config-file/20.debug.env/Dockerfile b/docker/SNAPSHOT-local/test_config-file/20.debug.env/Dockerfile index b455538b..0727ff5a 100644 --- a/docker/SNAPSHOT-local/test_config-file/20.debug.env/Dockerfile +++ b/docker/SNAPSHOT-local/test_config-file/20.debug.env/Dockerfile @@ -1,4 +1,4 @@ -FROM asqatasun/contrast-finder:pre-requisites_Ubuntu-14.04_tomcat-7 +FROM asqatasun/contrast-finder:pre-requisites_Ubuntu-16.04_tomcat-7 # #### usage ###################################################### # @@ -15,11 +15,11 @@ FROM asqatasun/contrast-finder:pre-requisites_Ubuntu-14.04_tomcat-7 # # #### FROM ###################################################### # asqatasun/contrast-finder:pre-requisites_Ubuntu-14.04_tomcat-7 https://github.com/Asqatasun/Contrast-Finder/blob/master/docker/pre-requisites/pre-requisites_Ubuntu-14.04_tomcat-7/Dockerfile -# |-- ubuntu:14.04 https://github.com/tianon/docker-brew-ubuntu-core/blob/dist-amd64/trusty/Dockerfile +# |-- ubuntu:16.04 https://github.com/tianon/docker-brew-ubuntu-core/blob/dist-amd64/xenial/Dockerfile ################################################################### # environment variables -ENV CONTRAST_FINDER_RELEASE="0.8.4" +ENV CONTRAST_FINDER_RELEASE="0.8.5" ENV CONF_ENV="debug" # Add contrast-finder .war diff --git a/docker/SNAPSHOT-local/test_config-file/30.piwik/Dockerfile b/docker/SNAPSHOT-local/test_config-file/30.piwik/Dockerfile index 480b36ac..fd366ec0 100644 --- a/docker/SNAPSHOT-local/test_config-file/30.piwik/Dockerfile +++ b/docker/SNAPSHOT-local/test_config-file/30.piwik/Dockerfile @@ -1,4 +1,4 @@ -FROM asqatasun/contrast-finder:pre-requisites_Ubuntu-14.04_tomcat-7 +FROM asqatasun/contrast-finder:pre-requisites_Ubuntu-16.04_tomcat-7 # #### usage ###################################################### # @@ -15,11 +15,11 @@ FROM asqatasun/contrast-finder:pre-requisites_Ubuntu-14.04_tomcat-7 # # #### FROM ###################################################### # asqatasun/contrast-finder:pre-requisites_Ubuntu-14.04_tomcat-7 https://github.com/Asqatasun/Contrast-Finder/blob/master/docker/pre-requisites/pre-requisites_Ubuntu-14.04_tomcat-7/Dockerfile -# |-- ubuntu:14.04 https://github.com/tianon/docker-brew-ubuntu-core/blob/dist-amd64/trusty/Dockerfile +# |-- ubuntu:16.04 https://github.com/tianon/docker-brew-ubuntu-core/blob/dist-amd64/xenial/Dockerfile ################################################################### # environment variables -ENV CONTRAST_FINDER_RELEASE="0.8.4" +ENV CONTRAST_FINDER_RELEASE="0.8.5" ENV PIWIK_KEY="9" ENV PIWIK_URL="http://localhost/piwik/" diff --git a/docker/SNAPSHOT-local/test_config-file/40.searchEngineIndex/Dockerfile b/docker/SNAPSHOT-local/test_config-file/40.searchEngineIndex/Dockerfile new file mode 100644 index 00000000..1fdfb1b4 --- /dev/null +++ b/docker/SNAPSHOT-local/test_config-file/40.searchEngineIndex/Dockerfile @@ -0,0 +1,51 @@ +FROM asqatasun/contrast-finder:pre-requisites_Ubuntu-16.04_tomcat-7 + +# #### usage ###################################################### +# +# --- Building this docker image +# docker build -t asqatasun/contrast-finder:SNAPSHOT_local . +# +# --- Launch a container +# docker run -p 127.0.0.1:8087:8080 --name contrast.finder -d asqatasun/contrast-finder:SNAPSHOT_local +# +# --- Playing with this docker image +# docker exec -ti contrast.finder /bin/cat /softwares-version.txt +# docker exec -ti contrast.finder /bin/bash +# docker logs -f contrast.finder +# +# #### FROM ###################################################### +# asqatasun/contrast-finder:pre-requisites_Ubuntu-14.04_tomcat-7 https://github.com/Asqatasun/Contrast-Finder/blob/master/docker/pre-requisites/pre-requisites_Ubuntu-14.04_tomcat-7/Dockerfile +# |-- ubuntu:16.04 https://github.com/tianon/docker-brew-ubuntu-core/blob/dist-amd64/xenial/Dockerfile +################################################################### + +# environment variables +ENV CONTRAST_FINDER_RELEASE="0.8.5" +ENV SEARCH_ENGINGE="yes" + +# Add contrast-finder .war +ADD contrast-finder-webapp_${CONTRAST_FINDER_RELEASE}.tar.gz /root + +# Install contrast-finder +RUN cd /root/contrast-*/install/ && \ + mv -v contrast-*.war contrast-finder.war && \ + mv -v contrast-*.war /var/lib/tomcat7/webapps && \ + rm -rf /root/contrast-* && \ +echo "searchEngineInclude=${SEARCH_ENGINGE}" >> ${CONF_FILE} && \ + echo ${CONTRAST_FINDER_RELEASE} >> ${INFO_FILE} && \ + echo "\n--- ${CONF_FILE} ---" >> ${INFO_FILE} && \ + cat ${CONF_FILE} >> ${INFO_FILE} && \ + echo "\n--- Logs -----------" >> ${INFO_FILE} && \ + echo "${TOMCAT_LOG}" >> ${INFO_FILE} && \ + echo "${LOG_FILE}" >> ${INFO_FILE} && \ + echo "--------------------" >> ${INFO_FILE} && \ + cat ${INFO_FILE} > ${LOG_FILE} && echo "-- Install: Ok" + +# Health Check of the Docker Container +# ----> see asqatasun/contrast-finder:pre-requisites_Ubuntu-14.04_tomcat-7 + +CMD service tomcat7 start ; \ + tail -f -n 50 ${TOMCAT_LOG} \ + ${LOG_FILE} + + + diff --git a/docker/SNAPSHOT-local/test_tomcat-7-8/Archive_with_libspring-instrument-java/Ubuntu_14.04_tomcat7_full/Dockerfile b/docker/SNAPSHOT-local/test_tomcat-7-8/Archive_with_libspring-instrument-java/Ubuntu_14.04_tomcat7_full/Dockerfile index 9ebb136c..e1a6cb90 100644 --- a/docker/SNAPSHOT-local/test_tomcat-7-8/Archive_with_libspring-instrument-java/Ubuntu_14.04_tomcat7_full/Dockerfile +++ b/docker/SNAPSHOT-local/test_tomcat-7-8/Archive_with_libspring-instrument-java/Ubuntu_14.04_tomcat7_full/Dockerfile @@ -3,7 +3,7 @@ LABEL org.label-schema.schema-version = "1.0.0-rc.1" org.label-schema.name = "Contrast-Finder - WebApp pre-requisites (Ubuntu 14.04 - Tomcat 7)" \ org.label-schema.url = "https://contrast-finder.org" \ org.label-schema.vcs-url = "https://github.com/Asqatasun/Contrast-Finder" \ - org.label-schema.version = "0.8.4" + org.label-schema.version = "0.8.5" # ----> documentation http://label-schema.org/ # #### usage ###################################################### @@ -79,7 +79,7 @@ HEALTHCHECK --timeout=3s \ ###################################################################### # environment variables -ENV CONTRAST_FINDER_RELEASE="0.8.4" +ENV CONTRAST_FINDER_RELEASE="0.8.5" # Add contrast-finder .war ADD contrast-finder-webapp_${CONTRAST_FINDER_RELEASE}.tar.gz /root diff --git a/docker/SNAPSHOT-local/test_tomcat-7-8/Archive_with_libspring-instrument-java/Ubuntu_16.04_tomcat7_full/Dockerfile b/docker/SNAPSHOT-local/test_tomcat-7-8/Archive_with_libspring-instrument-java/Ubuntu_16.04_tomcat7_full/Dockerfile index 46509012..7b466f66 100644 --- a/docker/SNAPSHOT-local/test_tomcat-7-8/Archive_with_libspring-instrument-java/Ubuntu_16.04_tomcat7_full/Dockerfile +++ b/docker/SNAPSHOT-local/test_tomcat-7-8/Archive_with_libspring-instrument-java/Ubuntu_16.04_tomcat7_full/Dockerfile @@ -3,7 +3,7 @@ LABEL org.label-schema.schema-version = "1.0.0-rc.1" org.label-schema.name = "Contrast-Finder - WebApp pre-requisites (Ubuntu 16.04 - Tomcat 7)" \ org.label-schema.url = "https://contrast-finder.org" \ org.label-schema.vcs-url = "https://github.com/Asqatasun/Contrast-Finder" \ - org.label-schema.version = "0.8.4" + org.label-schema.version = "0.8.5" # ----> documentation http://label-schema.org/ # #### usage ###################################################### @@ -79,7 +79,7 @@ HEALTHCHECK --timeout=3s \ ###################################################################### # environment variables -ENV CONTRAST_FINDER_RELEASE="0.8.4" +ENV CONTRAST_FINDER_RELEASE="0.8.5" # Add contrast-finder .war ADD contrast-finder-webapp_${CONTRAST_FINDER_RELEASE}.tar.gz /root diff --git a/docker/SNAPSHOT-local/test_tomcat-7-8/Archive_with_libspring-instrument-java/Ubuntu_16.04_tomcat8_full/Dockerfile b/docker/SNAPSHOT-local/test_tomcat-7-8/Archive_with_libspring-instrument-java/Ubuntu_16.04_tomcat8_full/Dockerfile index 3b48ce6b..113c8d92 100644 --- a/docker/SNAPSHOT-local/test_tomcat-7-8/Archive_with_libspring-instrument-java/Ubuntu_16.04_tomcat8_full/Dockerfile +++ b/docker/SNAPSHOT-local/test_tomcat-7-8/Archive_with_libspring-instrument-java/Ubuntu_16.04_tomcat8_full/Dockerfile @@ -3,7 +3,7 @@ LABEL org.label-schema.schema-version = "1.0.0-rc.1" org.label-schema.name = "Contrast-Finder - WebApp pre-requisites (Ubuntu 16.04 - Tomcat 8)" \ org.label-schema.url = "https://contrast-finder.org" \ org.label-schema.vcs-url = "https://github.com/Asqatasun/Contrast-Finder" \ - org.label-schema.version = "0.8.4" + org.label-schema.version = "0.8.5" # ----> documentation http://label-schema.org/ # #### usage ###################################################### @@ -79,7 +79,7 @@ HEALTHCHECK --timeout=3s \ ###################################################################### # environment variables -ENV CONTRAST_FINDER_RELEASE="0.8.4" +ENV CONTRAST_FINDER_RELEASE="0.8.5" # Add contrast-finder .war ADD contrast-finder-webapp_${CONTRAST_FINDER_RELEASE}.tar.gz /root diff --git a/docker/SNAPSHOT-local/test_tomcat-7-8/Archive_with_libspring-instrument-java/Ubuntu_18.04_tomcat8_full/Dockerfile b/docker/SNAPSHOT-local/test_tomcat-7-8/Archive_with_libspring-instrument-java/Ubuntu_18.04_tomcat8_full/Dockerfile index f7256b5e..0082a8ae 100644 --- a/docker/SNAPSHOT-local/test_tomcat-7-8/Archive_with_libspring-instrument-java/Ubuntu_18.04_tomcat8_full/Dockerfile +++ b/docker/SNAPSHOT-local/test_tomcat-7-8/Archive_with_libspring-instrument-java/Ubuntu_18.04_tomcat8_full/Dockerfile @@ -3,7 +3,7 @@ LABEL org.label-schema.schema-version = "1.0.0-rc.1" org.label-schema.name = "Contrast-Finder - WebApp pre-requisites (Ubuntu 18.04 - Tomcat 8)" \ org.label-schema.url = "https://contrast-finder.org" \ org.label-schema.vcs-url = "https://github.com/Asqatasun/Contrast-Finder" \ - org.label-schema.version = "0.8.4" + org.label-schema.version = "0.8.5" # ----> documentation http://label-schema.org/ # #### usage ###################################################### @@ -79,7 +79,7 @@ HEALTHCHECK --timeout=3s \ ###################################################################### # environment variables -ENV CONTRAST_FINDER_RELEASE="0.8.4" +ENV CONTRAST_FINDER_RELEASE="0.8.5" # Add contrast-finder .war ADD contrast-finder-webapp_${CONTRAST_FINDER_RELEASE}.tar.gz /root diff --git a/docker/SNAPSHOT-local/test_tomcat-7-8/README_v1.txt b/docker/SNAPSHOT-local/test_tomcat-7-8/README_v1.txt new file mode 100644 index 00000000..80e5d4d3 --- /dev/null +++ b/docker/SNAPSHOT-local/test_tomcat-7-8/README_v1.txt @@ -0,0 +1,48 @@ +---- avant suppression libspring-instrument-java --------------------------------- + + v0.8.3 150 MB + v0.8.2 146 MB +pre-requisites_Alpine_tomcat-7 80 MB ---> 76 MB +pre-requisites_Ubuntu-16.04 115 MB ---> 107 MB +pre-requisites_Ubuntu-14.04 141 MB ---> 138 MB +pre-requisites_from-Ubuntu 141 MB ---> 138 MB +------------------------------------- + + + + + + + test: + - Build-Jdk: 1.8 @@@ IN PROGRESSS + - Build-Jdk: 1.7 @@@ TODO + check log @@@ TODO + + +Build-Jdk: 1.8.0_151 +---------------------------------------------- + +Docker ubuntu:14.04 Tomcat 7 + ----> libspring-instrument-java not needed + +Docker ubuntu:16.04 Tomcat 7 + ----> libspring-instrument-java not needed + +Docker ubuntu:18.04 Tomcat 8.5 (next Ubuntu LTS) + ----> libspring-instrument-java not needed + + +Build-Jdk: 1.7.0_151 +---------------------------------------------- + +Docker ubuntu:14.04 Tomcat 7 + ----> libspring-instrument-java not needed + +Docker ubuntu:16.04 Tomcat 7 + ----> libspring-instrument-java not needed + +Docker ubuntu:16.04 Tomcat 8.0 + -v2---> libspring-instrument-java declared in context.xml + +Docker ubuntu:18.04 Tomcat 8.5 (next Ubuntu LTS) + ----> libspring-instrument-java not needed diff --git a/docker/SNAPSHOT-local/test_tomcat-7-8/Ubuntu_14.04_tomcat7_full/Dockerfile b/docker/SNAPSHOT-local/test_tomcat-7-8/Ubuntu_14.04_tomcat7_full/Dockerfile index 5e993da5..46c00980 100644 --- a/docker/SNAPSHOT-local/test_tomcat-7-8/Ubuntu_14.04_tomcat7_full/Dockerfile +++ b/docker/SNAPSHOT-local/test_tomcat-7-8/Ubuntu_14.04_tomcat7_full/Dockerfile @@ -3,7 +3,7 @@ LABEL org.label-schema.schema-version = "1.0.0-rc.1" org.label-schema.name = "Contrast-Finder - WebApp pre-requisites (Ubuntu 14.04 - Tomcat 7)" \ org.label-schema.url = "https://contrast-finder.org" \ org.label-schema.vcs-url = "https://github.com/Asqatasun/Contrast-Finder" \ - org.label-schema.version = "0.8.4" + org.label-schema.version = "0.8.5" # ----> documentation http://label-schema.org/ # #### usage ###################################################### @@ -76,7 +76,7 @@ HEALTHCHECK --timeout=3s \ ###################################################################### # environment variables -ENV CONTRAST_FINDER_RELEASE="0.8.4" +ENV CONTRAST_FINDER_RELEASE="0.8.5" # Add contrast-finder .war ADD contrast-finder-webapp_${CONTRAST_FINDER_RELEASE}.tar.gz /root diff --git a/docker/SNAPSHOT-local/test_tomcat-7-8/Ubuntu_16.04_tomcat7_full/Dockerfile b/docker/SNAPSHOT-local/test_tomcat-7-8/Ubuntu_16.04_tomcat7_full/Dockerfile index 24d75615..736e0284 100644 --- a/docker/SNAPSHOT-local/test_tomcat-7-8/Ubuntu_16.04_tomcat7_full/Dockerfile +++ b/docker/SNAPSHOT-local/test_tomcat-7-8/Ubuntu_16.04_tomcat7_full/Dockerfile @@ -3,7 +3,7 @@ LABEL org.label-schema.schema-version = "1.0.0-rc.1" org.label-schema.name = "Contrast-Finder - WebApp pre-requisites (Ubuntu 16.04 - Tomcat 7)" \ org.label-schema.url = "https://contrast-finder.org" \ org.label-schema.vcs-url = "https://github.com/Asqatasun/Contrast-Finder" \ - org.label-schema.version = "0.8.4" + org.label-schema.version = "0.8.5" # ----> documentation http://label-schema.org/ # #### usage ###################################################### @@ -76,7 +76,7 @@ HEALTHCHECK --timeout=3s \ ###################################################################### # environment variables -ENV CONTRAST_FINDER_RELEASE="0.8.4" +ENV CONTRAST_FINDER_RELEASE="0.8.5" # Add contrast-finder .war ADD contrast-finder-webapp_${CONTRAST_FINDER_RELEASE}.tar.gz /root diff --git a/docker/SNAPSHOT-local/test_tomcat-7-8/Ubuntu_16.04_tomcat8_full/Dockerfile b/docker/SNAPSHOT-local/test_tomcat-7-8/Ubuntu_16.04_tomcat8_full/Dockerfile index d14b2c0e..df2f7f85 100644 --- a/docker/SNAPSHOT-local/test_tomcat-7-8/Ubuntu_16.04_tomcat8_full/Dockerfile +++ b/docker/SNAPSHOT-local/test_tomcat-7-8/Ubuntu_16.04_tomcat8_full/Dockerfile @@ -3,7 +3,7 @@ LABEL org.label-schema.schema-version = "1.0.0-rc.1" org.label-schema.name = "Contrast-Finder - WebApp pre-requisites (Ubuntu 16.04 - Tomcat 8)" \ org.label-schema.url = "https://contrast-finder.org" \ org.label-schema.vcs-url = "https://github.com/Asqatasun/Contrast-Finder" \ - org.label-schema.version = "0.8.4" + org.label-schema.version = "0.8.5" # ----> documentation http://label-schema.org/ # #### usage ###################################################### @@ -76,7 +76,7 @@ HEALTHCHECK --timeout=3s \ ###################################################################### # environment variables -ENV CONTRAST_FINDER_RELEASE="0.8.4" +ENV CONTRAST_FINDER_RELEASE="0.8.5" # Add contrast-finder .war ADD contrast-finder-webapp_${CONTRAST_FINDER_RELEASE}.tar.gz /root diff --git a/docker/SNAPSHOT-local/test_tomcat-7-8/Ubuntu_18.04_tomcat8_full/Dockerfile b/docker/SNAPSHOT-local/test_tomcat-7-8/Ubuntu_18.04_tomcat8_full/Dockerfile index 69227801..45da6253 100644 --- a/docker/SNAPSHOT-local/test_tomcat-7-8/Ubuntu_18.04_tomcat8_full/Dockerfile +++ b/docker/SNAPSHOT-local/test_tomcat-7-8/Ubuntu_18.04_tomcat8_full/Dockerfile @@ -3,7 +3,7 @@ LABEL org.label-schema.schema-version = "1.0.0-rc.1" org.label-schema.name = "Contrast-Finder - WebApp pre-requisites (Ubuntu 18.04 - Tomcat 8)" \ org.label-schema.url = "https://contrast-finder.org" \ org.label-schema.vcs-url = "https://github.com/Asqatasun/Contrast-Finder" \ - org.label-schema.version = "0.8.4" + org.label-schema.version = "0.8.5" # ----> documentation http://label-schema.org/ # #### usage ###################################################### @@ -76,7 +76,7 @@ HEALTHCHECK --timeout=3s \ ###################################################################### # environment variables -ENV CONTRAST_FINDER_RELEASE="0.8.4" +ENV CONTRAST_FINDER_RELEASE="0.8.5" # Add contrast-finder .war ADD contrast-finder-webapp_${CONTRAST_FINDER_RELEASE}.tar.gz /root diff --git a/docker/pre-requisites/pre-requisites_Alpine_tomcat-7/Dockerfile b/docker/pre-requisites/pre-requisites_Alpine_tomcat-7/Dockerfile index b2c65fe7..8632694a 100644 --- a/docker/pre-requisites/pre-requisites_Alpine_tomcat-7/Dockerfile +++ b/docker/pre-requisites/pre-requisites_Alpine_tomcat-7/Dockerfile @@ -3,7 +3,7 @@ LABEL org.label-schema.schema-version = "1.0.0-rc.1" org.label-schema.name = "Contrast-Finder - WebApp pre-requisites (tomcat7 < jdk7 < alpine 3.7)" \ org.label-schema.url = "https://contrast-finder.org" \ org.label-schema.vcs-url = "https://github.com/Asqatasun/Contrast-Finder" \ - org.label-schema.version = "0.8.4" + org.label-schema.version = "0.8.5" # ----> documentation http://label-schema.org/ # #### usage ###################################################### diff --git a/docker/pre-requisites/pre-requisites_Alpine_tomcat-8.5/Dockerfile b/docker/pre-requisites/pre-requisites_Alpine_tomcat-8.5/Dockerfile index 75dcee8f..7ee56462 100644 --- a/docker/pre-requisites/pre-requisites_Alpine_tomcat-8.5/Dockerfile +++ b/docker/pre-requisites/pre-requisites_Alpine_tomcat-8.5/Dockerfile @@ -3,7 +3,7 @@ LABEL org.label-schema.schema-version = "1.0.0-rc.1" org.label-schema.name = "Contrast-Finder - WebApp pre-requisites (tomcat 8.5 < jdk 8 < alpine 3.7)" \ org.label-schema.url = "https://contrast-finder.org" \ org.label-schema.vcs-url = "https://github.com/Asqatasun/Contrast-Finder" \ - org.label-schema.version = "0.8.4" + org.label-schema.version = "0.8.5" # ----> documentation http://label-schema.org/ # #### usage ###################################################### diff --git a/docker/pre-requisites/pre-requisites_Alpine_tomcat-9/Dockerfile b/docker/pre-requisites/pre-requisites_Alpine_tomcat-9/Dockerfile new file mode 100644 index 00000000..3b9a501d --- /dev/null +++ b/docker/pre-requisites/pre-requisites_Alpine_tomcat-9/Dockerfile @@ -0,0 +1,77 @@ +FROM tomcat:9-jre8-alpine + +LABEL org.label-schema.schema-version = "1.0.0-rc.1" \ + org.label-schema.name = "Contrast-Finder - WebApp pre-requisites (tomcat 9 < jdk 8 < alpine 3.7)" \ + org.label-schema.url = "https://contrast-finder.org" \ + org.label-schema.vcs-url = "https://github.com/Asqatasun/Contrast-Finder" \ + org.label-schema.version = "0.8.5" + # ----> documentation http://label-schema.org/ + +# #### usage ###################################################### +# +# --- Building this docker image +# docker build -t contrast-finder:pre-requisites_Alpine_tomcat-9 . +# +# #### FROM ###################################################### +# tomcat:9-jre8-alpine https://github.com/docker-library/tomcat/blob/master/9.0/jre8-alpine/Dockerfile +# |-- openjdk:8-jre-alpine https://github.com/docker-library/openjdk/blob/master/8-jre/alpine/Dockerfile +# |-- alpine:3.7 https://github.com/gliderlabs/docker-alpine/blob/master/versions/library-3.7/x86_64/Dockerfile +################################################################### + +###### PRE-REQUISITES ########################################################## + +# build variables +ARG LOG_DIR="/var/log/contrast-finder/" +ARG CONF_DIR="/etc/contrast-finder/" + +# environment variables +ENV TOMCAT_DIR="/usr/local/tomcat/" \ + LOG_FILE="${LOG_DIR}contrast-finder.log" \ + CONF_FILE="${CONF_DIR}contrast-finder.conf" \ + INFO_FILE="/softwares-version.txt" \ + WWWPORT="8080" +EXPOSE $WWWPORT + +# build +RUN apk add --no-cache curl && \ + mkdir -p ${LOG_DIR} && \ + mkdir -p ${CONF_DIR} && \ + touch ${LOG_FILE} && \ + touch ${CONF_FILE} && \ + echo "--- OS -------------" >> ${INFO_FILE} && \ + cat /etc/os-release >> ${INFO_FILE} && \ + echo "" >> ${INFO_FILE} && \ + echo "--- Java -----------" >> ${INFO_FILE} && \ + echo ${JAVA_HOME} >> ${INFO_FILE} && \ + java -version 2>> ${INFO_FILE} && \ + echo "" >> ${INFO_FILE} && \ + echo "--- Tomcat ---------" >> ${INFO_FILE} && \ + ${TOMCAT_DIR}bin/version.sh >> ${INFO_FILE} && \ + echo "" >> ${INFO_FILE} && \ + echo "--- Contrast-Finder ---" >> ${INFO_FILE} + + + ####################################################################################### + # The command line "java -version" returns the output data + # at the STDERR stream (2 : error messages) rather than STDOUT (1). + # -----> java -version 2> tmp.txt + # + # https://stackoverflow.com/questions/21453774/redirect-java-version-to-file-or-variable + # https://stackoverflow.com/questions/39619087/how-to-write-output-of-java-version-to-a-text-file + ####################################################################################### + + +# Health Check of the Docker Container +HEALTHCHECK --timeout=3s \ + CMD curl --fail http://localhost:8080/contrast-finder/ || exit 1 + ###################################################################### + # doc: https://docs.docker.com/engine/reference/builder/#healthcheck + # options: --interval=DURATION (default: 30s) + # --timeout=DURATION (default: 30s) + # --retries=N (default: 3) + # can be overridden at the command line 'docker run --health-cmd (...)' + ###################################################################### + + +# in "tomcat:9-jre8-alpine" DockerFile +# CMD ["catalina.sh", "run"] diff --git a/docker/pre-requisites/pre-requisites_Alpine_tomcat-9/README.md b/docker/pre-requisites/pre-requisites_Alpine_tomcat-9/README.md new file mode 120000 index 00000000..8e1029b1 --- /dev/null +++ b/docker/pre-requisites/pre-requisites_Alpine_tomcat-9/README.md @@ -0,0 +1 @@ +../../RELEASE/README.md \ No newline at end of file diff --git a/docker/pre-requisites/pre-requisites_Debian-9_tomcat-8.5/Dockerfile b/docker/pre-requisites/pre-requisites_Debian-9_tomcat-8.5/Dockerfile index 6361606a..05999b93 100644 --- a/docker/pre-requisites/pre-requisites_Debian-9_tomcat-8.5/Dockerfile +++ b/docker/pre-requisites/pre-requisites_Debian-9_tomcat-8.5/Dockerfile @@ -3,7 +3,7 @@ LABEL org.label-schema.schema-version = "1.0.0-rc.1" org.label-schema.name = "Contrast-Finder - WebApp pre-requisites (Debian 9 - Tomcat 8.5)" \ org.label-schema.url = "https://contrast-finder.org" \ org.label-schema.vcs-url = "https://github.com/Asqatasun/Contrast-Finder" \ - org.label-schema.version = "0.8.4" + org.label-schema.version = "0.8.5" # ----> documentation http://label-schema.org/ # #### usage ###################################################### diff --git a/docker/pre-requisites/pre-requisites_Debian_tomcat-9_jre9/Dockerfile b/docker/pre-requisites/pre-requisites_Debian_tomcat-9_jre9/Dockerfile new file mode 100644 index 00000000..8b2f515f --- /dev/null +++ b/docker/pre-requisites/pre-requisites_Debian_tomcat-9_jre9/Dockerfile @@ -0,0 +1,77 @@ +FROM tomcat:9-jre9 +LABEL org.label-schema.schema-version = "1.0.0-rc.1" \ + org.label-schema.name = "Contrast-Finder - WebApp pre-requisites (tomcat 9 < jdk 9 < debian SID)" \ + org.label-schema.url = "https://contrast-finder.org" \ + org.label-schema.vcs-url = "https://github.com/Asqatasun/Contrast-Finder" \ + org.label-schema.version = "0.8.5" + # ----> documentation http://label-schema.org/ + +# #### usage ###################################################### +# +# --- Building this docker image +# docker build -t contrast-finder:pre-requisites_Debian_tomcat-9_jre9 . +# +# #### FROM ###################################################### +# tomcat:9-jre9 https://github.com/docker-library/tomcat/blob/master/9.0/jre9/Dockerfile +# |-- openjdk:9-jre https://github.com/docker-library/openjdk/blob/master/9-jre/Dockerfile +# |-- buildpack-deps:sid-curl https://github.com/docker-library/buildpack-deps/blob/master/sid/curl/Dockerfile +# |-- debian:sid https://github.com/debuerreotype/docker-debian-artifacts/blob/dist-amd64/sid/Dockerfile +################################################################### + +###### PRE-REQUISITES ########################################################## + +# build variables +ARG LOG_DIR="/var/log/contrast-finder/" +ARG CONF_DIR="/etc/contrast-finder/" + +# environment variables +ENV TOMCAT_DIR="/usr/local/tomcat/" \ + LOG_FILE="${LOG_DIR}contrast-finder.log" \ + CONF_FILE="${CONF_DIR}contrast-finder.conf" \ + INFO_FILE="/softwares-version.txt" \ + WWWPORT="8080" +EXPOSE $WWWPORT + +# build +RUN mkdir -p ${LOG_DIR} && \ + mkdir -p ${CONF_DIR} && \ + touch ${LOG_FILE} && \ + touch ${CONF_FILE} && \ + echo "--- OS -------------" >> ${INFO_FILE} && \ + cat /etc/os-release >> ${INFO_FILE} && \ + echo "" >> ${INFO_FILE} && \ + echo "--- Java -----------" >> ${INFO_FILE} && \ + echo ${JAVA_HOME} >> ${INFO_FILE} && \ + java -version 2>> ${INFO_FILE} && \ + echo "" >> ${INFO_FILE} && \ + echo "--- Tomcat ---------" >> ${INFO_FILE} && \ + ${TOMCAT_DIR}bin/version.sh >> ${INFO_FILE} && \ + echo "" >> ${INFO_FILE} && \ + echo "--- Contrast-Finder ---" >> ${INFO_FILE} + + + ####################################################################################### + # The command line "java -version" returns the output data + # at the STDERR stream (2 : error messages) rather than STDOUT (1). + # -----> java -version 2> tmp.txt + # + # https://stackoverflow.com/questions/21453774/redirect-java-version-to-file-or-variable + # https://stackoverflow.com/questions/39619087/how-to-write-output-of-java-version-to-a-text-file + ####################################################################################### + + +# Health Check of the Docker Container +HEALTHCHECK --timeout=3s \ + CMD curl --fail http://localhost:8080/contrast-finder/ || exit 1 + ###################################################################### + # doc: https://docs.docker.com/engine/reference/builder/#healthcheck + # options: --interval=DURATION (default: 30s) + # --timeout=DURATION (default: 30s) + # --retries=N (default: 3) + # can be overridden at the command line 'docker run --health-cmd (...)' + ###################################################################### + + +# in "tomcat:9-jre9" DockerFile +# CMD ["catalina.sh", "run"] + diff --git a/docker/pre-requisites/pre-requisites_Debian_tomcat-9_jre9/README.md b/docker/pre-requisites/pre-requisites_Debian_tomcat-9_jre9/README.md new file mode 120000 index 00000000..8e1029b1 --- /dev/null +++ b/docker/pre-requisites/pre-requisites_Debian_tomcat-9_jre9/README.md @@ -0,0 +1 @@ +../../RELEASE/README.md \ No newline at end of file diff --git a/docker/pre-requisites/pre-requisites_Ubuntu-14.04_tomcat-7/Dockerfile b/docker/pre-requisites/pre-requisites_Ubuntu-14.04_tomcat-7/Dockerfile index 8c1fd772..bae0f999 100644 --- a/docker/pre-requisites/pre-requisites_Ubuntu-14.04_tomcat-7/Dockerfile +++ b/docker/pre-requisites/pre-requisites_Ubuntu-14.04_tomcat-7/Dockerfile @@ -3,7 +3,7 @@ LABEL org.label-schema.schema-version = "1.0.0-rc.1" org.label-schema.name = "Contrast-Finder - WebApp pre-requisites (Ubuntu 14.04 - Tomcat 7)" \ org.label-schema.url = "https://contrast-finder.org" \ org.label-schema.vcs-url = "https://github.com/Asqatasun/Contrast-Finder" \ - org.label-schema.version = "0.8.4" + org.label-schema.version = "0.8.5" # ----> documentation http://label-schema.org/ # #### usage ###################################################### diff --git a/docker/pre-requisites/pre-requisites_Ubuntu-16.04_tomcat-7/Dockerfile b/docker/pre-requisites/pre-requisites_Ubuntu-16.04_tomcat-7/Dockerfile index aac705e4..fe50b093 100644 --- a/docker/pre-requisites/pre-requisites_Ubuntu-16.04_tomcat-7/Dockerfile +++ b/docker/pre-requisites/pre-requisites_Ubuntu-16.04_tomcat-7/Dockerfile @@ -3,7 +3,7 @@ LABEL org.label-schema.schema-version = "1.0.0-rc.1" org.label-schema.name = "Contrast-Finder - WebApp pre-requisites (Ubuntu 16.04 - Tomcat 7)" \ org.label-schema.url = "https://contrast-finder.org" \ org.label-schema.vcs-url = "https://github.com/Asqatasun/Contrast-Finder" \ - org.label-schema.version = "0.8.4" + org.label-schema.version = "0.8.5" # ----> documentation http://label-schema.org/ # #### usage ###################################################### diff --git a/docker/pre-requisites/pre-requisites_Ubuntu-16.04_tomcat-8.0/Dockerfile b/docker/pre-requisites/pre-requisites_Ubuntu-16.04_tomcat-8.0/Dockerfile index aa129b11..52946b91 100644 --- a/docker/pre-requisites/pre-requisites_Ubuntu-16.04_tomcat-8.0/Dockerfile +++ b/docker/pre-requisites/pre-requisites_Ubuntu-16.04_tomcat-8.0/Dockerfile @@ -3,7 +3,7 @@ LABEL org.label-schema.schema-version = "1.0.0-rc.1" org.label-schema.name = "Contrast-Finder - WebApp pre-requisites (Ubuntu 16.04 - Tomcat 8.0)" \ org.label-schema.url = "https://contrast-finder.org" \ org.label-schema.vcs-url = "https://github.com/Asqatasun/Contrast-Finder" \ - org.label-schema.version = "0.8.4" + org.label-schema.version = "0.8.5" # ----> documentation http://label-schema.org/ # #### usage ###################################################### diff --git a/docker/pre-requisites/pre-requisites_Ubuntu-18.04_tomcat-8.5/Dockerfile b/docker/pre-requisites/pre-requisites_Ubuntu-18.04_tomcat-8.5/Dockerfile index 99d2056c..7a858b45 100644 --- a/docker/pre-requisites/pre-requisites_Ubuntu-18.04_tomcat-8.5/Dockerfile +++ b/docker/pre-requisites/pre-requisites_Ubuntu-18.04_tomcat-8.5/Dockerfile @@ -3,7 +3,7 @@ LABEL org.label-schema.schema-version = "1.0.0-rc.1" org.label-schema.name = "Contrast-Finder - WebApp pre-requisites (Ubuntu 18.04 - Tomcat 8.5)" \ org.label-schema.url = "https://contrast-finder.org" \ org.label-schema.vcs-url = "https://github.com/Asqatasun/Contrast-Finder" \ - org.label-schema.version = "0.8.4" + org.label-schema.version = "0.8.5" # ----> documentation http://label-schema.org/ # #### usage ###################################################### diff --git a/documentation/en/10_Install_doc/webapp_Installation.md b/documentation/en/10_Install_doc/webapp_Installation.md index 7cd0ff50..e8ea9140 100644 --- a/documentation/en/10_Install_doc/webapp_Installation.md +++ b/documentation/en/10_Install_doc/webapp_Installation.md @@ -3,15 +3,18 @@ You should have already [check pre-requisites](webapp_Pre-requisites.md) -## How to install +## How to install (Linux) -### Linux Ubuntu 14.04 and 16.04 +### Tomcat 8 - Debian 9, Ubuntu 16.04 or Ubuntu 18.04 (next LTS) -Once you've built, let say you have Tomcat 7 (change the number if you have Tomcat 8 or more): +You just need to replace `tomcat7` with `tomcat8` in the following command lines. + + +### Tomcat 7 - Ubuntu 14.04 or Ubuntu 16.04 ```bash cd /tmp -wget https://github.com/Asqatasun/Contrast-Finder/releases/download/v0.8.4/contrast-finder-webapp_0.8.4.tar.gz +wget https://github.com/Asqatasun/Contrast-Finder/releases/download/v0.8.5/contrast-finder-webapp_0.8.5.tar.gz tar -xzvf contrast-finder-webapp_*.tar.gz cd contrast-finder-webapp_*/ mv -v install/contrast-finder-webapp_*.war contrast-finder.war @@ -39,4 +42,7 @@ sudo vim contrast-finder.conf (...) sudo chown -Rv tomcat7 /etc/contrast-finder/ sudo service tomcat7 restart -``` \ No newline at end of file +``` + + + diff --git a/documentation/en/10_Install_doc/webapp_Pre-requisites.md b/documentation/en/10_Install_doc/webapp_Pre-requisites.md index 4e2dc06d..59f2d516 100644 --- a/documentation/en/10_Install_doc/webapp_Pre-requisites.md +++ b/documentation/en/10_Install_doc/webapp_Pre-requisites.md @@ -2,17 +2,20 @@ ## Prerequesites -* Tomcat 7 or Tomcat 8 +* Tomcat 7 (Jdk-7 or Jdk-8), Tomcat 8 or Tomcat 9 +### Linux -### Linux Ubuntu 14.04 and 16.04 +#### Tomcat 8 - Debian 9, Ubuntu 16.04 or Ubuntu 18.04 (next LTS) ```bash -apt-get --no-install-recommends install tomcat7 +apt-get --no-install-recommends install tomcat8 ``` -### Linux Ubuntu 16.04 +#### Tomcat 7 - Ubuntu 14.04 or Ubuntu 16.04 ```bash -apt-get --no-install-recommends install tomcat8 +apt-get --no-install-recommends install tomcat7 ``` + + diff --git a/documentation/en/30_Contributor_doc/QA-tools.md b/documentation/en/30_Contributor_doc/QA-tools.md index 6635aeae..02fe0d5d 100644 --- a/documentation/en/30_Contributor_doc/QA-tools.md +++ b/documentation/en/30_Contributor_doc/QA-tools.md @@ -72,9 +72,20 @@ ## Audit history +### 0.8.4 +@@@TODO + +### 0.8.4 + +* Web perf + * https://www.webpagetest.org/result/180221_5Z_b3ed09cc5a0322e748049d5f8dfd385f/ + * http://yellowlab.tools/result/eyj3i5jzto +* Global tools (webperf, accessibility, security, ...) + * https://www.dareboost.com/en/report/5a8df7710cf2a402e2e22fcd + * https://sonarwhal.com/scanner/6f10d0e0-e941-4470-a900-c94980409a50 + ### 0.8.3 -* Security - * https://www.hardenize.com/report/app.contrast-finder.org/1516756341 + * Web perf * https://www.webpagetest.org/result/180124_KC_d6495475e9d7beed0e79583dd9e207b2/ * http://yellowlab.tools/result/exn8ef7di1 diff --git a/documentation/en/30_Contributor_doc/bookmarks-for-potential-features.md b/documentation/en/30_Contributor_doc/bookmarks-for-potential-features.md index 2efc9be3..d6f2741b 100644 --- a/documentation/en/30_Contributor_doc/bookmarks-for-potential-features.md +++ b/documentation/en/30_Contributor_doc/bookmarks-for-potential-features.md @@ -1,37 +1,6 @@ # Bookmarks for potential features - -## Tomcat 8 - -For Tomcat 7, Contrast-Finder need "Spring Instrument Tomcat": -``` -apt-get --no-install-recommends install libspring-instrument-java -ln -s /usr/share/java/spring3-instrument-tomcat.jar \ - /usr/share/tomcat7/lib/spring3-instrument-tomcat.jar -``` - -but it's **not** working for Tomcat 8 - -- https://forum.asqatasun.org/t/lib-spring-instrument-java-tomcat8/258/2 -- https://docs.spring.io/spring/docs/4.3.13.RELEASE/spring-framework-reference/htmlsingle/#aop-aj-ltw-environment-tomcat - -``` -Historically, Tomcat's default class loader did not support class transformation -which is why Spring provides an enhanced implementation that addresses this need. -Named TomcatInstrumentableClassLoader, the loader works on Tomcat 6.0 and above. - -Do not define TomcatInstrumentableClassLoader anymore on Tomcat 8.0 and higher. -Instead, let Spring automatically use Tomcat’s new native InstrumentableClassLoader -facility through the TomcatLoadTimeWeaver strategy. -``` - -For Tomcat 8, don't install libspring-instrument-java -and remove the following line from the [webapp/src/main/webapp/META-INF/context.xml](https://github.com/Asqatasun/Contrast-Finder/blob/develop/webapp/src/main/webapp/META-INF/context.xml#L3) file -and it's works: -> - - -## Ansible +## Ansible - https://github.com/ansible/ansible-examples/tree/master/tomcat-standalone - https://github.com/elacheche/ansible-war-deploy diff --git a/documentation/pom.xml b/documentation/pom.xml index 072082fc..7f6b593e 100644 --- a/documentation/pom.xml +++ b/documentation/pom.xml @@ -4,11 +4,11 @@ org.asqatasun contrast-finder - 0.8.4 + 0.8.5 documentation pom - 0.8.4 + 0.8.5 contrast-finder-documentation diff --git a/engine/api/pom.xml b/engine/api/pom.xml index 797a1982..bc1e7cef 100644 --- a/engine/api/pom.xml +++ b/engine/api/pom.xml @@ -4,10 +4,10 @@ org.asqatasun engine - 0.8.4 + 0.8.5 contrast-finder-api - 0.8.4 + 0.8.5 jar api diff --git a/engine/hsv/pom.xml b/engine/hsv/pom.xml index fb02ba6e..efc5c433 100644 --- a/engine/hsv/pom.xml +++ b/engine/hsv/pom.xml @@ -4,10 +4,10 @@ org.asqatasun engine - 0.8.4 + 0.8.5 contrast-finder-hsv - 0.8.4 + 0.8.5 jar hsv diff --git a/engine/impl/pom.xml b/engine/impl/pom.xml index 7f702cb0..b9e49200 100644 --- a/engine/impl/pom.xml +++ b/engine/impl/pom.xml @@ -4,10 +4,10 @@ org.asqatasun engine - 0.8.4 + 0.8.5 contrast-finder-impl - 0.8.4 + 0.8.5 jar impl diff --git a/engine/pom.xml b/engine/pom.xml index 0a8c7447..123462ac 100644 --- a/engine/pom.xml +++ b/engine/pom.xml @@ -4,10 +4,10 @@ org.asqatasun contrast-finder - 0.8.4 + 0.8.5 engine - 0.8.4 + 0.8.5 pom contrast-finder-engine diff --git a/engine/utils/pom.xml b/engine/utils/pom.xml index 2d7bbc23..11e13942 100644 --- a/engine/utils/pom.xml +++ b/engine/utils/pom.xml @@ -4,10 +4,10 @@ org.asqatasun engine - 0.8.4 + 0.8.5 contrast-finder-utils - 0.8.4 + 0.8.5 jar utils diff --git a/pom.xml b/pom.xml index 18469dba..2636a13e 100644 --- a/pom.xml +++ b/pom.xml @@ -20,7 +20,7 @@ org.asqatasun contrast-finder pom - 0.8.4 + 0.8.5 Contrast-Finder @@ -75,7 +75,7 @@ 3.7 4.12 1.2.3 - 2.0.1 + 2.1.0 3.7.0 @@ -84,7 +84,7 @@ 3.0.0 2.5 3.0.0 - 3.0.2 + 3.1.1 0.8.0 @@ -98,6 +98,11 @@ org.apache.maven.plugins maven-compiler-plugin ${maven-compiler-plugin.version} + + 1.7 + 1.7 + UTF-8 + org.apache.maven.plugins diff --git a/webapp/pom.xml b/webapp/pom.xml index 9c088f7e..67e70bc4 100644 --- a/webapp/pom.xml +++ b/webapp/pom.xml @@ -4,10 +4,10 @@ org.asqatasun contrast-finder - 0.8.4 + 0.8.5 webapp - 0.8.4 + 0.8.5 war contrast-finder-webapp @@ -29,22 +29,20 @@ 4.3.14.RELEASE - 4.2.3.RELEASE + 4.2.4.RELEASE 1.5.2 1.2.5 - 7.0 + 8.0 1.1.0.Final - + not valid for Tomcat-7 with Jdk-7 --> 3.2.0 3.0.2 2.0.0 1.5.1 - 1.6 + 1.6 contrast-finder-webapp_${project.version} @@ -136,14 +134,14 @@ true - ${project.build.directory}/${project.build.finalName}/Js/_contrast-finder_${project.version}.all.min.js + ${project.build.directory}/${project.build.finalName}/public/js/_contrast-finder_${project.version}.all.min.js **/*min.js true - ${project.build.directory}/${project.build.finalName}/Css/_contrast-finder_${project.version}.all.min.css + ${project.build.directory}/${project.build.finalName}/public/css/_contrast-finder_${project.version}.all.min.css **/*min.css @@ -395,5 +393,14 @@ htmlcompressor ${htmlcompressor.version} + + + + org.tuckey + urlrewritefilter + 4.0.4 + diff --git a/webapp/src/main/java/org/asqatasun/contrastfinder/webapp/controller/IndexController.java b/webapp/src/main/java/org/asqatasun/contrastfinder/webapp/controller/IndexController.java index 99511107..f350ef51 100644 --- a/webapp/src/main/java/org/asqatasun/contrastfinder/webapp/controller/IndexController.java +++ b/webapp/src/main/java/org/asqatasun/contrastfinder/webapp/controller/IndexController.java @@ -94,6 +94,18 @@ public class IndexController { private String defaultAlgorithm; + /** + * Give crawlers instructions + * searchEngineInclude = "yes" + * searchEngineInclude = "no" (default) + * = disallow search engines from showing HTML pages in their results + * + * can be override in the following file: + * /etc/contrast-finder/contrast-finder.conf + */ + @Value("${searchEngineInclude:no}") + private String searchEngineInclude; + /** * environment * env = debug @@ -146,6 +158,7 @@ else if ("HSV".equals(defaultAlgorithm) || "Rgb".equals(defaultAlgorithm)) { model.addAttribute("env", env); model.addAttribute("piwikKey", piwikAnalyticsKey); model.addAttribute("piwikServer", piwikAnalyticServer); + model.addAttribute("searchEngineInclude", searchEngineInclude); model.addAttribute(commandName, colorModel); return mainPageView; } @@ -169,6 +182,7 @@ public String getPageResultFromGet( final Model model, model.addAttribute("env", env); model.addAttribute("piwikKey", piwikAnalyticsKey); /* Analytics Keys*/ model.addAttribute("piwikServer", piwikAnalyticServer); + model.addAttribute("searchEngineInclude", searchEngineInclude); model.addAttribute("defaultAlgorithm", defaultAlgorithm); model.addAttribute("algo", colorModel.getAlgo()); if (result.hasErrors()) { diff --git a/webapp/src/main/webapp/Images/logo/favicon/browserconfig.xml b/webapp/src/main/webapp/Images/logo/favicon/browserconfig.xml deleted file mode 100644 index 0dc493e6..00000000 --- a/webapp/src/main/webapp/Images/logo/favicon/browserconfig.xml +++ /dev/null @@ -1,12 +0,0 @@ - - - - - - - - - #2d89ef - - - diff --git a/webapp/src/main/webapp/WEB-INF/pages/error/error_4xx.html b/webapp/src/main/webapp/WEB-INF/pages/error/error_4xx.html new file mode 100644 index 00000000..9113eada --- /dev/null +++ b/webapp/src/main/webapp/WEB-INF/pages/error/error_4xx.html @@ -0,0 +1,24 @@ + + + + + Error: not found on this server / Contrast-Finder + + + +

Not Found

+

The requested URL was not found on this server.

+ + diff --git a/webapp/src/main/webapp/WEB-INF/pages/error/error_5xx.html b/webapp/src/main/webapp/WEB-INF/pages/error/error_5xx.html new file mode 100644 index 00000000..1f52fe87 --- /dev/null +++ b/webapp/src/main/webapp/WEB-INF/pages/error/error_5xx.html @@ -0,0 +1,24 @@ + + + + + Error: the server failed to fulfil this request / Contrast-Finder + + + +

Server error

+

The server failed to fulfil this request.

+ + diff --git a/webapp/src/main/webapp/WEB-INF/pages/form.jsp b/webapp/src/main/webapp/WEB-INF/pages/form.jsp index befa7483..81168f3f 100644 --- a/webapp/src/main/webapp/WEB-INF/pages/form.jsp +++ b/webapp/src/main/webapp/WEB-INF/pages/form.jsp @@ -21,15 +21,9 @@ <%-- DEBUG contrast-finder.conf --%> -
- env ${env}
- defaultAlgorithm ${defaultAlgorithm}
- cookie.algo ${cookie.algo.value}
- algo ${algo}
-
+ <%@include file='/WEB-INF/template/env_debug-info.jspf' %>
- <%-- ===== FORM ========================================================================================= --%>
@@ -37,7 +31,7 @@ - + <%-- Foregound --%> @@ -222,13 +216,13 @@
- " alt="Correct contrast"/> + " alt="Correct contrast"/>
@@ -443,15 +437,15 @@ <%@include file='/WEB-INF/template/footer.jspf' %> - - @@ -459,7 +453,7 @@ - \ No newline at end of file diff --git a/webapp/src/main/webapp/WEB-INF/template/header.jspf b/webapp/src/main/webapp/WEB-INF/template/header.jspf index 4a5efc4f..56bb5ce5 100644 --- a/webapp/src/main/webapp/WEB-INF/template/header.jspf +++ b/webapp/src/main/webapp/WEB-INF/template/header.jspf @@ -77,7 +77,7 @@
  • 한국어
  • -
  • 한국어
  • +
  • 한국어
  • @@ -86,12 +86,12 @@