luo 0.1.10 → 0.1.12

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.
Files changed (5) hide show
  1. checksums.yaml +4 -4
  2. data/Dockerfile +28 -2
  3. data/Gemfile.lock +1 -1
  4. data/lib/luo/version.rb +1 -1
  5. metadata +1 -1
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 1830a5e907eb9c92fe84162093cc7c46fa7f1970b07c58b120114dba73499e47
4
- data.tar.gz: 609ec33cce3365b956494f1446983924a03c5341ed5be8d350575d3303a250a6
3
+ metadata.gz: 77a0bf646d6a4228c12569c3256d35aece77795d605c131ae9c64297876ecb20
4
+ data.tar.gz: 5f505d4172a8e8bfb5622e6a2f62b4623159aa2c84d1f9dbb6a62f4f83a658a8
5
5
  SHA512:
6
- metadata.gz: ef9266fbe51fa277369abbe012e531cd07df5b6141af538fb4f934fc591821530440d2ff58bef00accd7e9827bfbc24858f503a616bd765e24a2aea31e9e7bda
7
- data.tar.gz: c2bf5ddf9f16d7640bd52c35f259fd86d4211f1a995890e3c2151cf2a097b8b54bb060be524b3d91bbd0d61fbf3cfe082366d2e6ad48b5c63d46a3a2aeceb0a4
6
+ metadata.gz: 48c09a778e4264b0990e3b8f385c8668734ea407bb05ed5a00d8eb4d054d3070330f0d42f0a549dde3c7a801436257758f7bb60a67ed627560612b7ab9ad325a
7
+ data.tar.gz: bc11220737dea1d27fcd135146bfd04e53bedc1617607253cf65c8de5abf9a9736f707126316106c46880cd46f996ee3cf21cc36e2caf31e5be2809fc48b891e
data/Dockerfile CHANGED
@@ -1,7 +1,33 @@
1
1
  FROM ruby:3.2.2-alpine
2
2
 
3
- # Install dependencies
4
- RUN gem install luo
3
+ # Install docker/buildx-bin
4
+ COPY --from=docker/buildx-bin /buildx /usr/libexec/docker/cli-plugins/docker-buildx
5
+
6
+ # Set the working directory to /luo
7
+ WORKDIR /luo
8
+
9
+ # Copy the Gemfile, Gemfile.lock into the container
10
+ COPY Gemfile Gemfile.lock luo.gemspec ./
11
+
12
+ # Required in luo.gemspec
13
+ COPY lib/luo/version.rb /luo/lib/luo/version.rb
14
+
15
+ # Install system dependencies
16
+ RUN apk add --no-cache --update build-base git docker openrc openssh-client-default \
17
+ && rc-update add docker boot \
18
+ && gem install bundler --version=2.4.3 \
19
+ && bundle install
20
+
21
+ # Copy the rest of our application code into the container.
22
+ # We do this after bundle install, to avoid having to run bundle
23
+ # everytime we do small fixes in the source code.
24
+ COPY . .
25
+
26
+ # Install the gem locally from the project folder
27
+ RUN gem build luo.gemspec && \
28
+ gem install ./luo-*.gem --no-document
29
+
30
+ RUN git config --global --add safe.directory /workdir
5
31
 
6
32
  WORKDIR /workdir
7
33
 
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- luo (0.1.9)
4
+ luo (0.1.12)
5
5
  dotenv (~> 2.8, >= 2.8.1)
6
6
  dry-cli (~> 1.0)
7
7
  dry-configurable (~> 1.0, >= 1.0.1)
data/lib/luo/version.rb CHANGED
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Luo
4
- VERSION = "0.1.10"
4
+ VERSION = "0.1.12"
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: luo
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.10
4
+ version: 0.1.12
5
5
  platform: ruby
6
6
  authors:
7
7
  - MJ