Skip to content

Commit

Permalink
Contrast-Finder v0.8.4
Browse files Browse the repository at this point in the history
----------------------

  set version to 0.8.4
  typo
  Webapp - Added .well-known/security.txt
  Fixed #108 - Upgraded SpringFramework (4.3.14 instead of 4.3.13)
  Fixed #125 - Maven builds need openjdk 8 (jdeb prerequisites)
  Fixed #124 - Updated jdeb config. (creating debian package at the maven build)
  Replaced some "http://" by "https://"  (W3C links and AGPL link)
  Fixed js and css URL
  Fixed #123 - Upgraded outdated dependency: native2ascii-maven-plugin (2.0.0 instead of 1.0-beta-1)
  Fixed #121 - Upgraded outdated dependency: maven-checkstyle-plugin (3.0.0 instead of 2.17)
  Fixed #120 - Upgraded outdated dependency: jacoco-maven-plugin (0.8.0 instead of 0.7.9)
  Fixed #119 - Upgraded outdated dependency: maven-javadoc-plugin  (3.0.0 instead of 3.0.0-M1)
  Fixed #118 - Upgraded outdated dependency: jdeb  (1.6 instead of 1.5)
  Docker - Removed legacy debian Dockerfile
  Docker - fixed #116 + fixed #117
  Docker: refactoring the directories and docker images names
  fixed #115 - Updated prerequisites : libspring-instrument-java is not needed
  preparing #115 - Added some Dockerfile files for tests
  Doc - added QA-tools.md
  docker/SNAPSHOT - Flagged Debian-8 file like a legacy Debian
  ...
  • Loading branch information
dzc34 committed Jan 24, 2018
2 parents 0e1e5ba + aac4bdb commit 475a52f
Show file tree
Hide file tree
Showing 140 changed files with 3,336 additions and 633 deletions.
3 changes: 1 addition & 2 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,3 +1,2 @@
language: java
jdk:
- openjdk7
jdk: openjdk8
37 changes: 36 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,41 @@
# CHANGELOG

Contrast-Finder 0.8.4, 2018-01-24
---------------------------------

Upgrade-o-meter: just replace the .war file and restart Tomcat

### Outdated dependencies
- [#108 - Upgraded SpringFramework (4.3.14 instead of 4.3.13)](https://github.com/Asqatasun/Contrast-Finder/issues/108)
- [#113 - Upgraded markdown-page-generator-plugin (2.0.1 instead of 2.0.0)](https://github.com/Asqatasun/Contrast-Finder/issues/113)
- [#119 - Upgraded maven-javadoc-plugin (3.0.0 instead of 3.0.0-M1)](https://github.com/Asqatasun/Contrast-Finder/issues/119)
- [#120 - Upgraded jacoco-maven-plugin (0.8.0 instead of 0.7.9)](https://github.com/Asqatasun/Contrast-Finder/issues/120)
- [#121 - Upgraded maven-checkstyle-plugin (3.0.0 instead of 2.17)](https://github.com/Asqatasun/Contrast-Finder/issues/121)
- [#123 - Upgraded native2ascii-maven-plugin (2.0.0 instead of 1.0-beta-1)](https://github.com/Asqatasun/Contrast-Finder/issues/123)
- [#118 - Upgraded jdeb maven plugin (1.6 instead of 1.5)](https://github.com/Asqatasun/Contrast-Finder/issues/118)
- [#125 - Contrast-Finder build need openjdk 8 (prerequisite jdeb)](https://github.com/Asqatasun/Contrast-Finder/issues/125)

### Improvement
- [#110 - Added new docker image: ubuntu 16.04 (tomcat-7)](https://github.com/Asqatasun/Contrast-Finder/issues/110)
- [#112 - Added new docker image: alpine (tomcat-7)](https://github.com/Asqatasun/Contrast-Finder/issues/112)
- [#116 - Added new docker image: alpine (tomcat-8.5)](https://github.com/Asqatasun/Contrast-Finder/issues/116)
- [#117 - Added some new pre-requisites_* Docker images (debian 9, ubuntu 18.04)](https://github.com/Asqatasun/Contrast-Finder/issues/117)
- [#109 - Docker/pre-requisites/ - Added /softwares-version.txt](https://github.com/Asqatasun/Contrast-Finder/issues/109)
- [#124 - Create 2 Debian packages (.deb) at the maven build for tomcat7 and tomcat8](https://github.com/Asqatasun/Contrast-Finder/issues/124)

### Refactoring
- [#114 - Updated webapp/pom.xml - new name for .war, .tar.gz and .deb](https://github.com/Asqatasun/Contrast-Finder/issues/114)
- [#115 - Updated prerequisites : libspring-instrument-java is not needed](https://github.com/Asqatasun/Contrast-Finder/issues/115)

### Documentation
- [#114 - Updated documentation - new name for .war, .tar.gz and .deb](https://github.com/Asqatasun/Contrast-Finder/issues/114)
- [#115 - Updated prerequisites documentation](https://github.com/Asqatasun/Contrast-Finder/issues/115)

### Task
- [#106 - Added unit tests coverage report (cobertura-maven-plugin)](https://github.com/Asqatasun/Contrast-Finder/issues/106)
- /!\ see #125 - [#111 -.travis.yml - Added openjdk8 in addition to openjdk7](https://github.com/Asqatasun/Contrast-Finder/issues/111)


Contrast-Finder 0.8.3, 2017-11-28
---------------------------------

Expand All @@ -18,7 +54,6 @@ Upgrade-o-meter: just replace the .war file and restart Tomcat
- [#107 - Added missing unit tests for engine/utils/*](https://github.com/Asqatasun/Contrast-Finder/issues/107)



Contrast-Finder 0.8.2, 2017-10-28
---------------------------------

Expand Down
2 changes: 1 addition & 1 deletion CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ thus only contains tagged releases.
git clone https://github.com/Asqatasun/Contrast-Finder
cd Contrast-finder
git checkout develop
docker/build_and_run-with-docker.sh -l -s ${PWD} -d docker/SNAPSHOT-local_from-Ubuntu
docker/build_and_run-with-docker.sh -l -s ${PWD} -d docker/SNAPSHOT-local
```

## Sources of inspiration for CONTRIBUTING.md
Expand Down
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,8 @@

* Tool to provide color combination for a good (accessible, WCAG-compliant) contrast.
* This helps you in satisfying web accessibility (a11y) tests on contrasts:
* [WCAG Success Criteria 1.4.3](http://www.w3.org/TR/WCAG20/#visual-audio-contrast-contrast)
* [WCAG Success Criteria 1.4.6](http://www.w3.org/TR/WCAG20/#visual-audio-contrast7)
* [WCAG Success Criteria 1.4.3](https://www.w3.org/TR/WCAG20/#visual-audio-contrast-contrast)
* [WCAG Success Criteria 1.4.6](https://www.w3.org/TR/WCAG20/#visual-audio-contrast7)
* [RGAA test 3.3 (in french)](http://references.modernisation.gouv.fr/rgaa-accessibilite/criteres.html#crit-3-3)
* [RGAA test 3.4 (in french)](http://references.modernisation.gouv.fr/rgaa-accessibilite/criteres.html#crit-3-4)

Expand Down
2 changes: 1 addition & 1 deletion docker/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ To enjoy it, do:
git clone https://github.com/Asqatasun/Contrast-Finder
cd Contrast-finder
git checkout develop
docker/build_and_run-with-docker.sh -l --source-dir ${PWD} --docker-dir docker/SNAPSHOT-local_from-Ubuntu
docker/build_and_run-with-docker.sh -l --source-dir ${PWD} --docker-dir docker/SNAPSHOT-local
```
In your browser, go to
`http://127.0.0.1:8087/contrast-finder/`
Expand Down
65 changes: 0 additions & 65 deletions docker/RELEASE/Dockerfile

This file was deleted.

1 change: 1 addition & 0 deletions docker/RELEASE/Dockerfile
19 changes: 11 additions & 8 deletions docker/RELEASE/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,14 +6,17 @@ Tool to provide color combination for a good (accessible, WCAG-compliant) contra
## Supported tags
Supported tags and respective `Dockerfile` links :

* [pre-requisites_from-Ubuntu](https://github.com/Asqatasun/Contrast-Finder/blob/master/docker/pre-requisites/pre-requisites_from-Ubuntu/Dockerfile)
* [v0.8.3, latest](https://github.com/Asqatasun/Contrast-Finder/blob/master/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)
### Pre-requisites
* [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)
* [pre-requisites_Ubuntu-16.04_tomcat-7](https://github.com/Asqatasun/Contrast-Finder/blob/master/docker/pre-requisites/pre-requisites_Ubuntu-16.04_tomcat-7/Dockerfile)
* [pre-requisites_Alpine_tomcat-7](https://github.com/Asqatasun/Contrast-Finder/blob/master/docker/pre-requisites/pre-requisites_Alpine_tomcat-7/Dockerfile)
* [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)
* [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
`docker pull asqatasun/contrast-finder`
Expand Down
82 changes: 82 additions & 0 deletions docker/RELEASE/alpine_tomcat-7/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,82 @@
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.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" \
org.label-schema.usage = "https://github.com/Asqatasun/Contrast-Finder/tree/develop/documentation/" \
org.label-schema.description = "Contrast-Finder finds correct color contrasts for web accessibility."
# ----> documentation http://label-schema.org/

# #### usage ######################################################
#
# --- 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 .
#
# --- Launch a container
# docker run -p 127.0.0.1:8087:8080 --name contrast.finder -d asqatasun/contrast-finder
#
# --- 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
#
# #### source code ###############################################
# https://github.com/Asqatasun/Contrast-Finder/releases/download/v${CONTRAST_FINDER_RELEASE}/contrast-finder-webapp_${CONTRAST_FINDER_RELEASE}.tar.gz
# could be overridden with --build-arg CONTRAST_FINDER_RELEASE=<release>
# could be overridden with --build-arg SRC_URL_PREFIX=<url_prefix>
# could be overridden with --build-arg SRC_URL=<url>
#
# #### FROM ######################################################
# asqatasun/contrast-finder:pre-requisites_Alpine_tomcat-7 https://github.com/Asqatasun/Contrast-Finder/blob/master/docker/pre-requisites/pre-requisites_Alpine_tomcat-7/Dockerfile
# |-- tomcat:7-jre7-alpine https://github.com/docker-library/tomcat/blob/master/7/jre7-alpine/Dockerfile
# |-- openjdk:7-jre-alpine https://github.com/docker-library/openjdk/blob/master/7-jre/alpine/Dockerfile
# |-- alpine:3.7 https://github.com/gliderlabs/docker-alpine/blob/master/versions/library-3.7/x86_64/Dockerfile
###################################################################

# build variables
ARG CONTRAST_FINDER_RELEASE="0.8.4"
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"

# Install contrast-finder
RUN cd /root/ && \
wget ${SRC_URL} && \
tar -xzvf contrast-*.tar.gz && \
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"

# environment variables
ENV CONTRAST_FINDER=${CONTRAST_FINDER_RELEASE}
ENV SRC=${SRC_URL}


# Health Check of the Docker Container
# ----> see asqatasun/contrast-finder:pre-requisites_Alpine_tomcat-7


###### don't work ############################
# CMD catalina.sh run ; \
# tail -f -n 200 ${TOMCAT_DIR}logs/catalina.*.log \
# ${LOG_FILE}
###################################################

# in "tomcat:7-jre7-alpine" DockerFile
# CMD ["catalina.sh", "run"]

1 change: 1 addition & 0 deletions docker/RELEASE/alpine_tomcat-7/README.md
Loading

0 comments on commit 475a52f

Please sign in to comment.