fix: resolve heredoc parsing error in deploy-oci #7
Reference in New Issue
Block a user
Delete Branch "fix/deploy-oci-dockerfile"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
问题
Makefile 第 43 行用 heredoc 通过 SSH 生成 Dockerfile,但 make recipe 里行尾的
\是续行符,\n\这个组合导致整个 heredoc 被展开成一行传给远端 shell。远端收到的是<<DEOF\nFROM...,把DEOF\nFROM当成了 heredoc 结束符,所以报:修法
把内联的 Dockerfile 提取成独立的
Dockerfile.oci,直接scp过去,干净利落,不再有 heredoc 转义问题。