Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Save agent #33

Closed
kltm opened this issue May 5, 2014 · 2 comments
Closed

Save agent #33

kltm opened this issue May 5, 2014 · 2 comments

Comments

@kltm
Copy link
Member

kltm commented May 5, 2014

A proposed draft of a save agent. Chris believes that just a cron job would be easier, if less powerful.

#/!bin/bash
set -e
# Any subsequent commands which fail will cause the shell script to exit immediately

# Default values
DO_UPDATE="FALSE"
DO_COMMIT="FALSE"
WORK_FOLDER="$(pwd)"

## Command line parsing
while [[ $# > 0 ]]
do
key="$1"
shift

case $key in
    -u|--update)
    DO_UPDATE="TRUE"
    ;;
    -c|--commit)
    DO_COMMIT="TRUE"
    ;;
    -f|--folder)
    WORK_FOLDER="$1"
    shift
    ;;
    *)
      # unknown option
    ;;
esac
done

#echo "DO UPDATE   = $DO_UPDATE"
#echo "DO COMMIT   = $DO_COMMIT"
#echo "WORK FOLDER = $WORK_FOLDER"

if [ "$DO_UPDATE" = "TRUE" ]; then
  echo "UPDATE Folder: $WORK_FOLDER"
  svn update --accept mine-full $WORK_FOLDER
fi

if [ "$DO_COMMIT" = "TRUE" ]; then
  echo "ADD unversioned files to SVN in folder: $WORK_FOLDER"
  svn st $WORK_FOLDER | grep "^\?" | awk "{print \$2}" | xargs svn add $1

  echo "COMMIT folder: $WORK_FOLDER"
  echo svn commit -m"automatic updated of models" $WORK_FOLDER
fi
@kltm
Copy link
Member Author

kltm commented Jun 30, 2014

Now pushing out to Amazon CDN, skipping the repo for the time being and trying to close the loop.

@kltm kltm modified the milestones: 2014-Q3, 2014-08-push Aug 12, 2014
@kltm
Copy link
Member Author

kltm commented Aug 12, 2014

While it looks like I technically got the bulk of this done in July, we have just recently closed this side of the "figure-eight".

For the viewing side, we're going to try AmiGO. I've recently pushed kltm/amigo#124, which allowed us to move ahead with with getting all of the loader bits in place. As of this writing, the AmiGO loader is now using the old ComplexAnnotation code to load the files downloaded from the CDN. So

  • cron job uploads everything saved on the filesystem to CDN
  • AmiGO loader downloads all files from CDN and attempts to load them

While we've strayed a bit from our original intention, this is likely how we'll work for a while.

@kltm kltm closed this as completed Aug 12, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants