/* Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements. See the NOTICE file distributed with this work for additional information regarding copyright ownership. The ASF licenses this file to You under the Apache License, Version 2.0 (the “License”); you may not use this file except in compliance with the License. You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an “AS IS” BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. */
sudo apt-get install build-essential libssl-devThe following guide will explain how to run DevLake's frontend (config-ui) and backend in development mode.
Navigate to where you want to install this project and clone the repository:
git clone https://github.com/apache/incubator-devlake.git cd incubator-devlake
RefDiff plugin: Install Go packages
cd backend go get cd ..
Copy the example configuration file to a new local file:
cp env.example .env
Update the following variables in the .env file:
DB_URL: Replace mysql:3306 with 127.0.0.1:3306DISABLED_REMOTE_PLUGINS: Set to TrueThe Q Developer plugin requires AWS credentials with access to both S3 and IAM Identity Center:
Required AWS Permissions:
s3:GetObject, s3:ListBucket for the Q Developer data bucketidentitystore:DescribeUser for user display name resolutionRequired Configuration Fields:
d-xxxxxxxxxx)Make sure the Docker daemon is running before this step.
Grafana needs to rebuild the image, then change the image in docker-compose.datasources.yml to
image: grafana:latest
docker-compose -f docker-compose-dev.yml up -d mysql grafana
Run devlake and config-ui in development mode in two separate terminals:
# Install poetry, follow the guide: https://python-poetry.org/docs/#installation # Run devlake, only using the q dev plugin here DEVLAKE_PLUGINS=q_dev nohup make dev & # Run config-ui make configure-dev
For common errors, please refer to the troubleshooting documentation.
Config UI runs on localhost:4000