mirror of
https://github.com/GNS3/gns3-registry.git
synced 2025-04-15 15:06:37 +00:00
Tinycore linux and check urls
This commit is contained in:
parent
7d7c9d2204
commit
36c5834e14
@ -19,25 +19,17 @@
|
||||
"adapters": 1,
|
||||
"ram": 96,
|
||||
"arch": "i386",
|
||||
"console_type": "telnet"
|
||||
"console_type": "vnc"
|
||||
},
|
||||
|
||||
"images": [
|
||||
{
|
||||
"filename": "linux-tinycore-6.4.qcow2",
|
||||
"filename": "linux-tinycore-6.4.img",
|
||||
"version": "6.4",
|
||||
"md5sum": "786a1c2f2e9db61d0580ed58a37da5dd",
|
||||
"filesize": 23920640,
|
||||
"md5sum": "e3de478780c0acb76ef92f872fe734c4",
|
||||
"filesize": 22544384,
|
||||
"download_url": "https://sourceforge.net/projects/gns-3/files/Qemu%20Appliances/",
|
||||
"direct_download_url": "http://no.public.repository.yet/linux-tinycore-6.4.qcow2"
|
||||
},
|
||||
{
|
||||
"filename": "linux-tinycore-4.7.7.qcow2",
|
||||
"version": "4.7.7",
|
||||
"md5sum": "bb4559be28875500bba2a32d3f75f6d4",
|
||||
"filesize": 26804224,
|
||||
"download_url": "https://sourceforge.net/projects/gns-3/files/Qemu%20Appliances/",
|
||||
"direct_download_url": "http://no.public.repository.yet/linux-tinycore-4.7.7.qcow2"
|
||||
"direct_download_url": "http://downloads.sourceforge.net/project/gns-3/Qemu%20Appliances/linux-tinycore-linux-6.4.img"
|
||||
}
|
||||
],
|
||||
|
||||
@ -45,13 +37,7 @@
|
||||
{
|
||||
"name": "6.4",
|
||||
"images": {
|
||||
"hda_disk_image": "linux-tinycore-6.4.qcow2"
|
||||
}
|
||||
},
|
||||
{
|
||||
"name": "4.7.7",
|
||||
"images": {
|
||||
"hda_disk_image": "linux-tinycore-4.7.7.qcow2"
|
||||
"hda_disk_image": "linux-tinycore-6.4.img"
|
||||
}
|
||||
}
|
||||
]
|
||||
|
8
check.py
8
check.py
@ -20,6 +20,7 @@ import jsonschema
|
||||
import json
|
||||
import sys
|
||||
import subprocess
|
||||
import urllib.request
|
||||
|
||||
|
||||
def check_appliance(appliance):
|
||||
@ -44,6 +45,13 @@ def check_appliance(appliance):
|
||||
sys.exit(1)
|
||||
images.add(image['filename'])
|
||||
md5sums.add(image['md5sum'])
|
||||
if 'direct_download_url' in image:
|
||||
try:
|
||||
req = urllib.request.Request(image['direct_download_url'], method='HEAD')
|
||||
urllib.request.urlopen(req)
|
||||
except (urllib.error.HTTPError, urllib.error.URLError):
|
||||
print('File error ' + image['direct_download_url'])
|
||||
sys.exit(1)
|
||||
|
||||
for version in appliance_json['versions']:
|
||||
for image in version['images'].values():
|
||||
|
@ -33,6 +33,9 @@ Tiny Core Linux installation
|
||||
|
||||
Tiny Core is Micro Core with a light GUI installed.
|
||||
|
||||
.. code:: bash
|
||||
|
||||
packer build tinycore-linux.json
|
||||
|
||||
Firefox
|
||||
'''''''''
|
||||
|
Loading…
x
Reference in New Issue
Block a user