-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Version bump to 2.0.6. Added 'ide-fetcher.py' to facilitate pulling t…
…he IDE tarball for a specific version without hard-coding the whole tarball name.
- Loading branch information
Thomas Goodwin
committed
Jul 19, 2017
1 parent
fa29db9
commit 2de451e
Showing
13 changed files
with
83 additions
and
26 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 |
---|---|---|
|
@@ -17,10 +17,9 @@ | |
# along with this program. If not, see http://www.gnu.org/licenses/. | ||
# | ||
|
||
FROM geontech/redhawk-ubuntu-runtime:2.0.5 | ||
FROM geontech/redhawk-ubuntu-runtime:2.0.6 | ||
LABEL name="Geon Technology's BU353S4 GPS Device" \ | ||
description="Geon's BU353S4" \ | ||
maintainer="Thomas Goodwin <[email protected]>" | ||
description="Geon's BU353S4" | ||
|
||
ENV DOMAINNAME "" | ||
ENV GPS_PORT "" | ||
|
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 |
---|---|---|
|
@@ -17,10 +17,9 @@ | |
# along with this program. If not, see http://www.gnu.org/licenses/. | ||
# | ||
|
||
FROM geontech/redhawk-ubuntu-runtime:2.0.5 | ||
FROM geontech/redhawk-ubuntu-runtime:2.0.6 | ||
LABEL name="REDHAWK IDE Environment" \ | ||
description="REDHAWK Integrated Development Environment Runner" \ | ||
maintainer="Thomas Goodwin <[email protected]>" | ||
description="REDHAWK Integrated Development Environment Runner" | ||
|
||
ENV RHUSER_ID 54321 | ||
|
||
|
@@ -39,6 +38,7 @@ ADD files/build/base-deps-func.sh \ | |
files/build/redhawk-source-repo-func.sh \ | ||
files/build/build-sh-process-func.sh \ | ||
files/build/standard-sdrroot.sh \ | ||
files/build/ide-fetcher.py \ | ||
files/build/ide.sh \ | ||
./ | ||
RUN bash standard-sdrroot.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 |
---|---|---|
@@ -0,0 +1,53 @@ | ||
#!/usr/bin/python | ||
# Author: Thomas Goodwin <[email protected]> | ||
|
||
import urllib2, json, os, sys, re | ||
|
||
def download_asset(path, url): | ||
asset_path = None | ||
try: | ||
file_name = os.path.basename(url) | ||
asset_path = os.path.join(path, file_name) | ||
|
||
if os.path.exists(asset_path): | ||
# Skip downloading | ||
asset_path = None | ||
else: | ||
if not os.path.exists(path): | ||
os.makedirs(path) | ||
|
||
f = urllib2.urlopen(url) | ||
with open(asset_path, "wb") as local_file: | ||
local_file.write(f.read()) | ||
|
||
except Exception as e: | ||
sys.exit('Failed to fetch IDE. Error: {0}'.format(e)) | ||
finally: | ||
return asset_path | ||
|
||
def handle_release_assets(assets): | ||
assets = [ asset for asset in assets if re.match(r'redhawk-ide.+?(?=x86_64)', asset['name'])] | ||
if not assets: | ||
sys.exit('Failed to find the IDE asset') | ||
elif len(assets) > 1: | ||
sys.exit('Found too many IDE assets matching that description...?') | ||
return download_asset('downloads', assets[0]['browser_download_url']) | ||
|
||
def run(pv): | ||
RELEASES_URL = 'http://api.github.com/repos/RedhawkSDR/redhawk/releases' | ||
ide_asset = '' | ||
try: | ||
releases = json.loads(urllib2.urlopen(RELEASES_URL).read()) | ||
releases = [r for r in releases if r['tag_name'] == pv] | ||
if releases: | ||
ide_asset = handle_release_assets(releases[0]['assets']) | ||
else: | ||
sys.exit('Failed to find the release: {0}'.format(pv)) | ||
|
||
finally: | ||
return ide_asset | ||
|
||
if __name__ == '__main__': | ||
# First argument is the version | ||
asset = run(sys.argv[1]) | ||
print asset |
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 |
---|---|---|
|
@@ -17,10 +17,9 @@ | |
# along with this program. If not, see http://www.gnu.org/licenses/. | ||
# | ||
|
||
FROM geontech/redhawk-ubuntu-runtime:2.0.5 | ||
LABEL version="2.0.5" \ | ||
description="REDHAWK GPP Runner" \ | ||
maintainer="Thomas Goodwin <[email protected]>" | ||
FROM geontech/redhawk-ubuntu-runtime:2.0.6 | ||
LABEL name="REDHAWK GPP Device" \ | ||
description="REDHAWK GPP Runner" | ||
|
||
ENV DOMAINNAME "" | ||
ENV NODENAME "" | ||
|
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 |
---|---|---|
|
@@ -17,10 +17,9 @@ | |
# along with this program. If not, see http://www.gnu.org/licenses/. | ||
# | ||
|
||
FROM geontech/redhawk-ubuntu-runtime:2.0.5 | ||
FROM geontech/redhawk-ubuntu-runtime:2.0.6 | ||
LABEL name="REDHAWK SDR RTL2832U Device" \ | ||
description="REDHAWK RTL2832U" \ | ||
maintainer="Thomas Goodwin <[email protected]>" | ||
description="REDHAWK RTL2832U" | ||
|
||
ENV DOMAINNAME "" | ||
ENV RTL_NAME "" | ||
|
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 |
---|---|---|
|
@@ -17,10 +17,9 @@ | |
# along with this program. If not, see http://www.gnu.org/licenses/. | ||
# | ||
|
||
FROM geontech/redhawk-ubuntu-runtime:2.0.5 | ||
FROM geontech/redhawk-ubuntu-runtime:2.0.6 | ||
LABEL name="REDHAWK SDR USRP_UHD Device" \ | ||
description="REDHAWK USRP_UHD w/ updated UHD driver version (3.10)" \ | ||
maintainer="Thomas Goodwin <[email protected]>" | ||
description="REDHAWK USRP_UHD w/ updated UHD driver version (3.10)" | ||
|
||
ENV DOMAINNAME "" | ||
ENV NODENAME "" | ||
|
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 |
---|---|---|
|
@@ -17,10 +17,9 @@ | |
# along with this program. If not, see http://www.gnu.org/licenses/. | ||
# | ||
|
||
FROM geontech/redhawk-ubuntu-runtime | ||
FROM geontech/redhawk-ubuntu-runtime:2.0.6 | ||
LABEL name="REST-Python Web Server" \ | ||
description="Geon's Fork of REST-Python" \ | ||
maintainer="Thomas Goodwin <[email protected]>" | ||
description="Geon's Fork of REST-Python" | ||
|
||
# Build-time configurable variables | ||
ARG REST_PYTHON=http://github.com/GeonTech/rest-python.git | ||
|
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