Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(examples): Introduce Hello in Java as example #37

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

razvand
Copy link

@razvand razvand commented Dec 17, 2023

Introduce a Hello Java program as binary compatibility run. Install Java and build program using Dockerfile. Then run it with the base kernel images from ../../kernels/.

Add typical files for a bincompat app:

  • Kraftfile: build / run rules, including pulling the base image
  • Dockerfile: filesystem, including binary and libraries
  • Makefile: used to generate the root filesystem from the Dockerfile rules
  • README.md: instructions to set up, build and run the application
  • config.yaml: configuration file to generate scripts to the application
  • Hello.java: the Java program

config.yaml is used to generate run scripts using the ../../utils/bincompat/generate.py script.

The kernels in ../../kernels are generated by running the ../../utils/bincompat/base-build-all.sh script while inside the ../../library/base/ directory.

@razvand razvand added the enhancement New feature or request label Dec 17, 2023
@razvand razvand self-assigned this Dec 17, 2023
@razvand razvand force-pushed the razvand/examples/hello-java17 branch from bdc739d to 8e6f3c5 Compare December 19, 2023 09:34
Introduce a Hello Java program as binary compatibility run. Install Java
and build program using `Dockerfile`. Then run it with the `base` kernel
images from `../../kernels/`.

Add typical files for a bincompat app:

* `Kraftfile`: build / run rules, including pulling the `base` image
* `Dockerfile`: filesystem, including binary and libraries
* `Makefile`: used to generate the root filesystem from the `Dockerfile`
  rules
* `README.md`: instructions to set up, build and run the application
* `config.yaml`: configuration file to generate scripts to the
  application
* `Hello.java`: the Java program

`config.yaml` is used to generate run scripts using the
`../../utils/bincompat/generate.py` script.

The kernels in `../../kernels` are generated by running the
`../../utils/bincompat/base-build-all.sh` script while inside the
`../../library/base/` directory.

Signed-off-by: Razvan Deaconescu <[email protected]>
@razvand razvand force-pushed the razvand/examples/hello-java17 branch from 8e6f3c5 to c961cb9 Compare December 20, 2023 07:34
razvand pushed a commit that referenced this pull request Mar 18, 2024
Reviewed-by: Razvan Deaconescu <[email protected]>
Approved-by: Razvan Deaconescu <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
Status: In Progress
Status: In Progress
1 participant