Comments (4)
hey @SaurabhVatsa that's the expected behaviour, as Liferay Portal GA4 does not have a retry strategy for the datasource.
This feature has been added to the next release here: https://issues.liferay.com/browse/LPS-73667
In future releases, you'll be able to configure a retry strategy adding two properties:
##
## Retry JDBC connection on portal startup.
##
#
# Set the number of seconds to retry getting a JDBC connection on portal
# startup.
#
retry.jdbc.on.startup.delay=0
#
# Set the max number of times to retry getting a JDBC connection on portal
# startup.
#
retry.jdbc.on.startup.max.retries=0
On the other hand, as we added support for configuring Liferay Portal with environment variables, you'll be able to add env_vars representing any portal prop. Please read this JIRA ticket carefully: https://issues.liferay.com/browse/LPS-72541
from docker-liferay-portal.
Hey @mdelapenya , thanks for the response.
Docker documentation mentions that it is possible to delay the startup of one service until another service that it depends on, fires up. I was wondering if we can use/create something on that line and delay the startup of Liferay untill MySQL starts.
For ex.
version: "2"
services:
web:
build: .
ports:
- "80:8000"
depends_on:
- "db"
command: ["./wait-for-it.sh", "db:5432", "--", "python", "app.py"]
db:
image: postgres
Documentation for wait-for-it
Though it is good to have this feature in the next release, is there a way to manually configure this in the current Version ?
from docker-liferay-portal.
Yes, Docker documentation says that, but it waits for the main process, not for the custom logic expected by portal: so whenever the mysql container is up, portal will start, but it does not mean that the mysql database is already created.
from docker-liferay-portal.
Hey @SaurabhVatsa, is this issue solved? If so, could you please close it. Thanks!
from docker-liferay-portal.
Related Issues (20)
- telnet to gogo shell HOT 2
- Fix /usr/local/bin/entrypoint.sh: line 22: [: too many arguments HOT 1
- Support debug mode HOT 1
- Simplify liferay_home definition
- Use oracle jdk HOT 1
- Release new 7.1 Milestone 1
- How i can change parameters for database connection? HOT 3
- How can i get the 7.0 ce GA6 version HOT 5
- Release new 7.1.1 GA2 HOT 1
- Explain the usage of environment variables in the readme
- Release 7.1.2-ga3 HOT 1
- Use same variable value for JVM args than the official image HOT 1
- Migrate from Debian Jessie to other O.S. HOT 1
- Fix gosu installation errors caused by gpg HOT 1
- Support for Liferay DXP 7.2 HOT 1
- persistent volume HOT 7
- How about liferay docker cluster with one remote database? HOT 2
- Document or replace ONBUILD instructions HOT 2
- Add travis support
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from docker-liferay-portal.