Skip to content
Merged
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@ RUN yum -y install gzip tar && \
tar -xvf master.tar.gz

# Creating another stage for sharding extension creation
# hadolint ignore=DL3006
FROM ${BASE_IMAGE}
# Extn name
ARG EXTENSION_NAME=sharding
Expand Down Expand Up @@ -61,7 +62,7 @@ RUN if test -e "$ORACLE_BASE/$RUN_FILE.orig"; then EXTN='extended'; else EXTN='o
mv "$ORACLE_BASE/$RUN_FILE" "$ORACLE_BASE/$RUN_FILE.$EXTN"

# Copy updated scripts for sharding support
COPY --chown=oracle:dba --from=downloader /tmp/db-sharding-master/docker-based-sharding-deployment/dockerfiles/${BASE_IMAGE_VERSION}/scripts/* $ORACLE_BASE/scripts/sharding/
COPY --chown=oracle:dba --from=downloader /tmp/db-sharding-master/container-based-sharding-deployment/containerfiles/scripts/* $ORACLE_BASE/scripts/sharding/
RUN mv "$ORACLE_BASE/scripts/sharding/$RUN_FILE" "$ORACLE_BASE/$RUN_FILE.$EXTENSION_NAME"

# Set perms and append a call to main runOracle
Expand Down
6 changes: 3 additions & 3 deletions OracleDatabase/SingleInstance/extensions/sharding/README.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# The Sharding Extension
The sharding extension is required to build the catalog and shard containers. When
the SingleInstance container image is extended with the **sharding** extension, it downloads the
required scripts from [db-sharding/docker-based-sharding-deployment](https://github.com/oracle/db-sharding/tree/master/docker-based-sharding-deployment)
the SingleInstance container image is extended with the **sharding** extension, it downloads the
required scripts from [db-sharding/container-based-sharding-deployment](https://github.com/oracle/db-sharding/tree/master/container-based-sharding-deployment)
repository, and packages them with the SingleInstance container image to form an extended image.

More information on catalog and shard containers can be found at `db-sharding/docker-based-sharding-deployment` [README](https://github.com/oracle/db-sharding/blob/master/docker-based-sharding-deployment/README.md).
More information on catalog and shard containers can be found at `db-sharding/container-based-sharding-deployment` [README](https://github.com/oracle/db-sharding/blob/master/container-based-sharding-deployment/README.md).