Open kabicin opened 1 year ago
Tested using jimmy1wu/sample-cognito by adding ARG SKIP_SSO_FEATURE_INSTALL=true
before feature install.
FROM maven AS builder
WORKDIR /usr/src/app
COPY pom.xml .
COPY src src
RUN mvn package
FROM icr.io/appcafe/open-liberty:kernel-slim-java11-openj9-ubi
COPY --chown=1001:0 --from=builder /usr/src/app/src/main/liberty/config /config
ARG TLS=true
ARG SEC_SSO_PROVIDERS="oidc"
ARG SKIP_SSO_FEATURE_INSTALL=true
ENV SEC_TLS_TRUSTDEFAULTCERTS=true
ENV SEC_IMPORT_K8S_CERTS=true
RUN features.sh
COPY --chown=1001:0 --from=builder /usr/src/app/target/sample-cognito.war /config/apps
RUN configure.sh
Launching defaultServer (Open Liberty 23.0.0.5/wlp-1.0.77.cl230520230514-1901) on Eclipse OpenJ9 VM, version 11.0.19+7 (en_US)
[AUDIT ] CWWKE0001I: The server defaultServer has been launched.
[AUDIT ] CWWKG0093A: Processing configuration drop-ins resource: /opt/ol/wlp/usr/servers/defaultServer/configDropins/defaults/keystore.xml
[AUDIT ] CWWKG0093A: Processing configuration drop-ins resource: /opt/ol/wlp/usr/servers/defaultServer/configDropins/defaults/open-default-port.xml
[AUDIT ] CWWKG0093A: Processing configuration drop-ins resource: /opt/ol/wlp/usr/servers/defaultServer/configDropins/defaults/sso-oidc.xml
[AUDIT ] CWWKG0093A: Processing configuration drop-ins resource: /opt/ol/wlp/usr/servers/defaultServer/configDropins/overrides/tls.xml
[AUDIT ] CWWKG0093A: Processing configuration drop-ins resource: /opt/ol/wlp/usr/servers/defaultServer/configDropins/overrides/trustDefault.xml
[AUDIT ] CWWKZ0058I: Monitoring dropins for applications.
[AUDIT ] CWWKT0016I: Web application available (default_host): http://0d020a18e35c:9080/oauth2/
[AUDIT ] CWWKT0016I: Web application available (default_host): http://0d020a18e35c:9080/ibm/api/social-login/
[AUDIT ] CWWKT0016I: Web application available (default_host): http://0d020a18e35c:9080/jwt/
[AUDIT ] CWWKT0016I: Web application available (default_host): http://0d020a18e35c:9080/
[AUDIT ] CWWKZ0001I: Application sample-cognito started in 0.541 seconds.
[AUDIT ] CWWKF0012I: The server installed the following features: [appSecurity-4.0, cdi-3.0, distributedMap-1.0, expressionLanguage-4.0, federatedRegistry-1.0, jndi-1.0, json-1.0, jsonp-2.0, jwt-1.0, ldapRegistry-3.0, oauth-2.0, pages-3.0, servlet-5.0, socialLogin-1.0, ssl-1.0, transportSecurity-1.0].
[AUDIT ] CWWKF0011I: The defaultServer server is ready to run a smarter planet. The defaultServer server started in 3.313 seconds.
Fixes https://github.com/OpenLiberty/ci.docker/issues/389