feed2gram 0.0.3 → 0.0.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +4 -0
- data/Dockerfile +6 -3
- data/README.md +28 -13
- data/lib/feed2gram/version.rb +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: c053ce1eafec6ed200dc7ed549fb25e7bc22fcd78fa6b92c773673d47aeba056
|
4
|
+
data.tar.gz: 767a90bd8534d43f0e9bef8ef73e8e577bd959ade67ebabe639ac96d6bde4828
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 57c2490cf9aee77fa40d5dffceaeddb3ac71e2d23d8b44d962b87e10caa295079c9e8772d7986b0db37f2a5a826a838c5ec7cdd7355d2c0bb6704acc0b58493d
|
7
|
+
data.tar.gz: e6e39cc6033dab9c32e958c413790b2d0c8eacbe1e6d7175108df34ed2894ad2ecbb305e98ab88891fd3e8600243849dbb22dda4b73fbe3c4f0ed76096125055
|
data/CHANGELOG.md
CHANGED
data/Dockerfile
CHANGED
@@ -1,13 +1,16 @@
|
|
1
|
-
FROM ruby:3.2.2
|
1
|
+
FROM ruby:3.2.2-alpine
|
2
2
|
|
3
3
|
LABEL org.opencontainers.image.source=https://github.com/searls/feed2gram
|
4
4
|
LABEL org.opencontainers.image.description="Reads an Atom feed and posts its entries to Instagram (basically feed2toot, but for Instagram)"
|
5
5
|
LABEL org.opencontainers.image.licenses=GPLv3
|
6
6
|
|
7
7
|
WORKDIR /srv
|
8
|
-
COPY Gemfile Gemfile.lock feed2gram.gemspec
|
8
|
+
COPY Gemfile Gemfile.lock feed2gram.gemspec ./
|
9
9
|
COPY lib/feed2gram/version.rb lib/feed2gram/
|
10
|
-
RUN
|
10
|
+
RUN apk update && \
|
11
|
+
apk add autoconf bash git gcc make musl-dev && \
|
12
|
+
bundle install && \
|
13
|
+
apk del --purge --rdepends git gcc autoconf make musl-dev
|
11
14
|
ADD . .
|
12
15
|
VOLUME /config
|
13
16
|
CMD ["--config", "/config/feed2gram.yml"]
|
data/README.md
CHANGED
@@ -82,17 +82,6 @@ directory. This file is used internally by feed2gram to keep track of which
|
|
82
82
|
entry URLs in the atom feed have been processed and can be ignored on the next
|
83
83
|
run.
|
84
84
|
|
85
|
-
## Docker
|
86
|
-
|
87
|
-
You can also use Docker to run this on your own automation platform like Proxmox or Kubernetes.
|
88
|
-
|
89
|
-
```
|
90
|
-
docker run --rm -it \
|
91
|
-
-v ./feed2gram.yml:/srv/feed2gram.yml \
|
92
|
-
-v ./feed2gram.cache.yml:/srv/feed2gram.cache.yml \
|
93
|
-
ghcr.io/searls/feed2gram
|
94
|
-
```
|
95
|
-
|
96
85
|
## Options
|
97
86
|
|
98
87
|
For available options, run `feed2gram --help`:
|
@@ -168,11 +157,16 @@ release tag tracking every release of the gem on
|
|
168
157
|
container
|
169
158
|
registry](https://github.com/searls/feed2gram/pkgs/container/feed2gram)
|
170
159
|
|
160
|
+
|
161
|
+
You can also use Docker to run this on your own automation platform like Proxmox or Kubernetes.
|
162
|
+
|
171
163
|
```
|
172
|
-
$ docker
|
164
|
+
$ docker run --rm -it \
|
165
|
+
-v ./your_config_dir:/srv/config
|
166
|
+
ghcr.io/searls/feed2gram
|
173
167
|
```
|
174
168
|
|
175
|
-
To configure
|
169
|
+
To configure the container, there are just four things to know:
|
176
170
|
|
177
171
|
1. A volume containing your configuration and cache files must be mounted to `/config`
|
178
172
|
2. By default, feed2gram will run with `--config /config/feed2gram.yml`, but you can
|
@@ -184,6 +178,27 @@ to wait between runs
|
|
184
178
|
(presumably to handle scheduling it yourself), simply change the entrypoint to
|
185
179
|
`/srv/exe/feed2gram`
|
186
180
|
|
181
|
+
### Running the docker image specifically on your Synology NAS
|
182
|
+
|
183
|
+
I run this on my [Synology DS 920+](https://www.pcmag.com/reviews/synology-diskstation-ds920-plus), using the [DSM's Container Manager](https://www.synology.com/en-global/dsm/feature/container-manager) app.
|
184
|
+
|
185
|
+
There are just a few things to know to set this up:
|
186
|
+
|
187
|
+
At the time of this writing, the `Action > Import > Add from URL` feature of the Container Manager's
|
188
|
+
"Image" tab does not support GitHub Container Registry URLs. However, if you connect [via SSH](https://kb.synology.com/en-my/DSM/tutorial/How_to_login_to_DSM_with_root_permission_via_SSH_Telnet):
|
189
|
+
|
190
|
+
```
|
191
|
+
$ sudo -s
|
192
|
+
# Enter your user password.
|
193
|
+
$ docker pull ghcr.io/searls/feed2gram:latest
|
194
|
+
```
|
195
|
+
|
196
|
+
Once downloaded, the image will appear in the app. From there, select
|
197
|
+
`ghcr.io/searls/feed2gram`, hit Run, and complete the wizard, setting any custom
|
198
|
+
command line flags (once the container is created, this cannot be edited), as
|
199
|
+
well as choosing a location to mount the `/config` volume and setting a
|
200
|
+
`SLEEP_TIME` environment variable (these can be changed after the fact).
|
201
|
+
|
187
202
|
## Frequently Asked Questions
|
188
203
|
|
189
204
|
### Why didn't my post show up?
|
data/lib/feed2gram/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: feed2gram
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.4
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Justin Searls
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2023-11-
|
11
|
+
date: 2023-11-07 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: nokogiri
|
@@ -73,7 +73,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
73
73
|
- !ruby/object:Gem::Version
|
74
74
|
version: '0'
|
75
75
|
requirements: []
|
76
|
-
rubygems_version: 3.4.
|
76
|
+
rubygems_version: 3.4.21
|
77
77
|
signing_key:
|
78
78
|
specification_version: 4
|
79
79
|
summary: Reads an Atom feed and posts its entries to Instagram
|