Skip to content

Commit

Permalink
Merge pull request #9 from tinpham5614/tin-update-methods
Browse files Browse the repository at this point in the history
update current code
  • Loading branch information
tinpham5614 authored Aug 9, 2023
2 parents 2781060 + 149adb6 commit 64b1b65
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion java/compress_image/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -45,9 +45,10 @@ $ cd java/compress_image

2. Enter this function folder and build the code:
```
docker run --rm --interactive --tty --volume $PWD:/usr/code openruntimes/java:v2-11.0 sh /usr/local/src/build.sh
docker run -e INTERNAL_RUNTIME_ENTRYPOINT=Index.java --rm --interactive --tty --volume $PWD:/usr/code openruntimes/java:v2-11.0 sh /usr/local/src/build.sh
```
As a result, a `code.tar.gz` file will be generated.

3. Start the Open Runtime:
```
docker run -p 3000:3000 -e INTERNAL_RUNTIME_KEY=secret-key -e INTERNAL_RUNTIME_ENTRYPOINT=Index.java --rm --interactive --tty --volume $PWD/code.tar.gz:/tmp/code.tar.gz:ro openruntimes/java:v2-11.0 sh /usr/local/src/start.sh
Expand Down

0 comments on commit 64b1b65

Please sign in to comment.