Docker build instructions
One of the build options is to run Starsky from a docker container
Using docker compose
- To get started clone the repository
git clone "https://github.com/qdraw/starsky.git"
-
Install Docker Desktop https://www.docker.com/products/docker-desktop
-
Go to the child directory
cd starsky
- Build with docker
docker compose build
- Enable containers
docker compose up
- Check if succeed
curl http://localhost:12837/api/health -X GET
Using classic docker CLI
- To get started clone the repository
git clone "https://github.com/qdraw/starsky.git"
-
Install Docker Desktop or the docker-cli https://www.docker.com/products/docker-desktop
-
Go to the child directory
cd starsky
- 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
- Run project
docker run -it --rm -p 8000:80 starsky
- list of active dockers
docker ps
docker exec -it d8094eb990de /bin/bash
- 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