add some hacky experiments for inotify event parsing

This commit is contained in:
Dominic Breuker committed 2018-02-11 22:15:10 +01:00
1 parent 38c5d42bb4
commit 9bc66835a6
8 files changed
+214 -31

No files matched your search

+7 -1
View File
@@ -1,9 +1,15 @@
FROM golang:1.9-stretch
RUN useradd -ms /bin/bash myuser
RUN apt-get update && apt-get -y install cron sudo
COPY docker/etc/cron.d /etc/cron.d
COPY docker/scripts /scripts
RUN useradd -ms /bin/bash myuser && \
adduser myuser sudo && \
echo 'myuser ALL=(ALL) NOPASSWD:ALL' >> /etc/sudoers
USER myuser
WORKDIR /go/src/github.com/dominicbreuker
+1
View File
@@ -0,0 +1 @@
* * * * * root echo 'this is some text' >> /tmp/myjob.log
+1
View File
@@ -0,0 +1 @@
* * * * * root python /scripts/print_stuff.py >> /tmp/print.log
+9
View File
@@ -0,0 +1,9 @@
#!/usr/bin/python
user = "myusername"
password = "thepw"
for i in range(100):
print("a"*i)
print("done")