Skip to content

Milesight-IoT/beaver-iot-docker

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Beaver IoT Docker

Requirements

  • Docker: Version 20.10 or higher

Deployment

Please refer to the deployment documentation

Build

Preparations

Navigate to the build-docker directory and create a .env configuration file:

touch build-docker/.env

Edit the .env configuration file with the following content:

# Load the build result to `docker images`
DOCKER_BUILD_OPTION_LOAD=true
# Docker registry and repository
DOCKER_REGISTRY=milesight
# Image tag
PRODUCTION_TAG=latest
# Git repository URLs and branches
WEB_GIT_REPO_URL=https://github.com/Milesight-IoT/beaver-iot-web.git
WEB_GIT_BRANCH=origin/main
API_GIT_REPO_URL=https://github.com/Milesight-IoT/beaver-iot.git
API_GIT_BRANCH=origin/main

The subsequent build steps will use the configurations in this file, whether you use build.sh or docker compose.

Building via Bash Script

Execute the build script to commence the build process:

./build-docker/build.sh

If you need to build only specific images, you can specify them using the --build-target parameter:

./build-docker/build.sh --build-target=beaver-iot,beaver-iot-web

For additional configuration options, use the --help option:

./build-docker/build.sh --help

Building via Docker Compose

If you don't have a Bash environment, you can build the images directly using the new version of Docker Compose:

cd build-docker && docker compose build --no-cache

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published