Skip to content

Commit

Permalink
hotfix: everything is ok now :)
Browse files Browse the repository at this point in the history
  • Loading branch information
LeonardoMeireles55 committed Jan 26, 2025
1 parent 04abb06 commit cdfa1c6
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 13 deletions.
12 changes: 1 addition & 11 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -44,17 +44,7 @@ ENV PATH="${JAVA_HOME}/bin:${PATH}"
COPY --from=jre-builder /optimized-jdk-21 $JAVA_HOME

WORKDIR /usr/src/app
COPY --from=jre-builder /app/target/QualityLabPro-0.7.jar ./app.jar


# Get Gmail SMTP server certificate
RUN apk add --no-cache openssl && \
openssl s_client -connect smtp.gmail.com:587 -showcerts </dev/null 2>/dev/null | \
sed -ne '/-BEGIN CERTIFICATE-/,/-END CERTIFICATE-/p' > gmail.cert

# Import the certificate into the Java keystore
RUN keytool -import -alias smtp.gmail.com -keystore "$JAVA_HOME/lib/security/cacerts" -file gmail.cert -storepass changeit -noprompt

COPY --from=jre-builder /app/target/QualityLabPro-0.8.jar ./app.jar

ENV SPRING_PROFILES_ACTIVE=prod \
SERVER_PORT=8080
Expand Down
2 changes: 1 addition & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
</parent>
<groupId>leonardo.labutilities</groupId>
<artifactId>QualityLabPro</artifactId>
<version>0.7</version>
<version>0.8</version>
<name>QualityLabPro</name>
<description>Tool to assist in internal quality control of the clinical analysis laboratory.</description>
<properties>
Expand Down
2 changes: 1 addition & 1 deletion src/main/resources/application-prod.properties
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ spring.mail.port=587
spring.mail.username=${SPRING_MAIL_USERNAME}
spring.mail.password=${SPRING_MAIL_PASSWORD}
spring.mail.properties.mail.smtp.auth=true
spring.mail.properties.mail.smtp.starttls.enable=true
spring.mail.properties.mail.smtp.starttls.enable=false
spring.mail.properties.mail.smtp.ssl.trust=smtp.gmail.com
email.to.send.list=${EMAIL_TO_SEND_LIST}

Expand Down

0 comments on commit cdfa1c6

Please sign in to comment.