Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ Provides:
| `ibm_db v3.2.3` | ✔️ | ✔️ | ✔️ | ❌ |
| `libxcrypt-compat` | ✔️ | ✔️ | ✔️ | ✔️ |
| `cpio` | ✔️ | ✔️ | ✔️ | ✔️ |
| `db2u_migrate`. | ✔️ | ✔️ | ✔️ | ✔️ |

**Notes:**
- IBM Cloud `Container-Registry` plugin is supported on ppc64le, however the `Container-Service` plugin is not.
Expand Down
3 changes: 2 additions & 1 deletion image/cli-base/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,8 @@ RUN umask 0002 && \
bash -x /tmp/install/install-rclone.sh --target-platform $ARCHITECTURE && \
bash -x /tmp/install/install-aws.sh --target-platform $ARCHITECTURE && \
bash -x /tmp/install/install-rosa.sh --target-platform $ARCHITECTURE && \
bash -x /tmp/install/install-redis-cli.sh
bash -x /tmp/install/install-redis-cli.sh && \
bash -x /tmp/install/install-db2u-migrate.sh --target-platform $ARCHITECTURE

RUN rm -rf /tmp/install && \
rm -f /opt/app-root/src/.wget-hsts /opt/app-root/src/README.md /opt/app-root/src/LICENSE
Expand Down
Binary file added image/cli-base/install/bin/db2u_migrate-amd64
Binary file not shown.
Binary file added image/cli-base/install/bin/db2u_migrate-arm64
Binary file not shown.
Binary file added image/cli-base/install/bin/db2u_migrate-ppc64le
Binary file not shown.
Binary file added image/cli-base/install/bin/db2u_migrate-s390x
Binary file not shown.
33 changes: 33 additions & 0 deletions image/cli-base/install/install-db2u-migrate.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
#!/bin/bash

# Install IBM Pak oc addon
set -e
while [[ $# -gt 0 ]]
do
key="$1"

case $key in
--target-platform)
TARGET_PLATFORM="$2"
;;
*)
# unknown option, use as additional params directly to docker
EXTRA_PARAMS="$EXTRA_PARAMS $key $2"
;;
esac
shift
shift
done
#fallback to amd64 if architecture not defined
if [[ "$TARGET_PLATFORM" == "" ]]
then TARGET_PLATFORM=amd64
fi

mv /tmp/install/bin/db2u_migrate-$TARGET_PLATFORM /usr/local/bin/db2u_migrate
chmod +x /usr/local/bin/db2u_migrate

echo "uname -m"
uname -m

echo "db2u_migrate --help"
db2u_migrate --help
Loading