Selaa lähdekoodia

Initial commit - First working version

ECAILLE Fabrice (externe) 8 vuotta sitten
commit
0800d03a9a
3 muutettua tiedostoa jossa 47 lisäystä ja 0 poistoa
  1. 18 0
      Dockerfile
  2. 7 0
      LICENSE.md
  3. 22 0
      README.md

+ 18 - 0
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"]

+ 7 - 0
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.

+ 22 - 0
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.
+