odysseus-core 0.1.0 → 0.2.0

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 917c4ba0f885774f77c2bb74ce396300be9f9ae077f5ddc8d54bd96e4766d6d8
4
- data.tar.gz: ea50eb29cd561fa1ae3de2f6f81df06d33f4cb21bd4a36f3a0a60acc94cfd0f4
3
+ metadata.gz: 8fe8c4589fdd306206eab129be5961feebe72c245a1a1ea1e02a3979b55586c6
4
+ data.tar.gz: 4554cacf3de2f7aa179139a635e92084cdd64166d5bb7fbc93da46fda95b1482
5
5
  SHA512:
6
- metadata.gz: 1eef3bc36f17dce94de204c1b4ddec3bdbc9f2d3882ec2dc2b7fd56cfe90f56a53856c8bcfb90df3ee10dce4e9236f5a748efc7b7b88d5babea919a02f636772
7
- data.tar.gz: 2a3b7d72b6ddbc2e6210839e803a8c9173d41d952775695dea80a1172a919d22308f40e17b0f79ae37668d0b7f109b1e4591b3445ea0fab2a47cde8b9e570caa
6
+ metadata.gz: 5234fe2b6c49ad5e39bcae8c038e2db258c2a5e5353bf7961f7b5b01e60fc33852a818d59b8c3ad449d7bb65e8bb54054b796330f94ceb21e484010c1f4124d0
7
+ data.tar.gz: 85bdcf35c68b497af9116842166f0ab8fe6c7b90e6c82aa87d09f777468f174e3b7cabbcc67eab2fb682c8899af749c1bd478c55bc9f97a411e183822c547a38
data/README.md CHANGED
@@ -1,43 +1,88 @@
1
- # Odysseus::Core
1
+ # Odysseus Core
2
2
 
3
- TODO: Delete this and the text below, and describe your gem
4
-
5
- Welcome to your new gem! In this directory, you'll find the files you need to be able to package up your Ruby library into a gem. Put your Ruby code in the file `lib/odysseus/core`. To experiment with that code, run `bin/console` for an interactive prompt.
3
+ Core library for [Odysseus](https://github.com/WA-Systems-EU/odysseus), a zero-downtime Docker deployment tool with Caddy reverse proxy integration.
6
4
 
7
5
  ## Installation
8
6
 
9
- TODO: Replace `UPDATE_WITH_YOUR_GEM_NAME_IMMEDIATELY_AFTER_RELEASE_TO_RUBYGEMS_ORG` with your gem name right after releasing it to RubyGems.org. Please do not do it earlier due to security reasons. Alternatively, replace this section with instructions to install your gem from git if you don't plan to release to RubyGems.org.
10
-
11
- Install the gem and add to the application's Gemfile by executing:
12
-
13
7
  ```bash
14
- bundle add UPDATE_WITH_YOUR_GEM_NAME_IMMEDIATELY_AFTER_RELEASE_TO_RUBYGEMS_ORG
8
+ gem install odysseus-core
15
9
  ```
16
10
 
17
- If bundler is not being used to manage dependencies, install the gem by executing:
11
+ Or add to your Gemfile:
18
12
 
19
- ```bash
20
- gem install UPDATE_WITH_YOUR_GEM_NAME_IMMEDIATELY_AFTER_RELEASE_TO_RUBYGEMS_ORG
13
+ ```ruby
14
+ gem 'odysseus-core'
21
15
  ```
22
16
 
17
+ ## Overview
18
+
19
+ Odysseus Core provides the foundational components for Docker container deployment:
20
+
21
+ - **Configuration parsing** - YAML-based deploy.yml configuration
22
+ - **Docker client** - Container lifecycle management via SSH
23
+ - **Caddy client** - Reverse proxy configuration and routing
24
+ - **Deployer** - Zero-downtime deployment orchestration
25
+ - **Secrets** - Encrypted secrets file support
26
+
23
27
  ## Usage
24
28
 
25
- TODO: Write usage instructions here
29
+ This gem is primarily used by [odysseus-cli](https://rubygems.org/gems/odysseus-cli). For direct usage:
26
30
 
27
- ## Development
31
+ ```ruby
32
+ require 'odysseus'
28
33
 
29
- After checking out the repo, run `bin/setup` to install dependencies. Then, run `rake spec` to run the tests. You can also run `bin/console` for an interactive prompt that will allow you to experiment.
34
+ # Parse configuration
35
+ parser = Odysseus::Config::Parser.new('deploy.yml')
36
+ config = parser.parse
30
37
 
31
- To install this gem onto your local machine, run `bundle exec rake install`. To release a new version, update the version number in `version.rb`, and then run `bundle exec rake release`, which will create a git tag for the version, push git commits and the created tag, and push the `.gem` file to [rubygems.org](https://rubygems.org).
38
+ # Create executor
39
+ executor = Odysseus::Deployer::Executor.new('deploy.yml')
32
40
 
33
- ## Contributing
41
+ # Deploy
42
+ executor.deploy_all(image_tag: 'v1.0.0')
43
+ ```
34
44
 
35
- Bug reports and pull requests are welcome on GitHub at https://github.com/[USERNAME]/odysseus-core. This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the [code of conduct](https://github.com/[USERNAME]/odysseus-core/blob/trunk/CODE_OF_CONDUCT.md).
45
+ ## Components
36
46
 
37
- ## License
47
+ ### Odysseus::Config::Parser
38
48
 
39
- The gem is available as open source under the terms of the [MIT License](https://opensource.org/licenses/MIT).
49
+ Parses deploy.yml configuration files with support for:
50
+ - Server roles (web, jobs, workers)
51
+ - Proxy configuration (Caddy)
52
+ - Accessories (databases, Redis, etc.)
53
+ - Environment variables and secrets
54
+ - AWS Auto Scaling Group integration
40
55
 
41
- ## Code of Conduct
56
+ ### Odysseus::Docker::Client
57
+
58
+ Docker operations via SSH:
59
+ - Container lifecycle (run, stop, remove)
60
+ - Image management
61
+ - Health checks
62
+ - Log streaming
63
+
64
+ ### Odysseus::Caddy::Client
65
+
66
+ Caddy reverse proxy management:
67
+ - Dynamic upstream configuration
68
+ - Zero-downtime routing updates
69
+ - TLS certificate management
70
+
71
+ ### Odysseus::Deployer::Executor
72
+
73
+ Deployment orchestration:
74
+ - Build and distribute images
75
+ - Zero-downtime container replacement
76
+ - Health check verification
77
+ - Automatic rollback on failure
78
+
79
+ ### Odysseus::Secrets::EncryptedFile
80
+
81
+ Encrypted secrets management:
82
+ - AES-256-GCM encryption
83
+ - Environment variable injection
84
+ - Secure key management
85
+
86
+ ## License
42
87
 
43
- Everyone interacting in the Odysseus::Core project's codebases, issue trackers, chat rooms and mailing lists is expected to follow the [code of conduct](https://github.com/[USERNAME]/odysseus-core/blob/trunk/CODE_OF_CONDUCT.md).
88
+ LGPL-3.0-only
@@ -2,6 +2,6 @@
2
2
 
3
3
  module Odysseus
4
4
  module Core
5
- VERSION = "0.1.0"
5
+ VERSION = "0.2.0"
6
6
  end
7
7
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: odysseus-core
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.2.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Thomas