This commit is contained in:
init
2025-10-30 22:25:37 +08:00
repo.diff.parent 717a878e49
repo.diff.commit ffb6e55540
repo.diff.stats_desc%!(EXTRA int=2, int=2, int=2)

repo.diff.view_file

@@ -132,6 +132,7 @@ func CreateDevContainerByDockerCommand(ctx context.Context, newDevcontainer *dev
if err != nil {
return "", err
}
var imageName = configurationModel.Image
dockerSocket, err := docker_module.GetDockerSocketPath()
if err != nil {
@@ -287,7 +288,7 @@ func CreateDevContainerByDockerCommand(ctx context.Context, newDevcontainer *dev
Status: "waitting",
UserId: newDevcontainer.UserId,
RepoId: newDevcontainer.RepoId,
Command: `docker -H ` + dockerSocket + ` exec -it --workdir ` + newDevcontainer.DevcontainerWorkDir + "/" + repo.Name + ` ` + newDevcontainer.Name + ` sh -c "echo '$WEB_TERMINAL_HELLO';bash"` + "\n",
Command: `docker -H ` + dockerSocket + ` exec -it --workdir ` + newDevcontainer.DevcontainerWorkDir + "/" + repo.Name + ` ` + newDevcontainer.Name + ` sh -c 'echo "$WEB_TERMINAL_HELLO";bash'` + "\n",
ListId: 4,
DevcontainerId: newDevcontainer.Id,
}); err != nil {

repo.diff.view_file

@@ -25,7 +25,6 @@ case $DEVCONTAINER_STATUS in
;;
esac
git clone $RepoLink $WorkSpace
echo "\033[31mCreation completed. Please refresh the page to connect to the devcontainer\033[0m";
sh -c "tail -f /dev/null"
;;
*)