Skip to content

Commit

Permalink
Update new docker build of demos structure
Browse files Browse the repository at this point in the history
  • Loading branch information
cruizba committed Sep 21, 2022
1 parent d510582 commit e363553
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 4 deletions.
2 changes: 1 addition & 1 deletion docker/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ COPY ./src src

RUN cd src/angular/frontend && \
npm install && \
./node_modules/@angular/cli/bin/ng build --output-path ../../main/resources/static
npx ng build --output-path ../../main/resources/static


FROM maven:3.6.3 as backend-build
Expand Down
9 changes: 6 additions & 3 deletions docker/create_image.sh
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
#!/bin/bash
if [ $# -eq 0 ]; then
echo "No version argument provided. Usage: \"./create_image.sh X.Y.Z\""
exit 1
fi

pushd ../
export SOFTWARE_VERSION=$(grep -oPm1 "(?<=<version>)[^<]+" "pom.xml")

docker build -f docker/Dockerfile -t openvidu/openvidu-classroom-demo .
docker tag openvidu/openvidu-classroom-demo:latest openvidu/openvidu-classroom-demo:$SOFTWARE_VERSION
docker build -f docker/Dockerfile -t openvidu/openvidu-classroom-demo:"${1}" .

0 comments on commit e363553

Please sign in to comment.