-
Notifications
You must be signed in to change notification settings - Fork 11
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #22 from codekow/kernel-optimize
update: fix docker build; minor kernel tweaks
- Loading branch information
Showing
4 changed files
with
22 additions
and
12 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,13 @@ | ||
# Build with docker / podman | ||
|
||
Run build scripts in a container. | ||
|
||
Note: you may have to use `sudo` to run the script to have the ability to build rootfs | ||
|
||
``` | ||
# kernel building | ||
docker/builder.sh | ||
./build.sh | ||
# rootfs & kernel building | ||
sudo docker/builder.sh | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,17 @@ | ||
#!/bin/sh | ||
getenforce && SELINUX=':z' | ||
|
||
getenforce && SELINUX=':z' | ||
which podman && alias docker=podman | ||
|
||
# docker rm mycloud-builder -f | ||
|
||
docker build \ | ||
-t localhost/mycloud-builder \ | ||
-f docker/Dockerfile | ||
|
||
docker rm mycloud-builder -f | ||
|
||
docker run -it --rm \ | ||
--name mycloud-builder \ | ||
-v $(pwd):/build:z \ | ||
-v $(pwd):/build${SELINUX} \ | ||
--privileged \ | ||
localhost/mycloud-builder |