Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Improve Docker build, initial server variant
- Loading branch information
1 parent
eecf93b
commit fd362f1
Showing
6 changed files
with
68 additions
and
16 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
{ | ||
"files.watcherExclude": { | ||
"**/build": true | ||
} | ||
} |
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,9 +1,9 @@ | ||
#!/usr/bin/env bash | ||
set -e | ||
echo "Running ProLinux 2 Build using the ProLinux SDK Container" | ||
if [ ! -f package.json ]; then | ||
echo "This script must be run from the root of the project" | ||
exit 1 | ||
fi | ||
|
||
|
||
|
||
#docker run -it prolinux-sdk:latest bash | ||
# run ./scripts/build_x64.sh in the container and mount cwd to /home/user/prolinux-2 | ||
|
||
docker run -it -v $(pwd):/home/user/prolinux-2 prolinux-sdk:latest bash -c "cd /home/user/prolinux-2 && ./scripts/build_x64.sh" | ||
docker run -it --rm --privileged=true -v $(pwd):/home/user/prolinux-2 sineware/prolinux-sdk:latest bash -c "cd /home/user/prolinux-2 && ./scripts/unmount.sh && ./scripts/build_x64.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
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 @@ | ||
#!/usr/bin/env bash | ||
set -e | ||
echo "Building ProLinux SDK" | ||
|
||
if [ ! -f Dockerfile ]; then | ||
echo "This script must be run from the sdk directory" | ||
exit 1 | ||
fi | ||
|
||
mkdir -pv staging | ||
#cp -v ../output/prolinux-root-mobile-dev.tar staging/ | ||
docker build --ulimit "nofile=1024:1048576" -t sineware/prolinux-sdk . | ||
docker build --ulimit "nofile=1024:1048576" -t sineware/prolinux-sdk:latest . | ||
echo "Done!" |
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 |
---|---|---|
@@ -0,0 +1,9 @@ | ||
import exec from "../../helpers/exec"; | ||
import { BUILD_DIR, ROOTFS_DIR, OUTPUT_DIR, FILES_DIR, arch, TARGET_DEVICE, PROLINUX_CHANNEL, PROLINUX_VARIANT } from '../../helpers/consts'; | ||
|
||
export async function buildServerDev() { | ||
console.log("Building ProLinux Server (Dev)"); | ||
exec(`sudo arch-chroot ${ROOTFS_DIR} /bin/bash -x <<'EOF' | ||
echo "Installing packages for server-dev profile"; | ||
EOF`); | ||
} |