Skip to content

Run from maven, without docker, for development - #51

Merged
mihnita merged 1 commit into
unicode-org:mainfrom
mihnita:mihai_run_without_docker
May 4, 2026
Merged

mihnita merged 1 commit into
unicode-org:mainfrom
mihnita:mihai_run_without_docker

Conversation

@mihnita

@mihnita mihnita commented May 4, 2026 •

Copy link
Copy Markdown
Contributor

With this one can execute mvn package cargo:run and it will download a tomcat version (in target/), deploy, and run.

No need to run build-docker.sh, which takes extra time, and creates a new docker image.
These docker images accumulate, take disk space, and need to be deleted once in a while.

You also don't need to have Docker installed.

@mihnita
mihnita requested review from markusicu and srl295 May 4, 2026 20:47
@macchiati

Copy link
Copy Markdown
Member

Does this mean it runs locally, or on the server?

@mihnita

mihnita commented May 4, 2026

Copy link
Copy Markdown
Contributor Author

This is for testing / debugging locally.
It starts a Tomcat server locally and deploys the .war there.
So you connect to http://localhost:8080

The current process builds the war, builds a Docker image with Tomcat and the war in it, runs the image in Docker, and you connect to http://localhost:8080

So both options run locally, but this one

  • is just one Maven command
  • less disk space (the Docker images accumulate and need to be deleted once in a while)
  • faster: does not build a docker image, and startup time is faster (instead of starting a docker image then start Tomcat in it, this just starts Tomcat)
  • less memory
  • no need to install docker (some companies have restrictions on installing it on work computers)

The Docker way is still there and still works.
In the readme I still recommend a final test with the Docker image because that's how we deploy it in the cloud.

@mihnita

mihnita commented May 4, 2026

Copy link
Copy Markdown
Contributor Author

It can do a lot more.
For example start a server, then deploy new .war files there without restarting.

See
https://codehaus-cargo.github.io/cargo/Maven+3+Plugin.html

Or connect an ide for debugging:
https://codehaus-cargo.github.io/cargo/Debugging.html

Very likely also possible with the Docker approach, with a bit more tinkering.

M

@markusicu markusicu left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

rslgtm

@eggrobin @sven-oly FYI -- for ICU Java demos

@srl295

srl295 commented May 4, 2026

Copy link
Copy Markdown
Member

the Docker image because that's how we deploy it in the cloud

which was the reason for this… originally it was a local tomcat deploy.

no need to install docker (some companies have restrictions on installing it on work computers)

Yeah. Considering https://unicode-org.atlassian.net/browse/CLDR-19389 for CLDR survey tool for similar reasons.

@mihnita
mihnita merged commit 391f3e6 into unicode-org:main May 4, 2026
5 checks passed
@mihnita
mihnita deleted the mihai_run_without_docker branch May 5, 2026 07:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants