Compare commits

..

2 commits

Author SHA1 Message Date
5f642a33e3 Merge branch 'dev' 2024-04-23 21:15:58 -04:00
c2f834858c Configure for rootless docker 2024-04-23 21:13:45 -04:00
2 changed files with 20 additions and 13 deletions

View file

@ -1,27 +1,34 @@
#!/bin/bash #!/bin/bash
echo "--- Rust version info ---" cd /backend
echo "--- Debug info ---"
rustup --version rustup --version
rustc --version rustc --version
cargo --version cargo --version
mkdir -p out id $USER
stat /backend || exit 1
stat /backend/out || exit 1
echo $(uname -a) > /backend/out/version.txt
echo "--- Building ryzenadj lib ---" echo "--- Building ryzenadj lib ---"
git clone https://github.com/FlyGoat/RyzenAdj ryzenadj git clone https://github.com/FlyGoat/RyzenAdj /tmp/ryzenadj
cd ryzenadj cd /tmp/ryzenadj
git checkout -q 160502771054d31d2f4c2fa46ad42c96336f3a74 git checkout -q v0.14.0
mkdir build && cd build mkdir build && cd build
cmake -DCMAKE_BUILD_TYPE=Release .. cmake -DCMAKE_BUILD_TYPE=Release .. || exit 1
make make || exit 1
mv libryzenadj.so ../../out/libryzenadj.so mv libryzenadj.so /backend/out/libryzenadj.so || exit 1
cd ../.. mv ryzenadj /backend/out/ryzenadj || exit 1
cd /backend
echo "--- Building plugin backend ---" echo "--- Building plugin backend ---"
cargo build --profile docker cargo build --profile docker || exit 1
mkdir -p out mkdir -p out || exit 1
mv target/docker/powertools out/backend mv target/docker/powertools out/backend || exit 1
echo " --- Cleaning up ---" echo " --- Cleaning up ---"
# remove root-owned target folder # remove root-owned target folder

View file

@ -5,4 +5,4 @@ echo "Container's IP address: `awk 'END{print $1}' /etc/hosts`"
cd /backend cd /backend
sudo bash build-docker.sh bash build-docker.sh