Skip to content
This repository has been archived by the owner on Jan 29, 2024. It is now read-only.

[KEYCLOAK-5482] Change xslt transformations to jboss-cli commands #85

Closed
wants to merge 9 commits into from

Conversation

baztan106483
Copy link

RUN /opt/jboss/keycloak/bin/jboss-cli.sh --file=/opt/jboss/keycloak/change-database.txt; \
sed -i -e 's/standalone/standalone-ha/' /opt/jboss/keycloak/change-database.txt; \
/opt/jboss/keycloak/bin/jboss-cli.sh --file=/opt/jboss/keycloak/change-database.txt;
RUN rm -rf /opt/jboss/keycloak/standalone/configuration/standalone_xml_history/current/*; \
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It's a best practice to merge RUNs to avoid adding extra layers if possible. Second run will shade out files but they will still be present on fs layer from previous run.

New docker versions have support for COPY --from=... for multi-stage builds but I'm not sure if DockerHub has support for this feature yet, it was only presented on DockerCon'17.

Disclaimer: I'm not a Keycloak developer.

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you Konstantin, we will consider your advices,
Greetings

sed -i -e 's/standalone/standalone-ha/' /opt/jboss/keycloak/change-database.txt; \
/opt/jboss/keycloak/bin/jboss-cli.sh --file=/opt/jboss/keycloak/change-database.txt;

RUN rm -rf /opt/jboss/keycloak/standalone/configuration/standalone_xml_history/current/*; \
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Same as above

@grossws
Copy link

grossws commented Sep 22, 2017

@baztan106483, thanks. Let's wait for review from Keycloak devs

@stianst
Copy link
Contributor

stianst commented Oct 3, 2017

Thanks for the PR.

We just merged support for MySQL and PostgreSQL directly in the main server image so I've sent a new PR with this work that is refactored to work with those changes. #87

@stianst stianst self-assigned this Oct 3, 2017
@stianst
Copy link
Contributor

stianst commented Oct 3, 2017

Closing - merged as part of #87

@stianst stianst closed this Oct 3, 2017
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants