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
P
pyra-docker
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
Operations
Operations
Incidents
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
imagebuild
pyra-docker
Commits
6fd512c2
Commit
6fd512c2
authored
Aug 15, 2019
by
Nick Elsmore
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add docker entrypoint arguments
parent
c9b342ed
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
55 additions
and
5 deletions
+55
-5
docker-entrypoint.sh
docker-entrypoint.sh
+54
-4
docker_run.sh
docker_run.sh
+1
-1
No files found.
docker-entrypoint.sh
View file @
6fd512c2
...
...
@@ -10,20 +10,70 @@ env_setup() {
export
CROSS_COMPILE
=
arm-linux-gnueabihf-
mkdir
-p
$BUILD_ROOT
cd
$BUILD_ROOT
}
pyra_init
()
{
cd
$BUILD_ROOT
print_usage
()
{
echo
"Usage: ./docker_run.sh COMMAND [OPTIONS]"
echo
"Commands:"
echo
" sync-current Sync all repositories to their current branches"
echo
" sync-manifest Sync all repositories to master"
echo
" build Run PyraOS build script (see script for arguments"
echo
" build-all [2gb|4gb] Build PyraOS for 2gb or 4gb HW"
echo
" bash Configure environment and start bash shell"
}
sync_current
()
{
repo init
-u
dev.pyra-handheld.com:imagebuild/pyra-manifest.git
repo
sync
}
sync_to_manifest
()
{
repo init
-u
dev.pyra-handheld.com:imagebuild/pyra-manifest.git
repo
sync
-d
}
build
()
{
./build.sh
$1
$2
}
build_all
()
{
./build.sh uboot
$1
./build.sh kernel
./build.sh rootfs
./build.sh image
}
main
()
{
env_setup
pyra_init
exec
bash
case
$1
in
sync-current
)
sync_current
;;
sync-manifest
)
sync_to_manifest
;;
build
)
build
$2
$3
;;
build-all
)
build_all
$2
;;
bash
)
exec
bash
;;
*
)
print_usage
exit
1
;;
esac
}
main
"
$@
"
exit
0
docker_run.sh
View file @
6fd512c2
...
...
@@ -28,4 +28,4 @@ docker run \
--volume
$ID_RSA
:/home/docker/.ssh/id_rsa
\
--volume
/dev:/dev
\
--privileged
\
-it
pyra-build
-it
pyra-build
"
$@
"
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