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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: c86578cd42608fcc00119f206582ff6c2812f8ba50a92a47a8e11360a635210e
4
- data.tar.gz: 4a322434134e5bd515b4985feb53cd03054a36d6df2f9399ec2a08e3518a3816
3
+ metadata.gz: c053ce1eafec6ed200dc7ed549fb25e7bc22fcd78fa6b92c773673d47aeba056
4
+ data.tar.gz: 767a90bd8534d43f0e9bef8ef73e8e577bd959ade67ebabe639ac96d6bde4828
5
5
  SHA512:
6
- metadata.gz: 025aa21dc8973cf0cc69d9d84cf2b019cf88bdf0cf5e02db48dc7fd69a3d3a9ed1a04f3290f0cb8c4fce8761cb2a4af5c76ed363221f4b4b6b442bbb4b432fbb
7
- data.tar.gz: 1a257665bfa5ccf815c3c97039aa16b73d4f9dae3471792828ab0e4345733dd380fe2262f8034122e35efac6ee20140d9a7cbb99765706f52d89ae2f0d2559b0
6
+ metadata.gz: 57c2490cf9aee77fa40d5dffceaeddb3ac71e2d23d8b44d962b87e10caa295079c9e8772d7986b0db37f2a5a826a838c5ec7cdd7355d2c0bb6704acc0b58493d
7
+ data.tar.gz: e6e39cc6033dab9c32e958c413790b2d0c8eacbe1e6d7175108df34ed2894ad2ecbb305e98ab88891fd3e8600243849dbb22dda4b73fbe3c4f0ed76096125055
data/CHANGELOG.md CHANGED
@@ -1,5 +1,9 @@
1
1
  ## [Unreleased]
2
2
 
3
+ ## [0.0.4]
4
+
5
+ * Optimize the size of the Docker image (about 85% reduction)
6
+
3
7
  ## [0.0.3]
4
8
 
5
9
  * Fix the `--populate-cache` so that all entries are marked `skipped`
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 bundle install
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 pull ghcr.io/searls/feed2gram:latest
164
+ $ docker run --rm -it \
165
+ -v ./your_config_dir:/srv/config
166
+ ghcr.io/searls/feed2gram
173
167
  ```
174
168
 
175
- To configure your container, there are just three things to know:
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?
@@ -1,3 +1,3 @@
1
1
  module Feed2Gram
2
- VERSION = "0.0.3"
2
+ VERSION = "0.0.4"
3
3
  end
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.3
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-06 00:00:00.000000000 Z
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.17
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