3 Commits

Author SHA1 Message Date
8c9f654f57 remove rubocop
All checks were successful
Gitea Actions Demo / lint (push) Successful in 31s
Gitea Actions Demo / test (push) Successful in 2m42s
Gitea Actions Demo / release-image (push) Has been skipped
2025-03-24 11:19:42 -05:00
469931faca add devcontainer 2025-03-24 11:17:05 -05:00
7883107bdf create a new method for inferring the PPID
Some checks failed
Gitea Actions Demo / release-image (push) Blocked by required conditions
Gitea Actions Demo / lint (push) Successful in 2m34s
Gitea Actions Demo / test (push) Has been cancelled
2025-03-24 11:16:03 -05:00
6 changed files with 35 additions and 12 deletions

View File

@@ -5,7 +5,7 @@ services:
context: .
dockerfile: Dockerfile
volumes:
- ..:/workspace:cached
- ..:/workspace
command: sleep infinity
memcached:
image: memcached:latest

4
.gitignore vendored
View File

@@ -1,3 +1,5 @@
.bundle
.cache
.local
.ruby-lsp
/vendor
.ash_history

View File

@@ -1,9 +0,0 @@
{
"[ruby]": {
"editor.defaultFormatter": "Shopify.ruby-lsp"
},
"rubyLsp.formatter": "standard",
"rubyLsp.linters": [
"standard"
],
}

View File

@@ -9,6 +9,8 @@ RUN <<EOT
apk upgrade --no-cache
EOT
RUN mkdir -p /run/app
FROM base AS build
@@ -23,12 +25,25 @@ RUN <<EOT
bundle install
EOT
FROM build AS dev
WORKDIR /app
RUN <<EOT
bundle install
EOT
CMD [ "sleep", "infinity" ]
FROM base
# RUN useradd ruby --home /app --shell /bin/sh
RUN adduser ruby -h /app -D
RUN mkdir -p /run/app
RUN chown ruby:ruby /run/app
USER ruby:ruby
COPY --from=build /usr/local/bundle /usr/local/bundle

View File

@@ -148,4 +148,4 @@ DEPENDENCIES
uuid7
BUNDLED WITH
2.6.6
2.5.13

15
docker-compose.yml Normal file
View File

@@ -0,0 +1,15 @@
services:
web:
build:
context: .
target: dev
ports:
- "4567:4567"
volumes:
- .:/app
environment:
{}
# WEB_CONCURRENCY: 3
command:
- sleep
- infinity