how to store apk files with lbu

5 posts / 0 new
Last post
#1 Sat, 2016-06-04 16:16
neilblue
  • neilblue's picture
  • Offline
  • Last seen: 1 year 5 months ago
  • Joined: 2016-06-04

Hello,

I am just discovering alpine linux and it is great. I have set up a bootable usb and can store my updated /etc folder with the lbu tool. Just what I have been looking for :)

Now I want to install packages with apk and have these updates stored with lbu too. I can see there is an option to include extra locations with lbu, but my question: Is there a way to find all the local file changes following an 'apk add' to include in the config file, or is there a better way to do this?

Thanks
Neil

Sat, 2016-06-04 22:11
neilblue
  • neilblue's picture
  • Offline
  • Last seen: 1 year 5 months ago
  • Joined: 2016-06-04

OK so I have now found that creating the apk cache during setup manages this. Now I just need to find how to keep additional installs, and in particular docker compose which is installed with pip install docker-compose. I think I need to find all the directories that it is installed in but this seems like I would need to store all of /usr/bin?

Tue, 2016-10-04 19:42
schultzter
  • schultzter's picture
  • Offline
  • Last seen: 1 year 5 months ago
  • Joined: 2016-02-15

So did this work out in the end?

I'm also trying to get a USB powered installation of Alpine going. I followed the wiki article on creating a bootable USB but it wasn't persistent. I missed that part (it's not clear in the article, but it is suggested). I ultimately intend to install Chromium and couple other GUI utilities so I'll want to persist all those settings too.

Tue, 2016-10-04 20:31 (Reply to #3)
neilblue
  • neilblue's picture
  • Offline
  • Last seen: 1 year 5 months ago
  • Joined: 2016-06-04

No I didn't get the whole docker setup due to come issues with the c library. But as I remember for storing apk's you can define them during the creation process and they are re-installed on boot, and for your app settings you can specify additional directories to be persisted in the image. However I haven't done any more work on this since the post.

Fri, 2018-01-26 16:26
korbai
  • korbai's picture
  • Offline
  • Last seen: 2 months 3 days ago
  • Joined: 2017-04-10

These steps works for me, so docker-compose persisted after reboot, but I do not like it, because the alpine OVL file will be huge:

apk add py2-pip
pip install docker-compose
lbu add /usr/lib/python2.7/site-packages
lbu add /usr/bin/docker-compose
lbu ci -d

Log in or register to post comments