-
-
Notifications
You must be signed in to change notification settings - Fork 42
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore(jsp): wip docs and updated dockerfile (#531)
- some docs on the new GCP run environment - update the Dockerfile to be less vulnerable - also ignore 'cldr' which is a location used by the automated build For #523
- Loading branch information
Showing
4 changed files
with
74 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -85,3 +85,4 @@ rules.mk | |
|
||
.DS_Store | ||
/output | ||
/cldr |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,64 @@ | ||
# Manually Building and Pushing UnicodeJSPs to Docker / GCP Run | ||
|
||
- This page is Under Construction by Steven `@srl295` | ||
|
||
- see [index.md](./index.md) for the prior documentation | ||
|
||
## maven stuff | ||
|
||
- local build | ||
|
||
``` | ||
mvn -B package -am -pl UnicodeJsps -DskipTests=true | ||
``` | ||
|
||
- make a copy of CLDR - lots of ways to do this | ||
|
||
``` | ||
git clone --reference-if-able ~/src/cldr https://github.com/unicode-org/cldr.git | ||
mkdir -p UnicodeJsps/target && tar -cpz --exclude=.git -f UnicodeJsps/target/cldr-unicodetools.tgz ./cldr/ ./unicodetools/ | ||
``` | ||
|
||
## docker stuff | ||
|
||
- build it | ||
|
||
``` | ||
docker build -t unicode/unicode-jsps . | ||
``` | ||
|
||
- try it | ||
|
||
``` | ||
docker run --rm -p 8080:8080 unicode/unicode-jsps | ||
``` | ||
|
||
=> <http://127.0.0.1:8080> | ||
|
||
|
||
## cloudy stuff | ||
|
||
- install gcloud sdk | ||
|
||
- `gcloud init` | ||
|
||
- login to docker | ||
|
||
``` | ||
gcloud auth configure-docker \ | ||
us-central1-docker.pkg.dev | ||
``` | ||
|
||
- build docker image | ||
|
||
``` | ||
docker build -t us-central1-docker.pkg.dev/goog-unicode-dev/unicode-jsps/unicode-jsps:latest . | ||
``` | ||
|
||
- push docker image | ||
|
||
_(takes a while - ~4G to push)_ | ||
|
||
``` | ||
docker push us-central1-docker.pkg.dev/goog-unicode-dev/unicode-jsps/unicode-jsps:latest | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters