-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added developer tools; nullhook.so and noophook.so.
- Loading branch information
rsundahl
committed
Mar 7, 2018
1 parent
1974b97
commit 344521a
Showing
4 changed files
with
17 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
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,8 +1,16 @@ | ||
#!/bin/bash | ||
# Delete the old artifacts | ||
rm -r app dll | ||
|
||
# Build readhook | ||
docker build --no-cache -t readhook . | ||
|
||
# Extract the library from the container | ||
docker run -d --rm --name readhook readhook sleep 10 | ||
docker cp readhook:/readhook/dll/basehook.so $PWD/basehook.so | ||
docker cp readhook:/readhook/dll/fullhook.so $PWD/fullhook.so | ||
# Run readhook and just sleep while we copy the build artifacts | ||
docker run -d --rm --name readhook readhook sleep 60 | ||
|
||
# Extract the buld artifacts | ||
docker cp readhook:/readhook/dll/ $PWD/dll/ | ||
docker cp readhook:/readhook/app/ $PWD/app/ | ||
|
||
# We're done so kill it since it's just sleeping | ||
docker kill readhook |