-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
add basic fake implementation of sdaccel-builder for testing (#266)
* build fake-sdaccel-builder image for fake-batch testing
- Loading branch information
Max Siegieda
authored
Nov 13, 2018
1 parent
899ac23
commit eb6f968
Showing
5 changed files
with
73 additions
and
0 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
FROM alpine:3.8 | ||
|
||
RUN apk add bash curl | ||
|
||
COPY aws/*.sh /opt/ | ||
WORKDIR /mnt |
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,23 @@ | ||
#!/bin/bash | ||
set -e | ||
|
||
function post_event { | ||
curl -XPOST -H "Content-Type: application/json" -d '{"status": "'"$1"'", "message": "'"$2"'", "code": '${3-0}'}' "$CALLBACK_URL" &> /dev/null | ||
} | ||
|
||
post_event STARTED | ||
|
||
echo "downloading source code... done" | ||
|
||
echo "compiling host cmds... done" | ||
|
||
echo "compiling fpga kernel..." | ||
|
||
for i in $(seq 1 100) | ||
do echo $i% | ||
sleep 1 | ||
done | ||
|
||
echo "uploading artifacts... done" | ||
|
||
post_event COMPLETED |
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,21 @@ | ||
#!/bin/bash | ||
set -e | ||
|
||
function post_event { | ||
curl -XPOST -H "Content-Type: application/json" -d '{"status": "'"$1"'", "message": "'"$2"'", "code": '${3-0}'}' "$CALLBACK_URL" &> /dev/null | ||
} | ||
|
||
post_event STARTED | ||
|
||
echo "downloading source code... done" | ||
|
||
echo "generating graph..." | ||
|
||
for i in $(seq 1 100) | ||
do echo $i% | ||
sleep 1 | ||
done | ||
|
||
echo "uploading graph... done" | ||
|
||
post_event COMPLETED |
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,19 @@ | ||
#!/bin/bash | ||
set -e | ||
|
||
function post_event { | ||
curl -XPOST -H "Content-Type: application/json" -d '{"status": "'"$1"'", "message": "'"$2"'", "code": '${3-0}'}' "$CALLBACK_URL" &> /dev/null | ||
} | ||
|
||
post_event STARTED | ||
|
||
echo "downloading source code... done" | ||
|
||
echo "running simulation..." | ||
|
||
for i in $(seq 1 100) | ||
do echo $i% | ||
sleep 1 | ||
done | ||
|
||
post_event COMPLETED |