Skip to content

Commit

Permalink
[MOSIP-29095]
Browse files Browse the repository at this point in the history
Signed-off-by: Keshav Mishra <chandrakeshavmishra@gmail.com>
  • Loading branch information
ckm007 committed Sep 29, 2023
1 parent eceb8a7 commit 2152063
Showing 1 changed file with 21 additions and 1 deletion.
22 changes: 21 additions & 1 deletion biosdk-services/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -9,13 +9,33 @@ ARG active_profile
# can be passed during Docker build as build time environment for config server URL
ARG spring_config_url

# can be passed during Docker build as build time environment for application name
ARG spring_application_name

# can be passed during Docker build as build time environment for config name
ARG spring_cloud_config_name

# can be passed during Docker build as build time environment for context path
ARG server_servlet_context-path

# environment variable to pass github branch to pickup configuration from, at docker runtime
ENV spring_config_label_env=${spring_config_label}

# environment variable to pass active profile such as DEV, QA etc at docker runtime
ENV active_profile_env=${active_profile}

# environment variable to pass spring configuration url, at docker runtime
ENV spring_config_url_env=${spring_config_url}

# environment variable to pass spring application name, at docker runtime
ENV spring_application_name_env=${spring_application_name}

# environment variable to pass spring config name, at docker runtime
ENV spring_cloud_config_name_env=${spring_cloud_config_name}

# environment variable to pass spring context path , at docker runtime
ENV server_servlet_context-path_env=${server_servlet_context-path}

ARG biosdk_zip_url

ENV biosdk_zip_file_path=${biosdk_zip_url}
Expand Down Expand Up @@ -85,4 +105,4 @@ EXPOSE 9099
ENTRYPOINT [ "./configure_biosdk.sh" ]

CMD echo $biosdk_bioapi_impl ; \
java -Dloader.path="${loader_path_env}" -Dbiosdk_bioapi_impl="${biosdk_bioapi_impl}" -Dserver.servlet.context-path="${service_context_env}" -Dlogging.level.root=${logging_level_root_env} -jar -Dspring.cloud.config.label="${spring_config_label_env}" -Dspring.profiles.active="${active_profile_env}" -Dspring.cloud.config.uri="${spring_config_url_env}" biosdk-services.jar
java -Dloader.path="${loader_path_env}" -Dbiosdk_bioapi_impl="${biosdk_bioapi_impl}" -Dserver.servlet.context-path="${service_context_env}" -Dlogging.level.root=${logging_level_root_env} -jar -Dspring.cloud.config.label="${spring_config_label_env}" -Dspring.profiles.active="${active_profile_env}" -Dspring.application.name="${spring_application_name_env}" -Dspring.cloud.config.name=${spring_cloud_config_name_env} -Dserver.servlet.context-path=${server_servlet_context-path_env} -Dspring.cloud.config.uri="${spring_config_url_env}" biosdk-services.jar

0 comments on commit 2152063

Please sign in to comment.