rovats / waltz-docker Goto Github PK
View Code? Open in Web Editor NEWDocker build/run/dev tools for finos/Waltz
License: Apache License 2.0
Docker build/run/dev tools for finos/Waltz
License: Apache License 2.0
May be use a random number generator URL?
Before mvn clean package:
ADD randomURL /tmp/cachebust
Also add instructions on how cloning this repo and pulling in changes
Also, support overriding tomcat configuration
I can't seem to get this to build with sql server. the original pom for waltz requires a local install of sqljdbc4 but the same trick doesn't seem to work here for some reason.
I have tried multiple times to get docker build to work and installed the file in my local repo using
mvn install:install-file -Dfile=sqljdbc4.jar -Dpackaging=jar -DgroupId=com.microsoft.sqlserver -DartifactId=sqljdbc4 -Dversion=4.0
Not sure if there is something i the dependencies i am missing?
Currently the are created in build/output/
directory.
It would be better to create them under environment and db specific directories, eg:
build/output/local-postgres
The waltz-web.war file then doesn't need environment in it's name.
apt-get
etc) - env variables?Might need to support overriding config for some of these (similar to maven)
Some ideas:
copy only pom.xml files first, then run mvn dependency:go-offline
, so cache is not busted because of other code changes.
https://medium.com/@nieldw/caching-maven-dependencies-in-a-docker-build-dca6ca7ad612
With details of all supported arguments, default values etc
I initially tried under Windows 10 but couldn't decide if errors where my fault or actual underlying issues. I''ve therefore switched to first trying the tutorial under Linux. However I cannot get the build to connect to the postgres instance.
I've installed postgres as per the instructions, and populated it using the LoadAll
app in waltz-jobs
. I can connect to this db on my dev machines Waltz instance (I remapped the port 5432 to 5632 via IntelliJ as the -p 5432:5432 param seemed to have not effect)
This works fine when running Waltz's Main
and the Waltz's maven build with the appropriate settings, namely:
<profile>
<id>local-postgres</id>
<activation><activeByDefault>false</activeByDefault></activation>
<properties>
<database.url>jdbc:postgresql://localhost:5632/waltz</database.url>
<database.user>waltz</database.user>
<database.password>waltz</database.password>
<database.schema>public</database.schema>
<database.catalog></database.catalog>
</properties>
Docker
When running the command:
docker build --tag waltz-build:1.26a1 --build-arg maven_profiles=waltz-postgres,local-postgres -f build/build.Dockerfile .
it fails with:
[INFO] waltz .............................................. SUCCESS [ 13.869 s]
[INFO] waltz-common ....................................... SUCCESS [ 12.176 s]
[INFO] waltz-model ........................................ SUCCESS [ 9.760 s]
[INFO] waltz-schema ....................................... FAILURE [ 2.670 s]
[INFO] waltz-data ......................................... SKIPPED
[INFO] waltz-service ...................................... SKIPPED
[INFO] waltz-web .......................................... SKIPPED
[INFO] waltz-jobs ......................................... SKIPPED
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 38.665 s
[INFO] Finished at: 2020-06-18T15:19:01Z
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.liquibase:liquibase-maven-plugin:3.5.1:update (default) on project waltz-schema: Error setting up or running Liquibase: liquibase.exception.DatabaseException: org.postgresql.util.PSQLException: Connection to localhost:5432 refused. Check that the hostname and port are correct and that the postmaster is accepting TCP/IP connections.: Connection refused (Connection refused) -> [Help 1]
I've tried updating the settings xml with both ports (5432 & 5632) and they both give the same error.
Will continue trying things but thought I'd see if you could spot any obvious errors
$PWD}
when mapping volumes etc)To ensure git clone runs if something has changed.
No other way to force docker to rerun git clone, other than using โno-cache, which invalidates the full image cache.
Default:
https://api.github.com/repos/finos/waltz/commits/:branch
Builds should already work, but include in documentation.
Also include instructions on spinning up a dockerised database instance.
Add contents to .gitignore
So that users can store any custom scripts under this directory, without being overwritten.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.