Comments (8)
Also mentioned on the main README.md, but happy to update the docs if it isn’t clear:
https://github.com/rovats/waltz-docker#step-1-setup-maven-profiles
from waltz-docker.
@davidwatkins73 , I have improved the documentation as part of this issue. Are you happy for this to be closed?
from waltz-docker.
For the record:
- Linux Mint 19
- Docker 19.03.11
from waltz-docker.
Ah, localhost
won't work from within the docker container.
You'll need to find the IP address of the Postgres container, and use that in the maven profile, like described here:
from waltz-docker.
from waltz-docker.
Thanks @rovats, that seems to have fixed it. Yes, it was my inability to follow instructions.
I don't know much about docker but this seems very complicated. Is there anything we can do on the core Waltz side to simplify - or is this stuff fairly obvious once you understand Docker ?
from waltz-docker.
I think once you understand how Docker networking works, this shouldn't be too much of an issue.
https://docs.docker.com/engine/reference/run/#network-settings
There are various ways to access the host machine from a container: setting up your own network, assigning a static IP address to your host machine (in the custom network), or a static IP to your container in the custom network (this is useful since container IP addresses are dynamic - assigned in incremental order at container startup).
Also, there is a special dns name host.docker.internal
that can be used to access the host (or 172.0.17.1
might also work):
https://docs.docker.com/docker-for-mac/networking/#i-want-to-connect-from-a-container-to-a-service-on-the-host
A few more options listed here:
https://stackoverflow.com/questions/24319662/from-inside-of-a-docker-container-how-do-i-connect-to-the-localhost-of-the-mach
Happy to include some more information in the docs to make this clear - Done, let me know if the docs can be improved further.
from waltz-docker.
Hi, yes, happy for this to be closed. Thanks!
from waltz-docker.
Related Issues (18)
- Add a cache_bust_url build param
- Add links to sample config files in README.md
- Add custom-scripts empty directory to git with README.md
- Add optional 'git' requirement to README.md under 'tools required'
- Ensure mvn build step always runs HOT 2
- Test/Document/Support running builds behind http proxies HOT 1
- Test on Windows
- Support installing/upgrading Waltz using pre-built .war and ddl scripts
- Issue with sql server builds HOT 7
- Improve maven dependencies caching
- Support MSSQL builds HOT 1
- Document support for MariaDB builds
- Add build/README.md
- Add 'run in docker' documentation and support overriding tomcat conf
- Add instructions on how to initialise postgres/mariadb with sample data dumps HOT 1
- Document initialising Postgres database with sample data
- Organise output artifacts better
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 waltz-docker.