apk source for an air-gapped network?
#1
Wed, 2015-09-30 17:00
clemenko
-
- Offline
- 2 years 6 months ago
- 2015-09-30
TL;DR.. I have an air-gapped network where users want to use Alpine to build tiny Docker images. I need to provide a base image that points to a local apk server? Is this possible? How do I host the apk repo?
You can use rsync to copy a repo; then you point to them in your /etc/apk/repositories; for example, do an rsync against http://nl.alpinelinux.org/alpine/v3.2/main and save it on /opt/repo/main; then make it available via nginx or somthing to http://mynetwork/ and put http://mynetwork/ on /etc/apk/repositories.