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
aports
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
650
Issues
650
List
Boards
Labels
Service Desk
Milestones
Merge Requests
215
Merge Requests
215
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Incidents
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
alpine
aports
Commits
6096d973
Commit
6096d973
authored
Nov 24, 2016
by
Timo Teräs
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
scripts/mkimage.sh: add parameter to add extra repositories
parent
e5cf3f20
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
15 additions
and
10 deletions
+15
-10
scripts/mkimage.sh
scripts/mkimage.sh
+15
-10
No files found.
scripts/mkimage.sh
View file @
6096d973
...
...
@@ -57,19 +57,20 @@ usage() {
$0
[--tag RELEASE] [--outdir OUTDIR] [--workdir WORKDIR]
[--arch ARCH] [--profile PROFILE] [--hostkeys] [--simulate]
[--repository REPO] [--yaml FILE]
[--repository REPO] [--
extra-repository REPO] [--
yaml FILE]
$0
--help
options:
--arch Specify which architecture images to build
(default:
$default_arch
)
--hostkeys Copy system apk signing keys to created images
--outdir Specify directory for the created images
--profile Specify which profiles to build
--repository Add package repository to use for the image
--simulate Don't execute commands
--tag Build images for tag RELEASE
--workdir Specify temporary working directory (cache)
--arch Specify which architecture images to build
(default:
$default_arch
)
--hostkeys Copy system apk signing keys to created images
--outdir Specify directory for the created images
--profile Specify which profiles to build
--repository Package repository to use for the image create
--extra-repository Add repository to search packages from
--simulate Don't execute commands
--tag Build images for tag RELEASE
--workdir Specify temporary working directory (cache)
--yaml
known profiles:
$(
echo
$all_profiles
|
sort
-u
)
...
...
@@ -199,6 +200,7 @@ while [ $# -gt 0 ]; do
shift
case
"
$opt
"
in
--repository
)
REPODIR
=
"
$1
"
;
shift
;;
--extra-repository
)
EXTRAREPOS
=
"
$EXTRAREPOS
$1
"
;
shift
;;
--workdir
)
WORKDIR
=
"
$1
"
;
shift
;;
--outdir
)
OUTDIR
=
"
$1
"
;
shift
;;
--tag
)
RELEASE
=
"
$1
"
;
shift
;;
...
...
@@ -256,6 +258,9 @@ for ARCH in $req_arch; do
warning
"no repository set"
fi
echo
"
$REPODIR
"
>
"
$APKROOT
/etc/apk/repositories"
for
repo
in
$EXTRAREPOS
;
do
echo
"
$repo
"
>>
"
$APKROOT
/etc/apk/repositories"
done
fi
abuild-apk update
--root
"
$APKROOT
"
...
...
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