Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
abuild
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
25
Issues
25
List
Boards
Labels
Service Desk
Milestones
Merge Requests
17
Merge Requests
17
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
alpine
abuild
Commits
d500aac0
Commit
d500aac0
authored
Mar 29, 2011
by
Matt Smith
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
buildlab: added apk caching option (-k)
parent
d68c2e29
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
3 deletions
+11
-3
buildlab.in
buildlab.in
+11
-3
No files found.
buildlab.in
View file @
d500aac0
...
...
@@ -88,6 +88,7 @@ prepare_chroot() {
local
version
=
"
$2
"
local
mirror
=
"
$3
"
local arch
=
"
$4
"
local
enablecache
=
"
$5
"
msg
"Setting up repositories for mirror
$mirror
with version
$version
at
$path
..."
...
...
@@ -95,6 +96,11 @@ prepare_chroot() {
echo
"http://
$mirror
/alpine/
$version
/packages/
$arch
/main"
>>
"
$path
"
/etc/apk/repositories
echo
"http://
$mirror
/alpine/
$version
/packages/
$arch
/testing"
>>
"
$path
"
/etc/apk/repositories
if
[
!
-z
"
$enablecache
"
]
;
then
mkdir
-p
"
$path
"
/var/cache/apk
ln
-s
/var/cache/apk
"
$path
"
/etc/apk/cache
fi
mkdir
-p
"
$path
"
/var/lib/apk
echo
"alpine-base"
>
"
$path
"
/var/lib/apk/world
...
...
@@ -187,6 +193,7 @@ usage() {
echo
" -m APK repository mirror"
echo
" -v APK distribution version"
echo
" -a APK repository architecture"
echo
" -k Enable APK caching"
echo
" "
echo
"Updating build roots (buildlab -u):"
echo
" "
...
...
@@ -205,7 +212,7 @@ usage() {
unset
force
unset
recursive
while
getopts
"chqCp:v:m:a:b:u"
opt
;
do
while
getopts
"chqC
k
p:v:m:a:b:u"
opt
;
do
case
$opt
in
'c'
)
default_colors
color_opt
=
"-c"
;;
...
...
@@ -215,7 +222,8 @@ while getopts "chqCp:v:m:a:b:u" opt; do
'p'
)
buildpath
=
"
$OPTARG
"
;;
'm'
)
buildmirror
=
"
$OPTARG
"
;;
'v'
)
buildver
=
"
$OPTARG
"
;;
'a'
)
buildarch
=
"
$OPTARG
"
;;
'a'
)
buildarch
=
"
$OPTARG
"
;;
'k'
)
enablecache
=
1
;;
'b'
)
buildpkg
=
"
$OPTARG
"
;;
'u'
)
update
=
"-u"
;;
esac
...
...
@@ -224,7 +232,7 @@ shift $(( $OPTIND - 1 ))
if
[
!
-z
"
$create
"
]
;
then
msg
"Creating new chroot at
$buildpath
..."
prepare_chroot
$buildpath
$buildver
$buildmirror
$buildarch
prepare_chroot
$buildpath
$buildver
$buildmirror
$buildarch
$enablecache
exit
0
fi
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment