Model menus, modal edit and layout improvements
Some checks failed
/ Run tests (push) Successful in 2m44s
/ Run system tests (push) Failing after 2m43s
/ Build, push and deploy image (push) Successful in 4m3s

This commit is contained in:
david 2024-11-23 19:10:09 +01:00
parent 7b0f05a448
commit 70500c49a1
35 changed files with 1079 additions and 148 deletions

View file

@ -24,7 +24,9 @@ ENV \
RAILS_ENV=development \
TZ=Europe/Zurich \
PATH=${INSTALL_DIR}/bin:$GEM_HOME/bin:$GEM_HOME/gems/bin:$PATH \
EDITOR=vim
EDITOR=vim \
RUBY_DEBUG_DAP_SHOW_PROTOCOL=1 \
RUBY_DEBUG_OPEN=true
RUN \
ln -snf /usr/share/zoneinfo/$TZ /etc/localtime && \
@ -49,7 +51,11 @@ RUN \
apt-get install -yqq --no-install-recommends \
sqlite3 nodejs npm sassc yarn libvips fish ranger pandoc libjemalloc2 && \
apt-get clean && \
npm install tabby-agent && \
npm i -g tabby-agent \
vscode-langservers-extracted \
dockerfile-language-server-nodejs \
@microsoft/compose-language-service \
yaml-language-server@next && \
rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/* && \
truncate -s 0 /var/log/*log && \
gem update --system && \
@ -62,8 +68,6 @@ RUN curl -L https://github.com/helix-editor/helix/releases/download/${HELIX_VERS
tar -xf /tmp/helix.tar.xz && \
ln -s /opt/helix-${HELIX_VERSION}-x86_64-linux/hx /usr/local/bin chmod +x /usr/local/bin/
USER ${NAME}
RUN mkdir -p ~/.config/fish ~/.config/helix
COPY <<FISH /home/app/.config/fish/config.fish
@ -85,9 +89,39 @@ COPY <<LANGS /home/app/.config/helix/languages.toml
name = "ruby"
shebangs = ["ruby"]
roots = ["Gemfile.lock"]
language-servers = [ "ruby-lsp" ]
language-servers = [ "ruby-lsp", "rubocop" ,{ name = "solargraph", except-features = [ "format", "diagnostics" ] }]
auto-format = true
[language.debugger]
command = "rdbg"
args =["-o", "-c"]
name = "debug"
transport = "tcp"
port-arg = "-p {}"
[[language.debugger.templates]]
name = "attach"
request = "attach"
completion = [ "pid" ]
args = { attachCommands = ["rdbg --attach {0}"] }
[[language.debugger.templates]]
name = "launch server"
request = "launch"
completion = [ { name = "entrypoint", completion = "filename", default = "dev" } ]
args = { program = "{0}" }
[language-server.solargraph]
command = "solargraph"
args = ["stdio"]
config = { diagnostics = false, formatting = false }
[language-server.rubocop]
command = "rubocop"
args = ["--lsp", "--stderr", "--fail-level", "fatal"]
timeout = 3
[language-server.ruby-lsp]
command = "ruby-lsp"
args = ["--debug"]
@ -95,13 +129,17 @@ args = ["--debug"]
LANGS
COPY <<CONF /home/app/.config/helix/config.toml
theme = "gruvbox_dark_hard"
theme = "dark_plus"
[editor]
true-color = true
CONF
RUN chown 1000:1000 -R /home/app
USER ${NAME}
CMD ["/usr/bin/fish", "-l"]
FROM ruby:${RUBY_VERSION}-alpine AS builder