Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Build packages without using volumes #3543

Merged
merged 1 commit into from
Feb 17, 2022
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 6 additions & 2 deletions tools/pkg/build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,11 @@ docker build -t mongooseim-${platform}:${version}-${revision} \
-f ${dockerfile_path} \
$context_path

docker rm -f mongooseim-pkg-container &>/dev/null || echo "ok"

# Run ready docker image with tested mongooseim package and move it to
# built packages directory
docker run --rm -v "${built_packages_directory}:/built_packages" \
"mongooseim-${platform}:${version}-${revision}"
docker run --name=mongooseim-pkg-container "mongooseim-${platform}:${version}-${revision}"
# Dot is like /*, but for docker.
# Moves all files in the directory.
docker cp "mongooseim-pkg-container:/built_packages/." "${built_packages_directory}/"