diff --git a/dockerfiles/alpine/obam/Dockerfile b/dockerfiles/alpine/obam/Dockerfile index 6426b02..7f0765c 100644 --- a/dockerfiles/alpine/obam/Dockerfile +++ b/dockerfiles/alpine/obam/Dockerfile @@ -90,7 +90,7 @@ RUN if [ -n "$WSO2_OB_KEYSTORES_URL" ]; then wget -O private-keys.jks "${WSO2_OB # read deployment.toml file ARG DEPLOYMENT_TOML_FILE=${WSO2_OB_ACCELERATOR_DIR}/repository/resources/deployment.toml RUN \ - cp ${WSO2_OB_ACCELERATOR_DIR}/repository/resources/wso2am-4.0.0-deployment.toml ${DEPLOYMENT_TOML_FILE} \ + cp ${WSO2_OB_ACCELERATOR_DIR}/repository/resources/${WSO2_SERVER}-deployment.toml ${DEPLOYMENT_TOML_FILE} \ # configure hostnames && sed -i -e 's|IS_HOSTNAME|'${IS_HOSTNAME}'|g' ${DEPLOYMENT_TOML_FILE} \ && sed -i -e 's|APIM_HOSTNAME|'${APIM_HOSTNAME}'|g' ${DEPLOYMENT_TOML_FILE} \ diff --git a/dockerfiles/alpine/obam/README.md b/dockerfiles/alpine/obam/README.md index 1024e8b..21c8feb 100644 --- a/dockerfiles/alpine/obam/README.md +++ b/dockerfiles/alpine/obam/README.md @@ -6,7 +6,7 @@ This section defines the step-by-step instructions to build an [Alpine](https:// * [Docker](https://www.docker.com/get-docker) v20.10.10 or above * [Git](https://git-scm.com/book/en/v2/Getting-Started-Installing-Git) client * WSO2 Open Banking API Manager Accelerator Module pack downloaded through [WSO2 Updates 2.0](https://ob.docs.wso2.com/en/latest/install-and-setup/setting-up-servers/) -* Zip archive file of the Open Banking root and issuer certificates. +* Zip archive file of the Open Banking root and issuer certificates. > Download the root and issuer [certificates](https://openbanking.atlassian.net/wiki/spaces/DZ/pages/252018873/OB+Root+and+Issuing+Certificates+for+Sandbox). > Rename the `OB_SandBox_PP_Root.cer` as `root.cer`. > Rename the `OB_SandBox_PP_Issuing.cer` as `iss.cer`. @@ -33,9 +33,9 @@ git clone https://github.com/wso2/docker-open-banking.git - Navigate to `` directory.
Execute `docker build` command as shown below. - + `docker build --build-arg WSO2_OB_ACCELERATOR_DIST_URL= --build-arg OB_TRUSTED_CERTS_URL= --build-arg WSO2_OB_KEYSTORES_URL= -t wso2-obam:3.0.0-alpine .`
- > eg:- **Hosted locally**: `docker build --build-arg WSO2_OB_ACCELERATOR_DIST_URL=http://localhost:8000/wso2-obam-accelerator-3.0.0.tar.gz --build-arg OB_TRUSTED_CERTS_URL=http://localhost:8000/ob-cert.zip --build-arg WSO2_OB_KEYSTORES_URL=https://github.com/wso2/docker-open-banking/raw/v3.0.0.10/dockerfiles/keystores -t wso2-obam:3.0.0-alpine .`

- > eg:- **Hosted remotely**: `docker build --build-arg WSO2_OB_ACCELERATOR_DIST_URL=http:///wso2-obam-accelerator-3.0.0.tar.gz --build-arg OB_TRUSTED_CERTS_URL=http:///ob-cert.zip --build-arg WSO2_OB_KEYSTORES_URL=https://github.com/wso2/docker-open-banking/raw/v3.0.0.10/dockerfiles/keystores -t wso2-obam:3.0.0-alpine .` + + `docker build --build-arg BASE_PRODUCT_VERSION= --build-arg WSO2_OB_ACCELERATOR_DIST_URL= --build-arg OB_TRUSTED_CERTS_URL= --build-arg WSO2_OB_KEYSTORES_URL= -t wso2-obam:3.0.0-alpine .`
+ > eg:- **Hosted locally**: `docker build --build-arg BASE_PRODUCT_VERSION=4.2.0 --build-arg WSO2_OB_ACCELERATOR_DIST_URL=http://localhost:8000/wso2-obam-accelerator-3.0.0.tar.gz --build-arg OB_TRUSTED_CERTS_URL=http://localhost:8000/ob-cert.zip --build-arg WSO2_OB_KEYSTORES_URL=https://github.com/wso2/docker-open-banking/raw/v3.0.0.10/dockerfiles/keystores -t wso2-obam:3.0.0-alpine .`

+ > eg:- **Hosted remotely**: `docker build --build-arg BASE_PRODUCT_VERSION=4.2.0 --build-arg WSO2_OB_ACCELERATOR_DIST_URL=http:///wso2-obam-accelerator-3.0.0.tar.gz --build-arg OB_TRUSTED_CERTS_URL=http:///ob-cert.zip --build-arg WSO2_OB_KEYSTORES_URL=https://github.com/wso2/docker-open-banking/raw/v3.0.0.10/dockerfiles/keystores -t wso2-obam:3.0.0-alpine .` ##### 3. Running the Docker image. @@ -44,8 +44,8 @@ git clone https://github.com/wso2/docker-open-banking.git ##### 4. Accessing management console. - To access the management console, use the docker host IP and port 9443. - + `https::9443/carbon` - + + `https::9443/carbon` + > In here, refers to hostname or IP of the host machine on top of which containers are spawned. ## How to update configurations diff --git a/dockerfiles/alpine/obiam/Dockerfile b/dockerfiles/alpine/obiam/Dockerfile index f919662..895b83e 100644 --- a/dockerfiles/alpine/obiam/Dockerfile +++ b/dockerfiles/alpine/obiam/Dockerfile @@ -90,7 +90,7 @@ RUN if [ -n "$WSO2_OB_KEYSTORES_URL" ]; then wget -O private-keys.jks "${WSO2_OB # read deployment.toml file ARG DEPLOYMENT_TOML_FILE=${WSO2_OB_ACCELERATOR_DIR}/repository/resources/deployment.toml RUN \ - cp ${WSO2_OB_ACCELERATOR_DIR}/repository/resources/wso2is-5.11.0-deployment.toml ${DEPLOYMENT_TOML_FILE} \ + cp ${WSO2_OB_ACCELERATOR_DIR}/repository/resources/${WSO2_SERVER}-deployment.toml ${DEPLOYMENT_TOML_FILE} \ # configure hostnames && sed -i -e 's|IS_HOSTNAME|'${IS_HOSTNAME}'|g' ${DEPLOYMENT_TOML_FILE} \ && sed -i -e 's|APIM_HOSTNAME|'${APIM_HOSTNAME}'|g' ${DEPLOYMENT_TOML_FILE} \ diff --git a/dockerfiles/ubuntu/obam/Dockerfile b/dockerfiles/ubuntu/obam/Dockerfile index 8d6fca0..ddf44b0 100644 --- a/dockerfiles/ubuntu/obam/Dockerfile +++ b/dockerfiles/ubuntu/obam/Dockerfile @@ -96,7 +96,7 @@ RUN if [ -n "$WSO2_OB_KEYSTORES_URL" ]; then wget -O private-keys.jks "${WSO2_OB # read deployment.toml file ARG DEPLOYMENT_TOML_FILE=${WSO2_OB_ACCELERATOR_DIR}/repository/resources/deployment.toml RUN \ - cp ${WSO2_OB_ACCELERATOR_DIR}/repository/resources/wso2am-4.0.0-deployment.toml ${DEPLOYMENT_TOML_FILE} \ + cp ${WSO2_OB_ACCELERATOR_DIR}/repository/resources/${WSO2_SERVER}-deployment.toml ${DEPLOYMENT_TOML_FILE} \ # configure hostnames && sed -i -e 's|IS_HOSTNAME|'${IS_HOSTNAME}'|g' ${DEPLOYMENT_TOML_FILE} \ && sed -i -e 's|APIM_HOSTNAME|'${APIM_HOSTNAME}'|g' ${DEPLOYMENT_TOML_FILE} \ diff --git a/dockerfiles/ubuntu/obiam/Dockerfile b/dockerfiles/ubuntu/obiam/Dockerfile index 7786dd5..6edc7d5 100644 --- a/dockerfiles/ubuntu/obiam/Dockerfile +++ b/dockerfiles/ubuntu/obiam/Dockerfile @@ -89,7 +89,7 @@ RUN if [ -n "$WSO2_OB_KEYSTORES_URL" ]; then wget -O private-keys.jks "${WSO2_OB # read deployment.toml file ARG DEPLOYMENT_TOML_FILE=${WSO2_OB_ACCELERATOR_DIR}/repository/resources/deployment.toml RUN \ - cp ${WSO2_OB_ACCELERATOR_DIR}/repository/resources/wso2is-5.11.0-deployment.toml ${DEPLOYMENT_TOML_FILE} \ + cp ${WSO2_OB_ACCELERATOR_DIR}/repository/resources/${WSO2_SERVER}-deployment.toml ${DEPLOYMENT_TOML_FILE} \ # configure hostnames && sed -i -e 's|IS_HOSTNAME|'${IS_HOSTNAME}'|g' ${DEPLOYMENT_TOML_FILE} \ && sed -i -e 's|APIM_HOSTNAME|'${APIM_HOSTNAME}'|g' ${DEPLOYMENT_TOML_FILE} \