Add Zulu JDK to Debian image

33 views
Skip to first unread message

Margarita Glushkin

unread,
Mar 12, 2019, 10:33:04 AM3/12/19
to BeagleBoard
I'd like to use omap-image-builder script of Robert C. Nelson to create a custom image for BeagleBone Black.
I successfully created image based on bb-org-debian-stretch-iot-v4.14.conf file.

What I need to do is to add Zulu open embedded JDK 8.
I know that after flashing the image I can install it manually.
The process is not very simple.

1. Install dirmngr
===========
apt-get install dirmngr
===========

2. Add zulu repository with key
===========
apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv-keys 0xB1998361219BD9C9
echo 'deb http://repos.azulsystems.com/debian stable main' > /etc/apt/sources.list.d/zulu.list
apt-get update
===========

3. Install jdk
===========
apt-get install zulu-embedded-8
===========

My question is:
Is it possible to add zulu-embedded-8 jdk package including repository with public key to config file?
How should I do it?
If it's impossible, may I add these steps to post-build process?

Thank you in advance.

Robert Nelson

unread,
Mar 12, 2019, 10:57:52 AM3/12/19
to Beagle Board, rut...@gmail.com
Here you go:

https://github.com/beagleboard/image-builder/commit/cea0a981e5d2f7825306c22e9c09a2bf66495852

In your config file, just enable:

repo_azulsystems=enable

Then just add your new packages to "repo_external_pkg_list"..

Regards,

--
Robert Nelson
https://rcn-ee.com/

Ruth Glushkin

unread,
Mar 12, 2019, 11:15:09 AM3/12/19
to Robert Nelson, Beagle Board
Thanks a lot.

Ruth Glushkin

unread,
Mar 13, 2019, 3:05:41 AM3/13/19
to Robert Nelson, Beagle Board
Sorry, the build failed.

Error:
=================
gpg: can't open 'repos.azulsystems.com.pubkey.asc': No such file or directory
=================

Manual installation work.

2019-03-12 17:14 GMT+02:00, Ruth Glushkin <rut...@gmail.com>:
> Thanks a lot.
>

Robert Nelson

unread,
Mar 13, 2019, 10:39:34 AM3/13/19
to Ruth Glushkin, Beagle Board
On Wed, Mar 13, 2019 at 2:05 AM Ruth Glushkin <rut...@gmail.com> wrote:
>
> Sorry, the build failed.
>
> Error:
> =================
> gpg: can't open 'repos.azulsystems.com.pubkey.asc': No such file or directory
> =================
>
> Manual installation work.

Sorry this would help..

https://github.com/beagleboard/image-builder/commit/9bbcb870be526496663f994e2cf82e37bbdf2b77

little brain fart..
Reply all
Reply to author
Forward
0 new messages