Also, where does airbyte store the sources/connect...
# contributing-to-airbyte
s
Also, where does airbyte store the sources/connection data? I looked into the postgres database and couldn't find it
u
they are in the docker volume
u
we store these configurations on disk
u
I think chis wrote about it. Let me find the tutorial
u
Copy code
docker run -it --rm --volume airbyte_data:/data busybox
u
this one is about the workspace but the logic is the same
u
if you mount airbyte_data, then you can look at the configs and export them
u
also one thing
u
in the UI you can actually export everything about airbyte
u
got it, i understand now
u
so what i'm missing is the volumes when running gradlew
u
it wont launch because there's no data for it to load, in this case, the default workspace
u
ohhh I get it!
u
hum, let me think
u
i'm running gradlew in my host OS, not the container - is that what's expected when developing locally?
u
It was at some point. I wonder if we just killed it at some point
u
@Jared Rhizor (Airbyte) I think when we removed the dev dockercompose, we broke that right?
u
it’s still looking at a non-docker location, right?
u
yes
u
to fix we’d need to have the initialization run
u
@Samuel Gordalina FYI, we used to not use volumes in dev mode. but now we do. That is why it is breaking
u
that's fine
u
do you mount the volumes before running the gradlew locally?
u
One thing you can do right now is
u
• copy the content of the volume config directory locally • in the `dev.env`: modify CONFIG_ROOT to where you copied the config • Re-run the server with gradle
u
Or
u
you can just re-build the image everytime you want to test and stop/start the container (docker-compose stop server && docker-compose start server or smth like that)
u
ok - testing now
u
does gradlew read the
.env
file?
u
no
u
the .env.dev
u
but I think you should change it to be .env
u
Damn my bad we broke that piece!
u
no worries about it
u
i'm still having the same issue
u
i think somehow the server doesn't read CONFIG_ROOT?
u
the error says null in config root
u
2021-03-04 224755 INFO i.a.s.ServerApp(main):171 - {workspace_app_root=null/workspace/server/logs} - configRoot = null/data
u
looks like it’s looking for
DEV_ROOT
and mapping that to
CONFIG_ROOT
u
so actually can you do the following:
Copy code
DEV_ROOT=/tmp/sam
mkdir -p $DEV_ROOT/workspace
mv path_to_data $DEV_ROOT
# add DEV_ROOT=/tmp/sam into env.dev
u
its working
u
it complained about
AIRBYTE_VERSION
not being set (its being set as
VERSION
) in .env.dev
u
thank you 🙏
u
Copy code
# setup
DEV_ROOT=/tmp/sam
rm -fr $DEV_ROOT
mkdir -p $DEV_ROOT/workspace
docker cp airbyte-server:/data $DEV_ROOT

# run
AIRBYTE_VERSION=dev DEV_ROOT=/tmp/sam ./gradlew :airbyte-server:run
u
wonderful!!!