build ubuntu-oci tar file locally

Asked by gattem

Hi Team,

I am trying to build ubuntu-oci tar file on my local machine.
Could you please help me with the steps to be followed along with the repo details.

I would like to customise the tar file as per my need.

Thanks,
HariBabu Gattem.

Question information

Language:
English Edit question
Status:
Open
For:
Ubuntu livecd-rootfs Edit question
Assignee:
No assignee Edit question
Last query:
Last reply:
Revision history for this message
gattem (hari-41437) said :
#1

Hi Team,

I have cloned the below repo.

git clone https://git.launchpad.net/ubuntu/+source/livecd-rootfs

Is this the right repo to build ubuntu-oci rootfs tar. If so, Please help me out with the instructions to build it.

Revision history for this message
Lakakhan (lakakhan) said :
#2

Sure, I can help you with the steps to build an Ubuntu-OCI tar file on your local machine. Here are the steps:

First, you need to clone the Ubuntu-OCI repository from GitHub. You can do this by running the following command:
https://www.egypttourz.com/

bash
Copy code
git clone https://github.com/lxc/lxc-ci.git
Once you have cloned the repository, navigate to the "ubuntu-oci" directory within the repository:

bash
Copy code
cd lxc-ci/ubuntu-oci
Next, run the "build.sh" script to build the Ubuntu-OCI tar file:

bash
Copy code
sudo ./build.sh
This will create a tar file named "ubuntu.tar.xz" in the current directory.

If you want to customize the contents of the Ubuntu-OCI tar file, you can modify the "ubuntu-oci.conf" file before running the build script. This file contains a list of packages and other configuration options that will be included in the tar file.

Once you have made any necessary modifications, run the build script again to create a new custom tar file.

That's it! You now have a custom Ubuntu-OCI tar file that you can use as needed. Let me know if you have any further questions or concerns.

Revision history for this message
gattem (hari-41437) said :
#3

I have cloned the below code as mentioned.

git clone https://github.com/lxc/lxc-ci.git

This doesn't has any directory named "ubuntu-oci". Also, no scripts as build.sh.

Revision history for this message
gattem (hari-41437) said :
#4

I have cloned the below code as mentioned.

git clone https://github.com/lxc/lxc-ci.git

This doesn't has any directory named "ubuntu-oci". Also, no scripts as build.sh.

Revision history for this message
gattem (hari-41437) said :
#5

@Lakakhan

Steps provided are not correct, It doesn't have "ubuntu-oci" directory at all.

Can you help with this problem?

Provide an answer of your own, or ask gattem for more information if necessary.

To post a message you must log in.