commit 0800d03a9ade23bace472cb2aadd0e82bfb770ca Author: ECAILLE Fabrice (externe) Date: Thu Mar 16 15:05:49 2017 +0100 Initial commit - First working version diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..1968ea1 --- /dev/null +++ b/Dockerfile @@ -0,0 +1,18 @@ +FROM python:2.7.13 + +USER root + +RUN apt-get clean && apt-get update \ + && apt-get install -y build-essential unzip \ + && wget -O Fake-Apache-Log-Generator.zip https://github.com/kiritbasu/Fake-Apache-Log-Generator/archive/master.zip \ + && unzip Fake-Apache-Log-Generator.zip \ + && mv Fake-Apache-Log-Generator-master /fake-apache-log-generator \ + && rm Fake-Apache-Log-Generator.zip \ + && cd fake-apache-log-generator \ + && pip install -r requirements.txt \ + && apt-get clean \ + && rm -rf /var/lib/apt/listss/* /tmp/* /var/tmp/* + +WORKDIR /fake-apache-log-generator + +CMD ["python", "apache-fake-log-gen.py", "-o", "LOG", "-p", "/var/log/apache/apache", "-n", "0", "-s", "3"] \ No newline at end of file diff --git a/LICENSE.md b/LICENSE.md new file mode 100644 index 0000000..023b8e6 --- /dev/null +++ b/LICENSE.md @@ -0,0 +1,7 @@ +Copyright (c) 2017 Fabrice ECAILLE aka Febbweiss + +Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. \ No newline at end of file diff --git a/README.md b/README.md new file mode 100644 index 0000000..dd12401 --- /dev/null +++ b/README.md @@ -0,0 +1,22 @@ +Goal : +-------- +This is a simple Docker container to provide random apache logs. +It's based on [Fake-Apache-Log-Generator](https://github.com/kiritbasu/Fake-Apache-Log-Generator) + +The default behaviour is the following : +```sql +python apache-fake-log-gen.py -o LOG -p /var/log/apache/apache -n 0 -s 3 +``` +The endless generated file is located in /var/log and a line is appended every 3 seconds. + +Licences : +---------- + +Copyright (c) 2017 Fabrice ECAILLE aka Febbweiss + +Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. +