forked from Asqatasun/Contrast-Finder
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fixed Asqatasun#188 - Webapp: refactor languages switcher
- Loading branch information
Showing
7 changed files
with
175 additions
and
124 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
51 changes: 51 additions & 0 deletions
51
docker/SNAPSHOT-local/test_config-file/60.languages/Dockerfile
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,51 @@ | ||
FROM asqatasun/contrast-finder:pre-requisites_Ubuntu-18.04_tomcat-8.5 | ||
|
||
# #### 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-18.04_tomcat-8.5 https://github.com/Asqatasun/Contrast-Finder/blob/master/docker/pre-requisites/pre-requisites_Ubuntu-18.04_tomcat-8.5/Dockerfile | ||
# |-- ubuntu:18.04 https://github.com/tianon/docker-brew-ubuntu-core/blob/dist-amd64/bionic/Dockerfile | ||
################################################################### | ||
|
||
# environment variables | ||
ENV CONTRAST_FINDER_RELEASE="0.9.3-SNAPSHOT" | ||
ENV LANGUAGES="en,fr,es" | ||
|
||
# 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/tomcat8/webapps && \ | ||
rm -rf /root/contrast-* && \ | ||
echo "languages=${LANGUAGES}" >> ${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-18.04_tomcat-8.5 | ||
|
||
CMD service tomcat8 start ; \ | ||
tail -f -n 50 ${TOMCAT_LOG} \ | ||
${LOG_FILE} | ||
|
||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters