koyo-postgres-replication 0.1.4.pre → 0.1.5.pre
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/Dockerfile +29 -0
- data/Gemfile.lock +4 -1
- data/README.md +10 -0
- data/changelog.md +5 -0
- data/docker/postgres/Dockerfile +3 -0
- data/docker-compose.yml +34 -0
- data/entrypoint.sh +5 -0
- data/koyo-postgres-replication.gemspec +1 -1
- data/lib/koyo/repl/version.rb +1 -1
- metadata +7 -3
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 8b45ea024487cd58842efb84ffb49a8a838a087c3302fc1411d02ec1afc646c2
|
|
4
|
+
data.tar.gz: 81900cffddb22af277e55be4c558316b9e0a61e3c9d9618f8d47ae1019f479ab
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 52657842594b2e36b7ac7f658b2c3a56b3e4c6a4d7b22896dd1fade2daa34c7d7a4a9884c374930b055180b46078b72b2c6bdddf2a6b8a518ea67528e8b58b56
|
|
7
|
+
data.tar.gz: 7252cd8c30c701ee033cf7244ed668e9b23d9c9b0f48d958835eafe59a0419c0df60a05e09e580ebb798bec704e44708bd12905cf658669494ed58fa6a3082f6
|
data/Dockerfile
ADDED
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
FROM ruby:3.2.2-slim
|
|
2
|
+
|
|
3
|
+
RUN apt-get update -qq && apt-get install -yq --no-install-recommends \
|
|
4
|
+
git \
|
|
5
|
+
build-essential \
|
|
6
|
+
gnupg2 \
|
|
7
|
+
less \
|
|
8
|
+
libpq-dev \
|
|
9
|
+
postgresql-client \
|
|
10
|
+
&& rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/*
|
|
11
|
+
|
|
12
|
+
ENV LANG=C.UTF-8 \
|
|
13
|
+
BUNDLE_JOBS=4 \
|
|
14
|
+
BUNDLE_RETRY=3
|
|
15
|
+
|
|
16
|
+
RUN gem update --system && gem install bundler && gem install rails
|
|
17
|
+
|
|
18
|
+
WORKDIR /usr/src/app
|
|
19
|
+
|
|
20
|
+
COPY Gemfile .
|
|
21
|
+
COPY Gemfile.lock .
|
|
22
|
+
|
|
23
|
+
COPY . .
|
|
24
|
+
|
|
25
|
+
RUN bundle install
|
|
26
|
+
|
|
27
|
+
COPY . .
|
|
28
|
+
|
|
29
|
+
CMD ["irb"]
|
data/Gemfile.lock
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
PATH
|
|
2
2
|
remote: .
|
|
3
3
|
specs:
|
|
4
|
-
koyo-postgres-replication (0.1.
|
|
4
|
+
koyo-postgres-replication (0.1.5.pre)
|
|
5
5
|
pg (~> 1.1)
|
|
6
6
|
rack (~> 2.0, >= 2.0.0)
|
|
7
7
|
rails (~> 7.0)
|
|
@@ -125,6 +125,8 @@ GEM
|
|
|
125
125
|
net-smtp (0.3.3)
|
|
126
126
|
net-protocol
|
|
127
127
|
nio4r (2.5.9)
|
|
128
|
+
nokogiri (1.15.4-aarch64-linux)
|
|
129
|
+
racc (~> 1.4)
|
|
128
130
|
nokogiri (1.15.4-arm64-darwin)
|
|
129
131
|
racc (~> 1.4)
|
|
130
132
|
parallel (1.23.0)
|
|
@@ -214,6 +216,7 @@ GEM
|
|
|
214
216
|
zeitwerk (2.6.11)
|
|
215
217
|
|
|
216
218
|
PLATFORMS
|
|
219
|
+
aarch64-linux
|
|
217
220
|
arm64-darwin-22
|
|
218
221
|
|
|
219
222
|
DEPENDENCIES
|
data/README.md
CHANGED
|
@@ -192,6 +192,16 @@ TODO: update
|
|
|
192
192
|
|
|
193
193
|
# Working with gem
|
|
194
194
|
|
|
195
|
+
## Run specs
|
|
196
|
+
|
|
197
|
+
```
|
|
198
|
+
rspec spec
|
|
199
|
+
```
|
|
200
|
+
|
|
201
|
+
### Docker
|
|
202
|
+
|
|
203
|
+
See [Docker wiki page](https://github.com/wiseleyb/koyo-postgres-replication/wiki/Docker)
|
|
204
|
+
|
|
195
205
|
## Gem Build
|
|
196
206
|
|
|
197
207
|
```
|
data/changelog.md
CHANGED
data/docker-compose.yml
ADDED
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
version: '3.9'
|
|
2
|
+
services:
|
|
3
|
+
db:
|
|
4
|
+
build: ./docker/postgres
|
|
5
|
+
image: postgres:13
|
|
6
|
+
ports:
|
|
7
|
+
- "5432:5432"
|
|
8
|
+
environment:
|
|
9
|
+
- POSTGRES_DB=rei_replication_test
|
|
10
|
+
- POSTGRES_PASSWORD=changeme
|
|
11
|
+
# - POSTGRES_USER=postgres
|
|
12
|
+
volumes:
|
|
13
|
+
- db_data:/var/lib/postgresql/data
|
|
14
|
+
command:
|
|
15
|
+
- "postgres"
|
|
16
|
+
- "-c"
|
|
17
|
+
- "wal_level=logical"
|
|
18
|
+
web:
|
|
19
|
+
build: .
|
|
20
|
+
image: rails-on-docker:1.3.0
|
|
21
|
+
stdin_open: true
|
|
22
|
+
tty: true
|
|
23
|
+
environment:
|
|
24
|
+
- DATABASE_URL=postgres://postgres:changeme@db
|
|
25
|
+
- BOOTSNAP_CACHE_DIR=/usr/local/bundle/_bootsnap
|
|
26
|
+
- HISTFILE=/usr/src/app/.dockerdev/.bash_history
|
|
27
|
+
- MALLOC_ARENA_MAX=2
|
|
28
|
+
volumes:
|
|
29
|
+
- .:/usr/src/app/:cached
|
|
30
|
+
depends_on:
|
|
31
|
+
- db
|
|
32
|
+
volumes:
|
|
33
|
+
bundle:
|
|
34
|
+
db_data:
|
data/entrypoint.sh
ADDED
|
@@ -20,7 +20,7 @@ Gem::Specification.new do |spec|
|
|
|
20
20
|
spec.metadata = {
|
|
21
21
|
'bug_tracker_uri' => "#{url}/issues",
|
|
22
22
|
'changelog_uri' => "#{url}/blob/main/changelog.md",
|
|
23
|
-
'
|
|
23
|
+
'documentation_uri' => 'https://www.rubydoc.info/github/wiseleyb/koyo-postgres-replication/main',
|
|
24
24
|
'homepage_uri' => spec.homepage,
|
|
25
25
|
'source_code_uri' => burl
|
|
26
26
|
}
|
data/lib/koyo/repl/version.rb
CHANGED
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: koyo-postgres-replication
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.1.
|
|
4
|
+
version: 0.1.5.pre
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Ben Wiseley
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2023-08-
|
|
11
|
+
date: 2023-08-21 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: pg
|
|
@@ -116,12 +116,16 @@ files:
|
|
|
116
116
|
- ".yardoc/objects/root.dat"
|
|
117
117
|
- ".yardoc/proxy_types"
|
|
118
118
|
- ".yardopts"
|
|
119
|
+
- Dockerfile
|
|
119
120
|
- Gemfile
|
|
120
121
|
- Gemfile.lock
|
|
121
122
|
- MIT-LICENSE
|
|
122
123
|
- README.md
|
|
123
124
|
- Rakefile
|
|
124
125
|
- changelog.md
|
|
126
|
+
- docker-compose.yml
|
|
127
|
+
- docker/postgres/Dockerfile
|
|
128
|
+
- entrypoint.sh
|
|
125
129
|
- koyo-postgres-replication.gemspec
|
|
126
130
|
- lib/koyo.rb
|
|
127
131
|
- lib/koyo/repl/configuration.rb
|
|
@@ -146,7 +150,7 @@ licenses:
|
|
|
146
150
|
metadata:
|
|
147
151
|
bug_tracker_uri: https://github.com/wiseleyb/koyo-postgres-replication/issues
|
|
148
152
|
changelog_uri: https://github.com/wiseleyb/koyo-postgres-replication/blob/main/changelog.md
|
|
149
|
-
|
|
153
|
+
documentation_uri: https://www.rubydoc.info/github/wiseleyb/koyo-postgres-replication/main
|
|
150
154
|
homepage_uri: https://github.com/wiseleyb
|
|
151
155
|
source_code_uri: https://github.com/wiseleyb
|
|
152
156
|
post_install_message:
|