DEV Community

Nedim Hadzimahmutovic
Nedim Hadzimahmutovic

Posted on

Howto build Rootspace locally with buildx and bake

Lately, we have experimented with building Docker images for Rootspace with Docker buildx and bake since there is a great need to support multiple architectures.

It is a significant improvements to the Docker build process as you create a build file definition and just invoke the build process.

To start the project locally please follow the steps below.

  • Clone the project
git clone git@github.com:clearview/rootspace.git
Enter fullscreen mode Exit fullscreen mode
  • Build the images locally
docker buildx bake local --load
Enter fullscreen mode Exit fullscreen mode
  • Check if the images have been built
docker image ls | grep root
Enter fullscreen mode Exit fullscreen mode
  • Copy the .env files
cp .env.example .env && cp api/.env.example api/.env && cp web/.env.example web/.env
Enter fullscreen mode Exit fullscreen mode
  • Start the docker-compose local version
docker compose -f docker-compose.yml -f docker-compose-local.yml up --force-recreate
Enter fullscreen mode Exit fullscreen mode

The project should be up.

Top comments (0)