I'm trying to configure a dockerized Keycloak server from a startup script I put on:
/opt/jboss/startup-scripts
I found the CLI commands description to add properties as well as some other examples but don't know which properties must I add/modify in order to, for example, add a realm to Keycloak.
Is there a complete listing of Keycloak configurable properties anywhere?
The Keycloak Docker image supports execution of two types of scripts mouted to /opt/jboss/startup-scripts:
WildFly .cli scripts.
Any executable (chmod +x) script
Due to your links I assume you are interrested in the WildFly scripts.
I do not think that there is a complete listing of configurable properties for the WildFly application server used by the Keycloak Docker image. But you can Get all configuration and runtime details from CLI.
If you want to add a realm to Keycloak you can use the KEYCLOAK_IMPORT environment variable as described on the Keycloak Docker image page at "Importing a realm".
Related
Following the guide over here:
https://sap.github.io/cloud-sdk/docs/java/guides/logging-overview#logging-overview
I am trying to use CF CLI cf set-env command to change the logs levels at runtime.
This commands executes successfully and the log levels are only changed when I do a cf restage srv or cf restart srv. srv is the name of my application.
Is there any alternative where I don't have to stop the cf application and still be able to change the log levels at runtime?
No, I think in order to reload the setting from environment variables a reload is required.
You could instead implement a new endpoint in your application where you set the log level programatically. But that depends on the logging framework you are using. E.g. for Logback this can be done as described here.
i want to use the "Mock Server" feature provided with https://restbird.org/ .
When starting restbird via the provided docker image, it listens on localhost:8080 by default.
Unfortunately the configured "Mock Server" instances still need to be started via the Web Frontend as it is described in the documentation here:
https://restbird.org/docs/mock-run.html#run-mock-server
Is there a way to automatically start the "Mock Server" instances when running the docker image without logging in into the backend (via admin/admin) and clicking the "start" button ?
Reason is, i want to start the mock server inside a gitlab pipeline where i have no further interaction possibilities after the container has been started.
I can not find anything like this in the documentation.
Thanks a lot for any clues - or if it is not possible i cam make a feature request.
I have found the solution myself. One can start a specific Mock Server as described in:
https://restbird.org/docs/API-MockServer.html#start-specific-mockserver-case
This can be scripted into my pipeline after executing the docker run command.
I'm trying to deploy an infinisppan cluster (2 machines) using the domain mode. But I can't find any working example of domain.xml and host.xml config file.
This cluster would be used by keycloak as a cache server
Any luck one of you already work on this ?
You need to download infinispan 9.4.14 (or any 9.4) and start the bin/domain.sh [bat] script.
That's it you have a running domain with two servers.
If you want to add a second machine you need to copy the server and start the domain script by passing "--host-config=host-slave.xml" also you need to set "jboss.domain.master.address=" with "-D" to let the process know where the domain master is.
Anothe option is to move host-slave.xml-->host.xml and edit the domain-controller discovery-options.
More information can be found here -> http://infinispan.org/docs/stable/server_guide/server_guide.html#domain_mode
I'm trying to setup a cell and a collective in a WAS for bluemix service. I've found a few steps online for generic liberty setup, but nothing specific for a bluemix collective or cell. Can someone point me in the right direction?
At a high level, you should be able to do the following for a Cell:
Login to the Admin Console as wsadmin
Create a server.
Open all the ports on each host for each server created by running the openFirewallPorts.sh script. Below, you will find the standard ports for a new server given that only one server exists on each host You may need to open more ports for additional servers on the same host since ports can be unique per server. Try the following:
cd WAS_HOME/virtual/bin
export serverPorts=2810:TCP,2810:UDP,8880:TCP,8880:UDP,9101:TCP,9101:UDP,9061:TCP,9061:UDP,9080:TCP,9080:UDP,9354:TCP,9354:UDP,9044:TCP,9044:UDP,9443:TCP,9443:UDP,5060:TCP,5060:UDP,5061:TCP,5061:UDP,11005:TCP,11005:UDP,11007:TCP,11007:UDP,9633:TCP,9633:UDP,7276:TCP,7276:UDP,7286:TCP,7286:UDP,5558:TCP,5558:UDP,5578:TCP,5578:UDP
sudo ./openFirewallPorts.sh -ports $serverPorts -persist true
Start your server.
Deploy your application.
There are a few slight differences for a Liberty Collective, but again, at a high level, you should be able to try the following:
Switch your user to wsadmin or ssh to your host using wsadmin / password
On each host, create a server and join it to the collective. Be sure to use the full host name of the controller for the --host parameter.
cd WAS_HOME/bin
./server create server
./collective join server --host=yourhostname --port=9443 --user=wsadmin --password=xxxxxxxx --keystorePassword=yyyyyyyy
Accept the chain certificate (y/n) y
Save the output from each join so you can paste it into each host's application server.xml file before deploying your application.
Install the features required by your application on each host. The features listed below are an example.
cd /opt/IBM/WebSphere/Liberty/bin
./featureManager install --acceptLicense ejblite-3.2 websocket-1.0 jsp-2.3 jdbc-4.1 jaxrs-2.0 cdi-1.2 beanValidation-1.1
NOTE: Output from this command will contain messages similar to:
chmod: changing permissions of
`/opt/IBM/WebSphere/Liberty/bin/featureManager': Operation not
permitted
This is OK. You should see this message upon completion:
Product validation completed successfully.
Update your application's server.xml file with the information saved in Step 2.
Start your server.
Deploy your application.
Verify your application is reachable :9080/appname
I've recently started looking at WSO2 Identity Server as an alternative to what my company is currently using.
I'm finding it difficult to determine what SOAP and REST services are exposed and what the URLs for those are.
I've tried starting the server (on my Windows machine) with wso2server.bat -DosgiConosle , but I can't seem to get the OSGi console after the server has started.
Is there any other way to get the list of services exposed by the product?
Also, I'm not aware of the service API being documented and made available - Are there plans to do this?
Any help in getting the list of services or an instruction on how to do it would be greatly appreciated.
WSO2 products currently do not have a documented service API. However you can use OSGi console to view the available service components details.
Make sure that when you start WSO2 IS with osgi console the following log is visible, which says that the console is enabled.
sh wso2server.sh -DosgiConsole
JAVA_HOME environment variable is set to /jdk1.6.0_30
CARBON_HOME environment variable is set to /wso2is-4.1.0
OSGi console has been enabled with options: -console
After server is properly started, press enter and osgi> console will be displayed.
[2013-07-24 16:33:57,215] INFO {org.wso2.carbon.core.internal.StartupFinalizerServiceComponent} - WSO2 Carbon started in 17 sec
[2013-07-24 16:33:57,437] INFO {org.wso2.carbon.ui.internal.CarbonUIServiceComponent} - Mgt Console URL : https://localhost:9443/carbon/
osgi>
By entering necessary osgi commands you can see the activated OSGI service etc. For example if you need to see available services use,
osgi> services
This will list down all the services in the runtime. Use appropriate filters to find the WSO2 IS services by referring this blog post.
osgi> ls
This shows all the osgi service components along with their component ID and life-cycle status. If you need to now on particular service component use ls -c command.
The following question thread has useful information on WSO2 IS API too.
WSO2 identity server api
start the server with the following command(case sensitive)
wso2server.bat -DosgiConsole
and you should see the osgi> console
This link leads to an information how to list admin services exposed on WSO2 product (osgi console must be enabled)
List all ws in wso2
1) Start the server with osgi console.
wso2server.bat -DosgiConsole
2) Run following command 'listAdminServices'
osgi> listAdminServices
This should show all the admin services exposed by the server.