Skip to content

Commit

Permalink
Change mapping of external folders to copying them to the docker image
Browse files Browse the repository at this point in the history
Signed-off-by: Steve Pham <[email protected]>
  • Loading branch information
spham-amzn committed Apr 7, 2024
1 parent faf4b58 commit 61d37c5
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 4 deletions.
2 changes: 2 additions & 0 deletions package-system/pyside2/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -77,5 +77,7 @@ ARG CACHEBUST=1

COPY ${DOCKER_BUILD_SCRIPT} /data/workspace/
COPY src /data/workspace/src/
COPY ${PYTHON_FOLDER_NAME} /data/workspace/${PYTHON_FOLDER_NAME}/
COPY ${QT_FOLDER_NAME} /data/workspace/${QT_FOLDER_NAME}/

ENTRYPOINT ["/bin/bash"]
4 changes: 2 additions & 2 deletions package-system/pyside2/build-linux.sh
Original file line number Diff line number Diff line change
Expand Up @@ -80,8 +80,8 @@ fi

# Run the Docker Image
echo "Running build script in the docker image"
echo docker run -v $TEMP_FOLDER/src:/data/workspace/src -v $TEMP_FOLDER/$QT_FOLDER_NAME:/data/workspace/$QT_FOLDER_NAME -v $TEMP_FOLDER/$PYTHON_FOLDER_NAME:/data/workspace/$PYTHON_FOLDER_NAME --tty ${DOCKER_IMAGE_NAME}:latest /data/workspace/$DOCKER_BUILD_SCRIPT
docker run -v $TEMP_FOLDER/$QT_FOLDER_NAME:/data/workspace/$QT_FOLDER_NAME -v $TEMP_FOLDER/$PYTHON_FOLDER_NAME:/data/workspace/$PYTHON_FOLDER_NAME --tty ${DOCKER_IMAGE_NAME}:latest /data/workspace/$DOCKER_BUILD_SCRIPT
echo docker run -it --tty ${DOCKER_IMAGE_NAME}:latest /data/workspace/$DOCKER_BUILD_SCRIPT
docker run --tty ${DOCKER_IMAGE_NAME}:latest /data/workspace/$DOCKER_BUILD_SCRIPT
if [ $? -ne 0 ]
then
echo Failed to build from docker image ${DOCKER_IMAGE_NAME}:latest
Expand Down
4 changes: 2 additions & 2 deletions package-system/pyside2/docker_build_linux.sh
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ echo "Using Qt at ${DEP_QT_BASE}"
LOCAL_PYTHON3_BIN=${DEP_PYTHON_BASE}/python/bin/python3
if [ ! -f $LOCAL_PYTHON3_BIN ]
then
echo "Required local 3P python not detected"
echo "Required local 3P python not detected at ${LOCAL_PYTHON3_BIN}"
exit 1
fi

Expand All @@ -31,7 +31,7 @@ LOCAL_3P_QTBUILD_QMAKE_PATH=`readlink -f $LOCAL_3P_QTBUILD_PATH/bin/qmake`
LOCAL_3P_QTBUILD_LIB_PATH=`readlink -f $LOCAL_3P_QTBUILD_PATH/lib`
if [ ! -f "$LOCAL_3P_QTBUILD_QMAKE_PATH" ]
then
echo "Missing 3P dependency of Qt $LOCAL_3P_QTBUILD_PATH"
echo "Missing 3P dependency of Qt ${LOCAL_3P_QTBUILD_PATH}"
echo
exit 1
fi
Expand Down

0 comments on commit 61d37c5

Please sign in to comment.