File tree Expand file tree Collapse file tree 4 files changed +74
-1
lines changed Expand file tree Collapse file tree 4 files changed +74
-1
lines changed Original file line number Diff line number Diff line change @@ -85,3 +85,4 @@ rules.mk
8585
8686.DS_Store
8787/output
88+ /cldr
Original file line number Diff line number Diff line change @@ -11,7 +11,7 @@ RUN ls -lh /build/source/bidiref1 && (/build/source/bidiref1 || true)
1111ADD ./target/cldr-unicodetools.tgz /build/data/
1212# move this into place (including unicodetools/unicodetools)
1313RUN rm -rf /build/data/cldr/.git # unneeded
14- FROM jetty:9-jre11-slim AS run
14+ FROM jetty:9-jre11-alpine-eclipse-temurin AS run
1515ADD port-entrypoint.sh /port-entrypoint.sh
1616ADD ./jetty.d/ROOT /var/lib/jetty/webapps/ROOT/
1717ENTRYPOINT [ "/port-entrypoint.sh" ]
Original file line number Diff line number Diff line change 1+ # Manually Building and Pushing UnicodeJSPs to Docker / GCP Run
2+
3+ - This page is Under Construction by Steven ` @srl295 `
4+
5+ - see [ index.md] ( ./index.md ) for the prior documentation
6+
7+ ## maven stuff
8+
9+ - local build
10+
11+ ```
12+ mvn -B package -am -pl UnicodeJsps -DskipTests=true
13+ ```
14+
15+ - make a copy of CLDR - lots of ways to do this
16+
17+ ```
18+ git clone --reference-if-able ~/src/cldr https://github.com/unicode-org/cldr.git
19+ mkdir -p UnicodeJsps/target && tar -cpz --exclude=.git -f UnicodeJsps/target/cldr-unicodetools.tgz ./cldr/ ./unicodetools/
20+ ```
21+
22+ ## docker stuff
23+
24+ - build it
25+
26+ ```
27+ docker build -t unicode/unicode-jsps .
28+ ```
29+
30+ - try it
31+
32+ ```
33+ docker run --rm -p 8080:8080 unicode/unicode-jsps
34+ ```
35+
36+ => < http://127.0.0.1:8080 >
37+
38+
39+ ## cloudy stuff
40+
41+ - install gcloud sdk
42+
43+ - ` gcloud init `
44+
45+ - login to docker
46+
47+ ```
48+ gcloud auth configure-docker \
49+ us-central1-docker.pkg.dev
50+ ```
51+
52+ - build docker image
53+
54+ ```
55+ docker build -t us-central1-docker.pkg.dev/goog-unicode-dev/unicode-jsps/unicode-jsps:latest .
56+ ```
57+
58+ - push docker image
59+
60+ _ (takes a while - ~ 4G to push)_
61+
62+ ```
63+ docker push us-central1-docker.pkg.dev/goog-unicode-dev/unicode-jsps/unicode-jsps:latest
64+ ```
Original file line number Diff line number Diff line change 11# Building UnicodeJsp
22
3+ - Note: you can run the latest UnicodeJsp locally with docker using:
4+
5+ ```
6+ docker run --rm -p 8080:8080 unicode/unicode-jsp
7+ ```
8+
9+ - Note 2: there are some notes on updated processes for using GCP at [ gcp-run.md] ( ./gcp-run.md ) - at present, automated deployment is TODO.
10+
311## Compiling
412### Prerequisites
513- Java
You can’t perform that action at this time.
0 commit comments