feed2gram 0.0.3 → 1.0.0

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: 31ad42be4bf5ec4ba881a78695bc7b9cc0619bb3b399559d668361b3be9872b0
4
+ data.tar.gz: 38617996403f39ca1eeee6285cb31896be7c4dbbb05033d98713c2ac6a1d245e
5
5
  SHA512:
6
- metadata.gz: 025aa21dc8973cf0cc69d9d84cf2b019cf88bdf0cf5e02db48dc7fd69a3d3a9ed1a04f3290f0cb8c4fce8761cb2a4af5c76ed363221f4b4b6b442bbb4b432fbb
7
- data.tar.gz: 1a257665bfa5ccf815c3c97039aa16b73d4f9dae3471792828ab0e4345733dd380fe2262f8034122e35efac6ee20140d9a7cbb99765706f52d89ae2f0d2559b0
6
+ metadata.gz: e28c8903d7933cd8d55454ccf59df9a50a58a60dbaf2794463dbd1ff623af34d4c6077d9b4b202009e2a85b5a031a967e0e71d1ec8f90f58a46bc38222845ff1
7
+ data.tar.gz: 3a3d448efa515863ad1f37f4be8e75801e9a71769ed00b376a5d5f3723884d94ffa25a965c14b662a3f92e73c94b1c4b670973ae08164ab51605a1bb3d3afa9c
data/CHANGELOG.md CHANGED
@@ -1,5 +1,14 @@
1
1
  ## [Unreleased]
2
2
 
3
+ ## [1.0.0]
4
+
5
+ * Simplify the docker build
6
+ * Call it 1.0
7
+
8
+ ## [0.0.4]
9
+
10
+ * Optimize the size of the Docker image (about 85% reduction)
11
+
3
12
  ## [0.0.3]
4
13
 
5
14
  * Fix the `--populate-cache` so that all entries are marked `skipped`
data/Dockerfile CHANGED
@@ -1,13 +1,12 @@
1
- FROM ruby:3.2.2
2
-
3
- LABEL org.opencontainers.image.source=https://github.com/searls/feed2gram
4
- LABEL org.opencontainers.image.description="Reads an Atom feed and posts its entries to Instagram (basically feed2toot, but for Instagram)"
5
- LABEL org.opencontainers.image.licenses=GPLv3
1
+ FROM ruby:3.2.2-alpine
6
2
 
7
3
  WORKDIR /srv
8
- COPY Gemfile Gemfile.lock feed2gram.gemspec .
4
+ COPY Gemfile Gemfile.lock feed2gram.gemspec ./
9
5
  COPY lib/feed2gram/version.rb lib/feed2gram/
10
- RUN bundle install
6
+ RUN apk update && \
7
+ apk add autoconf bash git gcc make musl-dev && \
8
+ bundle install && \
9
+ apk del --purge --rdepends git gcc autoconf make musl-dev
11
10
  ADD . .
12
11
  VOLUME /config
13
12
  CMD ["--config", "/config/feed2gram.yml"]
data/LICENSE.txt CHANGED
@@ -1,16 +1,3 @@
1
- Copyright (C) 2023 Justin Searls
2
-
3
- This program is free software: you can redistribute it and/or modify it under
4
- the terms of the GNU General Public License as published by the Free Software
5
- Foundation, either version 3 of the License, or (at your option) any later
6
- version.
7
-
8
- This program is distributed in the hope that it will be useful, but WITHOUT ANY
9
- WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A
10
- PARTICULAR PURPOSE. See the GNU General Public License for more details.
11
-
12
- A copy of the GNU General Public License follows:
13
-
14
1
  GNU GENERAL PUBLIC LICENSE
15
2
  Version 3, 29 June 2007
16
3
 
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 = "1.0.0"
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: 1.0.0
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-08 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: nokogiri