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

kirk executable not present in the container #1129

Closed
mahi657 opened this issue Feb 5, 2024 · 3 comments
Closed

kirk executable not present in the container #1129

mahi657 opened this issue Feb 5, 2024 · 3 comments

Comments

@mahi657
Copy link

mahi657 commented Feb 5, 2024

Hi,

I build a ltp container using the existing containerfile and base os as tumbleweed.

podman build -t tumbleweed/ltp --build-arg PREFIX=registry.opensuse.org/opensuse/ --build-arg DISTRO_NAME=tumbleweed --build-arg DISTRO_RELEASE=20240124 .

and the image was successfully created.


+ useradd ltp
--> cb63801bb9b
[2/2] STEP 7/12: COPY --from=build $LTPROOT $LTPROOT
--> aa211019148
[2/2] STEP 8/12: ENV LTPROOT=$LTPROOT
--> f12260aa66e
[2/2] STEP 9/12: ENV PATH=$LTPROOT/testcases/bin:$LTPROOT/bin:$PATH
--> a04752698b7
[2/2] STEP 10/12: RUN mkdir -p $KIRKROOT
--> 7e19a493c52
[2/2] STEP 11/12: COPY --from=build /build/tools/kirk $KIRKROOT
--> 48d63404f4c
[2/2] STEP 12/12: USER ltp
[2/2] COMMIT tumbleweed/ltp
--> 92c7f2cdb04
Successfully tagged localhost/tumbleweed/ltp:latest
92c7f2cdb04c23d4377c1edf6fa2115abf506172ff9e4220591c2052325e45e0

But on running the container with the above image, I don't see kirk executable under /opt/kirk/

ltp@b47f9caacd78:/opt/kirk> ls
ltp@b47f9caacd78:/opt/kirk> 
ltp@b47f9caacd78:/opt/kirk> 

Can someone please help me?

@pevik
Copy link
Member

pevik commented Feb 5, 2024

In LTP git root you run:

$ git submodule update --init
$ cd tools/kirk/
$ make install

@mahi657
Copy link
Author

mahi657 commented Feb 6, 2024

Thank You @pevik , I was able to install and build kirk. Few additional steps I followed, setting prefix and adding python3 to runtime script.

@Avinesh
Copy link
Contributor

Avinesh commented Feb 13, 2024

@pevik , I think we can close this one.

@pevik pevik closed this as completed Feb 13, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants