Skip to content

Commit

Permalink
Echo BUILDPLATFORM
Browse files Browse the repository at this point in the history
  • Loading branch information
huyennguyen-katalon committed Oct 1, 2024
1 parent e9b371c commit 3b8cc0c
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 2 deletions.
2 changes: 1 addition & 1 deletion build/build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,4 @@ ksversion=$1

docker buildx create --name mybuilder --use
docker buildx inspect --bootstrap
docker buildx build --platform linux/amd64,linux/arm64 -t katalon-katalon -f src/Dockerfile --build-arg KATALON_STUDIO_VERSION=$ksversion .
docker buildx build --output type=docker --platform linux/amd64,linux/arm64 -t katalon-katalon -f src/Dockerfile --build-arg KATALON_STUDIO_VERSION=$ksversion .
4 changes: 3 additions & 1 deletion src/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
FROM katalonstudio/ubuntu-20.04:490e137

# common environment variables
ARG BUILDPLATFORM
ARG TARGETPLATFORM
ARG KATALON_ROOT_DIR=/katalon
ARG KATALON_BASE_ROOT_DIR=$KATALON_ROOT_DIR/base
ENV KATALON_VERSION_FILE=$KATALON_ROOT_DIR/version
Expand Down Expand Up @@ -34,7 +36,7 @@ COPY ./src/scripts/setup.sh setup.sh
RUN chmod a+x setup.sh

# Main setup
RUN $KATALON_KATALON_SCRIPT_DIR/setup.sh
RUN $KATALON_KATALON_SCRIPT_DIR/setup.sh $BUILDPLATFORM $TARGETPLATFORM

# Set locale
ENV LANG C.UTF-8
Expand Down
5 changes: 5 additions & 0 deletions src/scripts/setup.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,11 @@

set -xe

BUILDPLATFORM=$1
TARGETPLATFORM=$2

echo BUILDPLATFORM

# symlink Google Chrome
symlink="/usr/bin/google-chrome"
if [ -L $symlink ]; then
Expand Down

0 comments on commit 3b8cc0c

Please sign in to comment.