Giter VIP home page Giter VIP logo

fngvm2232jdk17's Introduction

fnGvm2232Jdk17

Java function with Oracle GraalVM 22.3.2 Native Image JDK 17

Generated using Shaun Smith's GraalVM Native Image-based function init-images.

Prerequisites

Oracle GraalVM container images are stored in https://container-registry.oracle.com. You will need an Oracle account (doesn't require a credit card!) to accept the Oracle GraalVM license on container-registry.oracle.com >> GraalVM >> native-image-ee.

  1. Go to https://container-registry.oracle.com.

  2. Go to GraalVM >> native-image-ee.

  3. Click Sign in.

  4. You will see the Oracle Login screen. If you have an account, enter your user and password to login. If you don't have an account scroll down to the Create a new Account section and create you free account (no credit card required).

  5. Once you've signed in, view and accept the license.

Deploy your function

  1. From a terminal like OCI Cloud Shell (or on local), login to Oracle Container Registry (OCR). Oracle GraalVM container images are pulled from OCR.

    docker login container-registry.oracle.com -u <YOUR_ORACLE_ACCOUNT_USER_NAME>

    When prompted, enter your password and hit enter.

  2. From the same terminal window, login to OCI Container Registry (OCIR). Your function image will be pushed to your OCIR repo.

    docker login -u '<tenancy-namespace>/<your-OCI-user-name>' <region-key>.ocir.io

    When prompted for a password, enter your OCI auth token and hit enter.

  3. Once you've logged in to both OCR and OCIR, run fn deploy.

    fn -v deploy --app <app-name>

    This will use a multistage docker build as per the steps in the Dockerfile to generate an ahead-of-time compiled native executable for the function and deploy it to OCI.

  4. (Optional) From the OCI console, go to the function application and enable function logs and traces. Go to the function and enable traces.

  5. Invoke the function and check the time it takes to run.

    fn invoke <app-name> fngvm2232jdk17
  6. (Optional) From the OCI console, check the function's logs and traces and see the time it took to run.

fngvm2232jdk17's People

Contributors

sachin-pikle avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.