Skip to main content

Docker build instructions

< readme

One of the build options is to run Starsky from a docker container

Using docker compose

  1. To get started clone the repository
git clone "https://github.com/qdraw/starsky.git"
  1. Install Docker Desktop https://www.docker.com/products/docker-desktop

  2. Go to the child directory

cd starsky
  1. Build with docker
docker compose build
  1. Enable containers
docker compose up
  1. Check if succeed
curl http://localhost:12837/api/health -X GET

Using classic docker CLI

  1. To get started clone the repository
git clone "https://github.com/qdraw/starsky.git"
  1. Install Docker Desktop or the docker-cli https://www.docker.com/products/docker-desktop

  2. Go to the child directory

cd starsky
  1. Build project
export DOCKER_BUILDKIT=0
docker build -t starsky .

Optional: Build Starsky with demo user and demo content

docker build -t starsky . --build-arg ISDEMO=true
  1. Run project
docker run -it --rm -p 8000:80 starsky
  1. list of active dockers
docker ps
docker exec -it d8094eb990de /bin/bash
  1. And check if it runs
curl http://localhost:8000/api/health -X GET

Docker buildX for multi-arch

cd /root_of_repo
docker buildx build --push starsky --tag qdraw/starsky:latest --platform linux/arm64,linux/arm/v7