Skip to content

Commit

Permalink
Add wraper for build the package with docker
Browse files Browse the repository at this point in the history
- Also extract the .deb generated files
  • Loading branch information
lennyhans committed Jun 23, 2022
1 parent 080e921 commit 1f0445b
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions docker-package.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
CONTAINER_NAME=7kaa-debian-build
CONTAINER_VERSION=0.1.0
CONTAINER=${CONTAINER_NAME}:${CONTAINER_VERSION}

if [ -z $1 ]
then
FILE=dockerfile.packaging.bullseye
else
FILE=$1
fi

CONTAINER_TAG_NAME=$(echo $FILE | awk '{print $2-$3}' FS='.')
docker build . -t ${CONTAINER}-${CONTAINER_TAG_NAME} -f $FILE && \
docker cp \
$(docker create --rm $CONTAINER-${CONTAINER_TAG_NAME}):/app/ \
output

0 comments on commit 1f0445b

Please sign in to comment.