coolify
coolify copied to clipboard
[Bug]: Any private/public repo under VPN (local network IP git server) and custom git PORT
Description
There is a problem where a bug may be found. I can't clone a repository with a link like this [email protected]:20022/foo/bar.git
- The machine is located in a VPN, this IP is available on the host machine. Is there IP forwarding of the host machine's environment? The container must have something like the "--net=host" flag. PS: I don’t know where the repository is cloned for deployment, into a container or host machine.
- Does specifying a custom repository port work correctly? I don't see it in the logs.
In addition, in the Sources tab there is an incorrect source; if you specify the correct one, it will be incorrect in the deployment logs.
Minimal Reproduction (if possible, example repository)
Create Resource private repo with deploy key and specify [email protected]:20022/foo/bar.git
as source
Sorry, I can't describe the bug in more detail, please ask me if you need any special clarification.
Exception or Error
and after i set location
[email protected]:20022/foo/bar.git
in source tab
Version
71
One of my crazy ways that I would like to start working in coolify with a resource like Private Repository (with deploy key)
FROM node:18.18
RUN mkdir -m 700 /root/.ssh
# Save ssh key
ADD http://worldtimeapi.org/api/ip /time.tmp
ARG SSH_PRIVATE_KEY
RUN echo "$SSH_PRIVATE_KEY" > /root/.ssh/id_rsa
RUN chmod 600 /root/.ssh/id_rsa
RUN cat /root/.ssh/id_rsa
# Known host
RUN touch /root/.ssh/known_hosts && \
ssh-keyscan -p 20022 192.168.32.1 >> /root/.ssh/known_hosts
# No cache
ARG CACHEBUST=1
WORKDIR /app
RUN --mount=type=ssh git clone ssh://[email protected]:20022/foo/bar.git ././
COPY . .
RUN cd srv && npm install
CMD cd srv && npm run start
I just hit the same issue. @lortonx do you propose to create a Dockerfile based project as a workroud? I'm not sure if I understood this correctly.