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

Allow install scripts to be used by koreader CI #71

Merged
merged 2 commits into from Jan 2, 2022

Conversation

yparitcher
Copy link
Member

@yparitcher yparitcher commented Dec 27, 2021

This is part of work to also use Github actions as CI

Use distro luarocks
Install packages globally
Use latest busted
Dont install luacov-coveralls & luasec: we don't use them at all
There is no need to explicitly install luarocks dependencies


This change is Reviewable

@yparitcher
Copy link
Member Author

Please review

Copy link
Member

@Frenzie Frenzie left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm

Use latest busted

dont install luacov-coveralls & luasec: we don't use them at all

There is no need to explicitly install dependencies
@yparitcher
Copy link
Member Author

Closes: #70

@yparitcher yparitcher mentioned this pull request Jan 2, 2022
Frenzie added a commit to koreader/koreader that referenced this pull request Jan 2, 2022
@Frenzie
Copy link
Member

Frenzie commented Jan 2, 2022

Btw, I just realized luasec was probably in there because the sync server came first.

https://github.com/koreader/koreader-sync-server/blob/d7d1ebff54240cfbade96a81f2971b6ad0afa33f/Dockerfile#L27-L32


Cross-ref to koreader/koreader#8607

@@ -1,30 +1,11 @@
#!/usr/bin/env bash

HOME=/home/ko
apt-get install --no-install-recommends luarocks
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@yparitcher This cannot have ever worked, can it?

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No, it cannot.

If we want to use distro luarocks, it should be done in https://github.com/koreader/virdevenv/blob/11b62a5722b3adc1d98ce8484b89968b136db4c5/docker/ubuntu/baseimage/bootstrap.sh really

But you could do it here with sudo in theory, see

Keep in mind we purposefully remove the apt cache lines earlier

rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/*

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

Successfully merging this pull request may close these issues.

None yet

2 participants