-
Notifications
You must be signed in to change notification settings - Fork 3
devenv: Add opencode and rsync, drop duplicate code #56
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
This file was deleted.
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,7 +1,7 @@ | ||
| # These aren't packages, just low-dependency binaries dropped in /usr/local/bin | ||
| # so we can fetch them independently in a separate build. | ||
| ARG base=docker.io/library/debian:sid | ||
| FROM $base as base | ||
|
Check warning on line 4 in devenv/Containerfile.debian
|
||
| # Life is too short to care about dash | ||
| RUN ln -sfr /bin/bash /bin/sh | ||
| RUN <<EORUN | ||
|
|
@@ -25,7 +25,7 @@ | |
| apt -y update | ||
| EORUN | ||
|
|
||
| FROM base as tools | ||
|
Check warning on line 28 in devenv/Containerfile.debian
|
||
| # renovate: datasource=github-releases depName=block/goose | ||
| ARG gooseversion=v1.11.1 | ||
| # renovate: datasource=github-releases depName=bootc-dev/bcvk | ||
|
|
@@ -58,7 +58,7 @@ | |
| fi | ||
| EORUN | ||
|
|
||
| FROM base as rust | ||
|
Check warning on line 61 in devenv/Containerfile.debian
|
||
| RUN <<EORUN | ||
| set -xeuo pipefail | ||
| # Setup rust; the idea here though is we install system-wide into /usr/local | ||
|
|
@@ -84,6 +84,8 @@ | |
| grep -vEe '^#' build-deps-debian.txt | /bin/time -f '%E %C' xargs apt -y build-dep | ||
| apt clean && rm -rf /var/lib/apt/lists/* | ||
| EORUN | ||
| COPY npm.txt /run/src | ||
| RUN grep -vEe '^#' npm.txt | /bin/time -f '%E %C' xargs npm i -g | ||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. |
||
|
|
||
| # Copy in the binaries from our tools container image | ||
| COPY --from=tools /usr/local/bin/* /usr/local/bin/ | ||
|
|
||
This file was deleted.
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,2 @@ | ||
| # renovate: datasource=npm depName=opencode-ai | ||
| opencode-ai@1.0.163 |
This file was deleted.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
For robustness, it's a good practice to use the
--no-run-if-empty(or-r) flag withxargs. This preventsxargsfrom runningnpm i -gifnpm.txtis empty or contains only comments, which avoids an unnecessary command execution.