Skip to content

Commit

Permalink
Merge pull request #3543 from esl/mu-packages-built-in-podman
Browse files Browse the repository at this point in the history
Build packages without using volumes
  • Loading branch information
chrzaszcz authored Feb 17, 2022
2 parents 414cad3 + c1a1534 commit 8005e53
Showing 1 changed file with 6 additions and 2 deletions.
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}/"

0 comments on commit 8005e53

Please sign in to comment.