Ruby 4.0.9, in the image and the flake
All checks were successful
Tests / test (push) Successful in 32s
All checks were successful
Tests / test (push) Successful in 32s
Same move as asxpio: ruby:4.0.9-slim-bookworm and nixpkgs' ruby_4_0 (4.0.9) for the tests; BUNDLE_WITHOUT instead of Bundler 4's removed --without; Puma started through bundle exec, so the lockfile picks the gems and not Ruby 4's newer defaults (asxpio crash-looped on bigdecimal 4.0.1 without it). Lockfile stays BUNDLED WITH 2.7.2. Checked on ops with the production env, as a separate container: boots to Listening on Ruby 4.0.9 and serves / (302, as production does). Assisted-by: Claude:opus-5-5
This commit is contained in:
parent
b3ca46fc51
commit
8410238cb6
4 changed files with 9 additions and 8 deletions
|
|
@ -1,4 +1,4 @@
|
|||
FROM ruby:3.4.12-slim-bookworm
|
||||
FROM ruby:4.0.9-slim-bookworm
|
||||
|
||||
RUN apt-get update && apt-get install -y --no-install-recommends \
|
||||
build-essential \
|
||||
|
|
@ -16,7 +16,8 @@ ENV PATH="${GEM_HOME}/bin:${PATH}"
|
|||
|
||||
COPY --chown=bingo Gemfile Gemfile.lock* ./
|
||||
ENV BUNDLE_FROZEN=true
|
||||
RUN bundle install --without development:test
|
||||
ENV BUNDLE_WITHOUT=development:test
|
||||
RUN bundle install
|
||||
|
||||
COPY --chown=bingo . .
|
||||
|
||||
|
|
@ -29,4 +30,4 @@ EXPOSE 3000
|
|||
HEALTHCHECK --interval=30s --timeout=5s --start-period=20s --retries=3 \
|
||||
CMD ruby -rnet/http -e 'port = ENV.fetch("PUMA_PORT", "3000"); exit(Net::HTTP.get_response(URI("http://127.0.0.1:#{port}/healthz")).code == "200" ? 0 : 1)'
|
||||
|
||||
CMD ["sh", "-c", "exec puma -b tcp://0.0.0.0:${PUMA_PORT} -t ${PUMA_THREADS} --preload"]
|
||||
CMD ["sh", "-c", "exec bundle exec puma -b tcp://0.0.0.0:${PUMA_PORT} -t ${PUMA_THREADS} --preload"]
|
||||
|
|
|
|||
|
|
@ -127,7 +127,7 @@ DEPENDENCIES
|
|||
sinatra (~> 4.2)
|
||||
|
||||
RUBY VERSION
|
||||
ruby 3.4.9p82
|
||||
ruby 4.0.9p0
|
||||
|
||||
BUNDLED WITH
|
||||
2.7.2
|
||||
|
|
|
|||
6
flake.lock
generated
6
flake.lock
generated
|
|
@ -2,11 +2,11 @@
|
|||
"nodes": {
|
||||
"nixpkgs": {
|
||||
"locked": {
|
||||
"lastModified": 1777578337,
|
||||
"narHash": "sha256-Ad49moKWeXtKBJNy2ebiTQUEgdLyvGmTeykAQ9xM+Z4=",
|
||||
"lastModified": 1794386569,
|
||||
"narHash": "sha256-x9sADJvoVG0L6RejZB+/BB4YiGZFBZrfTlhF4uBq1tQ=",
|
||||
"owner": "NixOS",
|
||||
"repo": "nixpkgs",
|
||||
"rev": "15f4ee454b1dce334612fa6843b3e05cf546efab",
|
||||
"rev": "d4f25a3e562008648d45bcf2d70bcc7422cad84e",
|
||||
"type": "github"
|
||||
},
|
||||
"original": {
|
||||
|
|
|
|||
|
|
@ -13,7 +13,7 @@
|
|||
{
|
||||
devShells.${system}.default = pkgs.mkShell {
|
||||
buildInputs = [
|
||||
pkgs.ruby_3_4
|
||||
pkgs.ruby_4_0
|
||||
pkgs.bundler
|
||||
pkgs.openssl
|
||||
pkgs.zlib
|
||||
|
|
|
|||
Loading…
Reference in a new issue