Howto build Rootspace locally with buildx and bake
Nedim Hadzimahmutovic

Nedim Hadzimahmutovic @nedtechie

About: With a nearly two-decade-long career, Nedim has gained expertise in infrastructure automation. He is an expert in all things DevOps-related. He specializes in the AWS platform, Linux, and Terraform.

Location:
Sarajevo / Jakarta
Joined:
Nov 15, 2017

Howto build Rootspace locally with buildx and bake

Publish Date: Mar 26 '23
0 0

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.

Comments 0 total

    Add comment