aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRené 'Necoro' Neumann <necoro@necoro.eu>2020-05-12 18:46:52 +0200
committerGitHub <noreply@github.com>2020-05-12 18:46:52 +0200
commit094c926812a4b9e3c0c77a820ff7daf81bc82bdd (patch)
treed3eff5675cf1ec1230059b2cbb6cd3d42a135ac6
parent8558205de4c9bd46aa7b4a61db7bdd1fa2f91240 (diff)
parent3745c6710ddd1d5504ea4882d07d97e2ce55d499 (diff)
downloadfeed2imap-go-094c926812a4b9e3c0c77a820ff7daf81bc82bdd.tar.gz
feed2imap-go-094c926812a4b9e3c0c77a820ff7daf81bc82bdd.tar.bz2
feed2imap-go-094c926812a4b9e3c0c77a820ff7daf81bc82bdd.zip
Merge pull request #13 from ruedigerp/master
add docker stuff
Diffstat (limited to '')
-rw-r--r--Dockerfile9
-rw-r--r--README.md22
-rw-r--r--docker-compose.yml13
3 files changed, 44 insertions, 0 deletions
diff --git a/Dockerfile b/Dockerfile
new file mode 100644
index 0000000..cd221bd
--- /dev/null
+++ b/Dockerfile
@@ -0,0 +1,9 @@
+FROM golang:alpine
+
+RUN mkdir /app
+WORKDIR /app
+COPY dist/feed2imap-go_linux_amd64/feed2imap-go /app/feed2imap-go
+COPY config.yml /app/config.yml
+
+ENTRYPOINT ["/app/feed2imap-go", "-c", "/app/data/feed.cache", "-f", "/app/config.yml" ]
+
diff --git a/README.md b/README.md
index 47c9984..bb36e09 100644
--- a/README.md
+++ b/README.md
@@ -90,6 +90,28 @@ Note that this is not recommended, because it is a) not obvious which version yo
and b) the update process is not clear, especially regarding the dependencies.
+### Run in docker
+
+Build docker image:
+
+````bash
+docker build -t feed2imap-go .
+````
+
+Run docker-command:
+
+````bash
+docker volume create docker_feeddata
+docker container run -v feeddata:/app/data feed2imap-go
+````
+
+Or run with docker-compose:
+
+````bash
+docker-compose up
+
+Next Todo: Run scheduled kubernetes job in k8s cluster
+
[i6]: https://github.com/Necoro/feed2imap-go/issues/6
[i4]: https://github.com/Necoro/feed2imap-go/issues/4
[i9]: https://github.com/Necoro/feed2imap-go/issues/9
diff --git a/docker-compose.yml b/docker-compose.yml
new file mode 100644
index 0000000..d27aa2a
--- /dev/null
+++ b/docker-compose.yml
@@ -0,0 +1,13 @@
+version: "2"
+
+services:
+
+ feed2imap:
+ image: "feed2imap-go"
+ volumes:
+ - "feeddata:/app/data"
+
+volumes:
+ feeddata:
+
+