Skip to content
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

heredoc makes Skaffold abort #9472

Open
AndreasBergmeier6176 opened this issue Jul 10, 2024 · 0 comments
Open

heredoc makes Skaffold abort #9472

AndreasBergmeier6176 opened this issue Jul 10, 2024 · 0 comments

Comments

@AndreasBergmeier6176
Copy link
Contributor

Expected behavior

Should just build, since docker build works fine

Actual behavior

Checking cache...
 - foo/tcp-proxy: Error checking cache.
getting hash for artifact "foo/tcp-proxy": getting dependencies for "foo/tcp-proxy": file pattern [<<EOF] must match at least one file

Information

FROM alpine

RUN apk add --update bash socat

COPY <<"EOF" /usr/local/bin/tcp-proxy
if [ "$#" -ne 2 ]; then
    echo "usage: "bash /usr/local/bin/tcp-proxy host port"
    exit 1
fi
HOST="$1"
PORT="$2"
LISTEN_PORT=${LISTEN_PORT:-${PORT}}
echo "relay TCP/IP connections on :${LISTEN_PORT} to ${HOST}:${PORT}"
exec socat TCP-LISTEN:${LISTEN_PORT},fork,reuseaddr TCP:${HOST}:${PORT}
EOF

ENTRYPOINT ["bash", "/usr/local/bin/tcp-proxy"]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant