Skip to content

Commit

Permalink
feat(flake): fix tikv-explorer in devshell
Browse files Browse the repository at this point in the history
  • Loading branch information
johnbchron committed Nov 27, 2024
1 parent 81fb98a commit 3d56d06
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 6 deletions.
8 changes: 5 additions & 3 deletions flake-modules/devshell/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ localFlake: { ... }: {

dockerLoad = imagePath: "docker load -i ${imagePath}";
runEphemeralDocker = { imageName, imageVersion }: ''
docker run --rm --network host ${imageName}-server:${imageVersion}
docker run --rm --network host ${imageName}:${imageVersion}
'';
ephemeralDockerCommand = args @ { imagePath, imageName, imageVersion, ... }: {
# use the commandName argument if provided, otherwise default to the image name
Expand All @@ -25,13 +25,15 @@ localFlake: { ... }: {
tikv-docker-commands = [
( ephemeralDockerCommand {
imagePath = inputs'.rambit.images.tikv;
imageName = "tikv";
imageName = "tikv-server";
imageVersion = "8.1.1";
commandName = "run-tikv";
} )
( ephemeralDockerCommand {
imagePath = inputs'.rambit.images.pd;
imageName = "pd";
imageName = "pd-server";
imageVersion = "8.1.1";
commandName = "run-pd";
} )
( ephemeralDockerCommand {
imagePath = inputs'.tikv-explorer.packages.container;
Expand Down
6 changes: 3 additions & 3 deletions flake.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 3d56d06

Please sign in to comment.