Local setup

Our local setup runs the same cloud version but locally. Great for privacy focused developer workflow.

Local setup

Our local setup runs the same cloud version but locally. Great for privacy focused developer workflow.

Local setup

Our local setup runs the same cloud version but locally. Great for privacy focused developer workflow.

Welcome to the local installation instructions for P0 on your local computer. Follow this guide to get set up with your own version of P0.

Pre-requisites:

To install P0 locally, you will need the following:

  1. A Linux or Unix box

    • Recommended: Ubuntu 22.04 (LTS), CentOS 7 or Higher

  2. Spare memory of 4+ GB

  3. Docker, Docker-Compose 2.23+ and JRE 17+

    • Script will automatically install above softwares, if not already detected for the current user

  4. The root file-path of your code - which needs to be scanned, needs to be present on machine on which installation is done, which is local .git repo or clone of a git repository.

  5. The machine should be able to access the internet, we access below domains:

    1. gpt.tech.goharbor.com

    2. *.p0.inc

    3. *.posthog.com

Installation Steps:

Install locally
  1. You can directly execute the script from our S3 URL:

curl -o- "https://p0-public-bucket.s3.ap-south-1.amazonaws.com/localSetup/p0-platform.sh" | bash

Optionally, You can download the script using wget, review and execute:

wget "https://p0-public-bucket.s3.ap-south-1.amazonaws.com/localSetup/p0-platform.sh"
bash ./p0-platform.sh
  1. The script will detect if docker and JRE 17 or higher is present. Otherwise it will download and install them.

  2. Once the install script completes, you will be given a URL through which you should be able to login and use p0 platform.

Screenshot of your command line when if all goes right, it will give you the URL of your local setup

Install on common server or cloud VM:

In order to install on a common server or cloud VM, You will need to optionally pass a domain name or IP address (Public or Private) on the installation website will be accessed.

curl -o- "https://p0-public-bucket.s3.ap-south-1.amazonaws.com/localSetup/p0-platform.sh" | bash -s -- --domain=10.25.12.34

in above case 10.25.12.34 represents your internal/external IP, which you would visit in your browser.

Update to latest version

Local version: In order to update your local version to latest application, you can run the below command:

curl -o- "https://p0-public-bucket.s3.ap-south-1.amazonaws.com/localSetup/p0-platform.sh" | bash -s -- --update

Server version: In order to update your application deployed on common version or cloud VM, you can run the below command:

curl -o- "https://p0-public-bucket.s3.ap-south-1.amazonaws.com/localSetup/p0-platform.sh" | bash -s -- --domain=10.25.12.34 --update
Restart your local app

Stopping and starting your P0 installation is very simple. In your repository run the following command to stop your installation:

docker-compose down

When you want to start your installation again, run:

docker-compose up

If you remove the volumes via docker-compose, then your test results will be erased. 

Contact us

If you are facing any trouble setting up the application locally, reach out to us at contact@p0.inc

© 2024 p

0

. All rights reserved.

/

© 2024 p

0

. All rights reserved.

/

© 2024 p

0

. All rights reserved.