Skip to content

Commit 2084164

Browse files
committed
fix(controller): include message to avoid confusion building the component
1 parent 91164f6 commit 2084164

2 files changed

Lines changed: 8 additions & 1 deletion

File tree

controller/Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,4 +22,4 @@ WORKDIR /app
2222

2323
ADD . /app
2424

25-
RUN /app/build.sh
25+
RUN DOCKER_BUILD=true /app/build.sh

controller/build.sh

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,12 @@
11
#!/usr/bin/env bash
22

3+
if [[ -z $DOCKER_BUILD ]]; then
4+
echo
5+
echo "Note: this script is intended for use by the Dockerfile and not as a way to build the controller locally"
6+
echo
7+
exit 1
8+
fi
9+
310
DEBIAN_FRONTEND=noninteractive
411

512
# install required system packages

0 commit comments

Comments
 (0)