Skip to content

Commit e42c767

Browse files
committed
fix(docker): pin rtk installer version
1 parent be85356 commit e42c767

3 files changed

Lines changed: 6 additions & 3 deletions

File tree

packages/app/src/lib/core/templates/dockerfile.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -94,11 +94,12 @@ RUN gemini --version`
9494
// COMPLEXITY: O(1)
9595
const renderDockerfileRtk = (): string =>
9696
`# Tooling: RTK (Rust Token Killer)
97+
ARG RTK_VERSION=v0.39.0
9798
RUN set -eu; \
9899
curl -fsSL --retry 5 --retry-all-errors --retry-delay 2 \
99100
https://raw.githubusercontent.com/rtk-ai/rtk/refs/heads/master/install.sh \
100101
-o /tmp/rtk-install.sh; \
101-
RTK_INSTALL_DIR=/usr/local/bin sh /tmp/rtk-install.sh; \
102+
RTK_VERSION="\${RTK_VERSION}" RTK_INSTALL_DIR=/usr/local/bin sh /tmp/rtk-install.sh; \
102103
rm -f /tmp/rtk-install.sh; \
103104
rtk --version; \
104105
rtk gain >/dev/null 2>&1 || true`

packages/lib/src/core/templates/dockerfile.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -94,11 +94,12 @@ RUN gemini --version`
9494
// COMPLEXITY: O(1)
9595
const renderDockerfileRtk = (): string =>
9696
`# Tooling: RTK (Rust Token Killer)
97+
ARG RTK_VERSION=v0.39.0
9798
RUN set -eu; \
9899
curl -fsSL --retry 5 --retry-all-errors --retry-delay 2 \
99100
https://raw.githubusercontent.com/rtk-ai/rtk/refs/heads/master/install.sh \
100101
-o /tmp/rtk-install.sh; \
101-
RTK_INSTALL_DIR=/usr/local/bin sh /tmp/rtk-install.sh; \
102+
RTK_VERSION="\${RTK_VERSION}" RTK_INSTALL_DIR=/usr/local/bin sh /tmp/rtk-install.sh; \
102103
rm -f /tmp/rtk-install.sh; \
103104
rtk --version; \
104105
rtk gain >/dev/null 2>&1 || true`

packages/lib/tests/core/templates.test.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,8 +66,9 @@ describe("renderDockerfile", () => {
6666
"glab --version",
6767
"ncurses-term jq",
6868
"# Tooling: RTK (Rust Token Killer)",
69+
"ARG RTK_VERSION=v0.39.0",
6970
"https://raw.githubusercontent.com/rtk-ai/rtk/refs/heads/master/install.sh",
70-
"RTK_INSTALL_DIR=/usr/local/bin sh /tmp/rtk-install.sh",
71+
'RTK_VERSION="${RTK_VERSION}" RTK_INSTALL_DIR=/usr/local/bin sh /tmp/rtk-install.sh',
7172
"rtk --version",
7273
"rtk gain >/dev/null 2>&1 || true",
7374
'ARG DOCKER_GIT_SESSION_SYNC_PACKAGE="@prover-coder-ai/docker-git-session-sync@latest"',

0 commit comments

Comments
 (0)