Skip to content

Commit

Permalink
Update run
Browse files Browse the repository at this point in the history
  • Loading branch information
adrienkohlbecker committed Oct 22, 2018
1 parent 78a6006 commit 9ffc761
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 5 deletions.
7 changes: 3 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -37,8 +37,7 @@ $ cd datadog-agent-armv7
# run the build
$ ./run.sh

# this will leave a .deb in the following directory
$ ssh SCW_SERVER
$ find ~/.omnibus/pkg -name "*.deb"
./datadog-agent_1%3a6.5.2-1_armhf.deb
# this will leave a .deb in the current directory
$ find . -name "*.deb"
./datadog-agent_6.5.2~armv7-1_armhf.deb
```
7 changes: 6 additions & 1 deletion run.sh
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ set -euxo pipefail
# C1 means you get a bare-metal armv7 box
# debian stretch is the base OS for raspbian
SERVER=$(scw create --commercial-type=C1 ubuntu-xenial)
IP=$(scw ps -l | grep C1 | sed 's/\s\s\+/|/g' | cut -d'|' -f6)

# ensure we drop the server at the end
rm_server() {
Expand All @@ -20,7 +21,7 @@ scw start $SERVER
# wait for it to boot
scw exec --wait $SERVER /bin/true

# run the build
# copy the files
scw cp build.sh $SERVER:/root
scw cp 0001-Add-postgresql-dependency-on-ARM-and-pass-environmen.patch $SERVER:/root
scw cp 0001-Apply-patches-to-source.patch $SERVER:/root
Expand All @@ -29,4 +30,8 @@ scw cp 0001-Compile-the-process-agent-from-source-within-omnibus.patch $SERVER:/
scw cp 0001-Don-t-use-atomic-64-bit-variants.patch $SERVER:/root
scw cp 0001-Support-32-bit-address-sizes.patch $SERVER:/root

# run the build
scw exec $SERVER /root/build.sh

# grab the output
scp "root@$IP:/root/.omnibus/pkg/*.deb" .

0 comments on commit 9ffc761

Please sign in to comment.