Skip to content

Commit

Permalink
Merge branch 'dev'
Browse files Browse the repository at this point in the history
  • Loading branch information
bokuore committed Jan 4, 2020
2 parents 91d1b2c + adc30c3 commit 6d26d34
Show file tree
Hide file tree
Showing 263 changed files with 479 additions and 128,545 deletions.
66 changes: 66 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,71 @@
# Change Log

## [1.1.0] - 2020-01-02

### Core 1.1.1

#### Added

- API signature verify
- Add go mod
- Add DNS to API '/address_pools/'(query address pool list)
- Add CreateTime/MAC address to instance/guest

#### Changed

- Call core API via prefix '/api/v1/'
- Change "/media_image_files/:id" to "/media_images/:id/file/"
- Change "/disk_image_files/:id" to "/disk_images/:id/file/"

#### Fixed

- Search guest in an empty cell return a proper result
- Properly return a pending error of instance when get status

### Cell 1.1.1

#### Added

- Add go mod

#### Changed

- Call core API via prefix '/api/v1/'
- Change "/media_image_files/:id" to "/media_images/:id/file/"
- Change "/disk_image_files/:id" to "/disk_images/:id/file/"
- Reset system before initialization change from error to a warning
- Reduce log for DHCP warning
- Network detect interval change to two minutes after established some IP
- Add CreateTime/MAC address to instance

### FrontEnd 1.1.3

#### Added

- Add signature when call Core API
- Add go mod
- Add web_root option to "frontend.cfg" for hosting portal files
- Add cors_enable option to "frontend.cfg" for CORS control

#### Changed

- Call core API via prefix '/api/v1/'
- Change "/media_image_files/:id" to "/media_images/:id/file/"
- Change "/disk_image_files/:id" to "/disk_images/:id/file/"
- A new portal completely was rewritten using React
- Web pages move from 'resource' to 'web_root'

#### Fixed

- Visibility interface broken
- Query logs missing and wrong order

### Installer 1.1.0

#### Changed

- Change directory of frontend portal files from 'resource' to 'web_root'

## [1.0.0] - 2019-07-14

### Core 1.0.0
Expand Down
19 changes: 19 additions & 0 deletions build.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
#!/bin/bash

TARGET=./nano_installer.tar.gz
SOURCE=./nano_installer/
if [ -f "$TARGET" ]; then
rm -f $TARGET
echo $TARGET removed
fi
HASH=./nano_installer.sha1sum
if [ -f "$HASH" ]; then
rm -f $HASH
echo $HASH removed
fi

tar zcfv $TARGET $SOURCE
echo new package $TARGET created
sha1sum $TARGET > $HASH
echo hash $HASH genereated
echo build package success
96 changes: 96 additions & 0 deletions fetch.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,96 @@
#!/bin/bash
BinPath=nano_installer/bin
Core=core
Cell=cell
FrontEnd=frontend
WebRoot=web_root

CoreSource=../$Core/$Core
CoreTarget=$BinPath/$Core
if [ ! -f "$CoreSource" ]; then
echo $CoreSource not exists
exit 1
fi

cp $CoreSource $CoreTarget

if [ $? -ne 0 ]; then
echo fetch $CoreSource fail
exit 1
fi

echo $CoreSource copied to $CoreTarget

CellSource=../$Cell/$Cell
CellTarget=$BinPath/$Cell
if [ ! -f "$CellSource" ]; then
echo $CellSource not exists
exit 1
fi

cp $CellSource $CellTarget

if [ $? -ne 0 ]; then
echo fetch $CellSource fail
exit 1
fi

echo $CellSource copied to $CellTarget

FrontSource=../$FrontEnd/$FrontEnd
FrontTarget=$BinPath/$FrontEnd
if [ ! -f "$FrontSource" ]; then
echo $FrontSource not exists
exit 1
fi

cp $FrontSource $FrontTarget

if [ $? -ne 0 ]; then
echo fetch $FrontSource fail
exit 1
fi

echo $FrontSource copied to $FrontTarget


WebSource=../$FrontEnd/$WebRoot
WebTarget=$BinPath/frontend_files
CurrentWeb=$WebTarget/$WebRoot

if [ ! -d "$WebSource" ]; then
echo Web file path: $WebSource not exists
exit 1
fi

if [ -d "$CurrentWeb" ]; then
rm -Rf $CurrentWeb
if [ $? -ne 0 ]; then
echo delete path $CurrentWeb fail
exit 1
fi
echo Previous web files in $CurrentWeb deleted
fi

\cp -r $WebSource $WebTarget

if [ $? -ne 0 ]; then
echo fetch $WebSource fail
exit 1
fi

echo all web files in $WebSource copied to $WebTarget

echo fetch success

exit 0










17 changes: 17 additions & 0 deletions generate.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
#!/bin/bash
./fetch.sh

if [ $? -ne 0 ]; then
echo fetch source files fail
exit 1
fi

./build.sh
if [ $? -ne 0 ]; then
echo build pacakge fail
exit 1
fi

echo latest package generated

exit 0
1 change: 0 additions & 1 deletion nano_installer.sha1

This file was deleted.

1 change: 1 addition & 0 deletions nano_installer.sha1sum
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
9ff23b848c906ae2b96a876de073533920aab85e ./nano_installer.tar.gz
Binary file modified nano_installer/bin/cell
Binary file not shown.
Binary file modified nano_installer/bin/core
Binary file not shown.
Binary file modified nano_installer/bin/frontend
Binary file not shown.
21 changes: 0 additions & 21 deletions nano_installer/bin/frontend_files/resource/LICENSE

This file was deleted.

Loading

0 comments on commit 6d26d34

Please sign in to comment.