Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[MOSIP-31575] Updated docker file. #1868

Closed
wants to merge 42 commits into from
Closed
Changes from 1 commit
Commits
Show all changes
42 commits
Select commit Hold shift + click to select a range
139a2e2
Update push-trigger.yml
abhishek8shankar Apr 3, 2024
f2a2b4e
[MOSIP-31575] Updated docker file.
abhishek8shankar Apr 3, 2024
c7dbcf0
[MOSIP-31575] Updated docker file.
abhishek8shankar Apr 3, 2024
f1a3069
[MOSIP-31575] Updated docker file.
abhishek8shankar Apr 3, 2024
9658a2f
[MOSIP-31575] Updated docker file.
abhishek8shankar Apr 3, 2024
1552cbf
[MOSIP-31575] Updated docker-not-used file.
abhishek8shankar Apr 3, 2024
63c7abe
[MOSIP-31575] Update Dockerfile-not-used
abhishek8shankar Apr 3, 2024
2434f27
[MOSIP-31575] Update Dockerfile-not-used
abhishek8shankar Apr 3, 2024
d4093f0
[MOSIP-31575] Update Dockerfile-not-used
abhishek8shankar Apr 3, 2024
c9bd13d
[MOSIP-31575] Update Dockerfile-not-used
abhishek8shankar Apr 3, 2024
d2af992
[MOSIP-31575] Update Dockerfile-not-used
abhishek8shankar Apr 3, 2024
b9a157a
[MOSIP-31575] Updated docker file.
abhishek8shankar Apr 3, 2024
d890954
[MOSIP-31575] Updated docker file.
abhishek8shankar Apr 3, 2024
b7595d0
[MOSIP-31575] Updated docker file.
abhishek8shankar Apr 3, 2024
2e3f5a9
[MOSIP-31575] Updated docker file.
abhishek8shankar Apr 3, 2024
5615f33
[MOSIP-31575] Updated docker file.
abhishek8shankar Apr 3, 2024
58cd0a7
[MOSIP-31575] Updated docker file.
abhishek8shankar Apr 3, 2024
5ee54ca
[MOSIP-31575] Updated docker file.
abhishek8shankar Apr 3, 2024
c75993c
[MOSIP-31575] Updated docker file.
abhishek8shankar Apr 3, 2024
e045a7a
[MOSIP-31575] Updated docker file.
abhishek8shankar Apr 3, 2024
4e30841
[MOSIP-31575] Updated docker file.
abhishek8shankar Apr 3, 2024
d22c2e2
[MOSIP-31575] Updated docker file.
abhishek8shankar Apr 3, 2024
7c2c4c1
Update push-trigger.yml
abhishek8shankar Apr 3, 2024
1246cb2
[MOSIP-31575] Updated docker file.
abhishek8shankar Apr 4, 2024
1df51ae
[MOSIP-31575] Updated docker file.
abhishek8shankar Apr 4, 2024
5ccfd44
[MOSIP-31575] Updated docker file.
abhishek8shankar Apr 4, 2024
f9cf683
[MOSIP-31575] Updated docker file.
abhishek8shankar Apr 4, 2024
0083ea3
[MOSIP-31575] Updated docker file.
abhishek8shankar Apr 4, 2024
883081d
[MOSIP-31575] Update Dockerfile-not-used
abhishek8shankar Apr 4, 2024
e2416b4
[MOSIP-31575] Update Dockerfile-not-used
abhishek8shankar Apr 4, 2024
c96a80b
[MOSIP-31575] Updated docker file.
abhishek8shankar Apr 4, 2024
03765a8
[MOSIP-31575] Update Dockerfile-not-used
abhishek8shankar Apr 4, 2024
5f0286f
[MOSIP-31575] Updated docker file.
abhishek8shankar Apr 4, 2024
ead5534
[MOSIP-31575] Update Dockerfile-not-used
abhishek8shankar Apr 4, 2024
308f733
[MOSIP-31575] Update Dockerfile-not-used
abhishek8shankar Apr 4, 2024
f10445c
[MOSIP-31575] Updated docker file.
abhishek8shankar Apr 4, 2024
a05e263
[MOSIP-31575] Updated docker file.
abhishek8shankar Apr 4, 2024
64c1d9d
[MOSIP-31575] Updated docker file.
abhishek8shankar Apr 5, 2024
2206407
[MOSIP-31575] Updated docker file.
abhishek8shankar Apr 5, 2024
db205c1
[MOSIP-31575] Updated docker file.
abhishek8shankar Apr 5, 2024
7883739
[MOSIP-31575] Updated docker file.
abhishek8shankar Apr 12, 2024
c1bdee6
[MOSIP-31575] Updated docker file.
abhishek8shankar Apr 12, 2024
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
Prev Previous commit
Next Next commit
[MOSIP-31575] Update Dockerfile-not-used
Signed-off-by: abhishek8shankar <127825992+abhishek8shankar@users.noreply.github.com>
abhishek8shankar authored Apr 3, 2024
commit 2434f276ccca83fe1833268cbb2dec156e61db1c
Original file line number Diff line number Diff line change
@@ -3,42 +3,33 @@ FROM openjdk:11
#Uncomment below and Comment above line(i.e. FROM openjdk:8) for OS specific (e.g. Alpine OS ) docker base image
#FROM openjdk:8-jdk-alpine

# can be passed during Docker build as build time environment for github branch to pickup configuration from.
ARG spring_config_label

# can be passed during Docker build as build time environment for spring profiles active
# can be passed during Docker build as build time environment for github branch to pickup configuration from | spring profiles active | config server URL | glowroot and artifactory URL respectively .
ARG spring_config_label
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 glowroot
ARG spring_config_url
ARG is_glowroot

# can be passed during Docker build as build time environment for artifactory URL
ARG artifactory_url

# environment variable to pass active profile such as DEV, QA etc at docker runtime
# environment variable to pass active profile such as DEV, QA etc at docker runtime | github branch to pickup configuration from, at docker runtime | spring configuration url, at docker runtime | glowroot, at docker runtime | artifactory url, at docker runtime and iam_adapter url, at docker runtime, respectively.
ENV active_profile_env=${active_profile}

# 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 github branch to pickup configuration from, at docker runtime
ENV spring_config_label_env=${spring_config_label}

# environment variable to pass glowroot, at docker runtime
ENV spring_config_url_env=${spring_config_url}
ENV is_glowroot_env=${is_glowroot}

# environment variable to pass artifactory url, at docker runtime
ENV artifactory_url_env=${artifactory_url}

ARG container_user=mosip
ARG container_user_group=mosip
ARG container_user_uid=1001
ARG container_user_gid=1001
WORKDIR /home/${container_user}
RUN chown -R ${container_user}:${container_user} /home/${container_user}
USER ${container_user_uid}:${container_user_gid}

# change volume to whichever storage directory you want to use for this container.
VOLUME /home/logs /home/ftp1/LANDING_ZONE /home/ftp1/ARCHIVE_PACKET_LOCATION

COPY ./target/registration-processor-packet-uploader-stage-*.jar registration-processor-packet-uploader-stage.jar


CMD if [ "$is_glowroot_env" = "present" ]; then \
wget "${artifactory_url_env}"/artifactory/libs-release-local/io/mosip/testing/glowroot.zip ; \
apt-get update && apt-get install -y unzip ; \
@@ -51,6 +42,4 @@ CMD if [ "$is_glowroot_env" = "present" ]; then \
java -Dspring.cloud.config.label="${spring_config_label_env}" -Dspring.profiles.active="${active_profile_env}" -Dspring.cloud.config.uri="${spring_config_url_env}" -jar registration-processor-packet-uploader-stage.jar ; \
fi


#CMD ["java","-Dspring.cloud.config.label=${spring_config_label_env}","-Dspring.profiles.active=${active_profile_env}","-Dspring.cloud.config.uri=${spring_config_url_env}","-jar","registration-processor-packet-uploader-stage.jar"]