Hi, we need to run custom transformation inside ai...
# replication-troubleshooting
m
Hi, we need to run custom transformation inside airgapped on premise network, but we don't have access to GitHub, and azure repository we have access within network is not accepted. Are there any ways around it ? (url on screenshot just to show azure repository address format)
🙌 1
m
@Maxim Titov normalization should work fine using any valid git repository: https://github.com/airbytehq/airbyte/blob/140e0964c8b44e8f3687580b2edc30557d751151/airbyte-integrations/bases/base-normalization/entrypoint.sh#L[…]1 what problem you have using azure repo?
d
Thank you, Marcos, for the reply. In the provided screenshot by maxim, you can see it doesn't identify the URL as a valid GitHub repo. I believe something with the regex. Actually, even setting that (after you help us sort this out) is not optimal. Is there a way to set up a local git repo? Because we work on a local air-gapped system, we prefer to work without needing to submit requests outside the network, if possible.
m
hm… does the azure repo end with .git? If not definitely the front end is applying some rules to validate the URL.
image.png
m
Yep, azure actually uses url parameters to adress files, like *?p=/<file_path> Is there some workaround to provide local file ? May be even mount a volume to container with repository and providing file:// link to .git ?
The best practice for us is to have a local git repo, as we are an on-prem air-gapped system
m
Unfortunately I don’t there is a workaround for this… Maybe try to use another git repo to save the custom transformation and after edit the Git URL directly in the database 😈. It will work if you can clone the repo using
git GIT_URL
though
d
Hi Marcos, I'm not sure I follow. Do you recommend to change airbyte's code? as the current regex looks for a website, and doesn't work with azure repo, I'm not sure I understand the solution. In terms of prioritization for us is 1. work with local repo 2. work with azure. As of now, none work. Do you have an idea? Thanks:)
u
The correct solution is: open a Github issue to request front end team to improve the regex. A workaround is: use another valid git url and after update the database entry
d
Hi Marcos, maybe the thing we don't understand is what is a valid git url?
like put there a bogus github repo
and then
we will have a way to edit it to another link?
@Maxim Titov Can you (in parallel) open a request to the front-end team? @Marcos Marx (Airbyte) Do you think that if we will drop the regex completely, we could point it to a local git repo as well? (in localhost)
m
m
Exactly Maxim! Thanks
d
The person that opened the issue downgraded to a lower version for now (really old:) Marcos, you mentioned putting a github repo, and then alter the path in the database. Can you explain what you meant? where this database is being placed? we would try this
u
I left a comment with a guide how to "hack" and use a non valid git repo address.
d
Thank you! That is really kind of you to help in this one. @Maxim Titov
m
I tried it, but I am having trouble to connect to db container, it gives me this error
Copy code
psql: error: FATAL: role "root" does not exist
d
Hi @Marcos Marx (Airbyte), just to be clear, I also tried, and the question is, how did you get that airbyte DB shell? what was the connection string? (how did you alter the github to azure)
u
I updated my comment Dvir/Maxim please check it.
d
We are trying to make it work. Unfortunately, this is doesn't work with local git repo. Do you maybe have a hack for a local git repo? it would be super helpful for us.
u
Unfortunately I'm limited to the method I proposed there.
d
Do you believe there is a solution for local git?
can we get around git at all?
do you think there is someone else we can consult?
Marcos, any context that you might provide would help us tremendously
m
As far I read the code @Dvir Ginzburg Airbyte must be able to reach the address and be able to copy the git repo.