Hello, I'm trying to locally build and deploy Data...
# troubleshoot
b
Hello, I'm trying to locally build and deploy DataHub to a dev server for testing. I went through the instructions for the build process step-by-step indicated on this page and after building using
./gradlew build
and installing the local datahub cli to my $PATH using the commands listed on the page, I am receiving an error indicating that I cannot run the quickstart. Command Attempted:
./gradlew quickstart
Location of Command Attempted:
/home/test/datahub
(datahub root directory) Error: * What went wrong: Task 'quickstart' not found in root project 'datahub'. If anyone could assist, I would appreciate it. I've followed the instructions so I'm unclear as to what I am missing.
g
Let me understand. Are you building the images locally to start up a local/development deployment, right? If the answer is yes, you could just call directly the quickstart docker compose to start the environment. My advice is to create your own docker-compose file with your environment varibales. With that, you can simulate your production instance in a local/vm environment.
b
Hello Patrick! Thank you for jumping in on this one. I'll explain. I am performing some code changes to the code within datahub-web-react to add in a few cosmetic changes to the header. These changes are trivial but the intention is to make sure changes made are making it into the local build. After the changes are completed, I am running the build process (
./gradlew build
) to build and package the code. Once the code is compiled, I am running
./gradlew quickstart
to deploy the entire system with those included changes to datahub-frontend-react.
g
Oh, I understand. But I think that the recommended way is to do how they do with github actions: https://github.com/datahub-project/datahub/blob/master/.github/workflows/docker-unified.yml#L294 In my local environment, I'm running the following commands to build the frontend:
Copy code
./gradlew :datahub-frontend:dist -x test -x yarnTest -x yarnLint --parallel
mv ./datahub-frontend/build/distributions/datahub-frontend-*.zip datahub-frontend.zip
DOCKER_BUILDKIT=1 docker build --network host -t <your tag> -f ./docker/datahub-frontend/Dockerfile .
b
Thank you Patrick! I'll take a look at this and give it a try. teamwork
c
Mark, this is exactly what I am working on as well. I am attempting Patricks code block on my fedora environment as well.
Got the build to work and I am now able to login to datahub on localhost. Next step: Make some UI changes and make sure I can see them locally.
b
Same here @cuddly-butcher-39945! Glad it worked for you too 🙂