Skip to content

Commit

Permalink
transition to using github releases for distribution
Browse files Browse the repository at this point in the history
  • Loading branch information
mfthomps committed Dec 7, 2020
1 parent 2c2f438 commit fcbbe7d
Show file tree
Hide file tree
Showing 8 changed files with 24 additions and 9 deletions.
7 changes: 7 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ The Labtainers website, and downloads (including VM appliances with Labtainers p

Distribution created: mm/dd/yyyy
Revision:
Commit:
Branch:

## Content
Expand Down Expand Up @@ -72,6 +73,12 @@ The installation script and the update-designer.sh script set environment variab
so you may want to logout/login, or start a new bash shell before using Labtainers the
first time.

December 4, 2020
- Transition distribution of tar to GitHub releaese artifacts
- Eliminate seperate designer tar file, use git repo tarball.
- Testing of grader web functions for analysis of student lab artifacts
- Clear logs from full smoketest and delete grader container in removelab command.

December 1, 2020
- The iptables2 lab assessment relied on random ports being "unknown" to nmap.
- Use a sync diretory to delay smoketests from starting prior to lab startup.
Expand Down
5 changes: 4 additions & 1 deletion distrib/mkdist.sh
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,8 @@ function contains() {
echo "n"
return 1
}
revision=`git describe --always`
commit=`git describe --always`
revision=`git tag`
skip="skip-labs"
skiplist=""
lines=`cat $skip`
Expand Down Expand Up @@ -51,6 +52,7 @@ git archive $branch README.md | tar -x -C $ltrunk
#git archive $branch | tar -x -C $ltrunk
sed -i "s/mm\/dd\/yyyy/$(date '+%m\/%d\/%Y %H:%M')/" $ltrunk/README.md
sed -i "s/^Revision:/Revision: $revision/" $ltrunk/README.md
sed -i "s/^Commit:/Commit: $commit/" $ltrunk/README.md
sed -i "s/^Branch:/Branch: $branch/" $ltrunk/README.md
#git archive master config | tar -x -C $ltrunk
$here/fix-git-dates.py config $ltrunk $branch
Expand Down Expand Up @@ -106,6 +108,7 @@ cd $here
cp labtainer.tar $myshare
cp labtainer_pdf.zip $myshare
if [[ "$1" == "-r" ]]; then
mkdir -p artifacts
cp labtainer.tar artifacts/
cp labtainer_pdf.zip artifacts/
fi
Expand Down
3 changes: 3 additions & 0 deletions distrib/release/README.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
Temporary directory resulting from botched change in distribution strategy.
Had used github large files. Moving instead to github releases. This "update"
is just the update-add.sh script that will download from the proper url.
3 changes: 0 additions & 3 deletions distrib/release/labtainer-developer.tar

This file was deleted.

4 changes: 2 additions & 2 deletions distrib/release/labtainer.tar
Git LFS file not shown
3 changes: 0 additions & 3 deletions distrib/release/labtainer_pdf.zip

This file was deleted.

7 changes: 7 additions & 0 deletions setup_scripts/update-add.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,3 +3,10 @@ if [[ -z $hasnew ]];then
#echo "nope"
$LABTAINER_DIR/setup_scripts/pull-all.py
fi
hascommit=$(grep "^Commit:" labtainer/trunk/README.md)
if [[ -z "$hascommit" ]]; then
wget --quiet https://github.com/mfthomps/Labtainers/releases/latest/download/labtainer.tar -O labtainer.tar
sync
cd ..
tar xf labtainer/labtainer.tar --keep-newer-files --warning=none
fi
1 change: 1 addition & 0 deletions setup_scripts/update-labtainer.sh
Original file line number Diff line number Diff line change
Expand Up @@ -103,6 +103,7 @@ fi
grep "^Distribution created:" labtainer/trunk/README.md | awk '{print "Updated to release of: ", $3, $4}'
grep "^Branch:" labtainer/trunk/README.md | awk '{print "branch: ", $2}'
grep "^Revision:" labtainer/trunk/README.md | awk '{print "Revision: ", $2}'
grep "^Commit:" labtainer/trunk/README.md | awk '{print "Commit: ", $2}'
# fix broken LABTAINER_DIR
isbroken=$(grep LABTAINER_DIR=/trunk ~/.bashrc)
if [[ ! -z $isbroken ]]; then
Expand Down

0 comments on commit fcbbe7d

Please sign in to comment.