Create a Workspace and Clone a Repository

Prerequisites

  1. Docker installed

  2. fuzeapp installed (aliased to fuze in examples).

Create Workspace

  1. Go to WebUI

  2. Choose “work locally” menu.

  3. Choose “Create Workspace.ini”

    ../_images/fuze-fuzeapp.png
  4. Add your SSH key location and where to put the FTL:

    ../_images/fuze-workspace-create.png

    Note

    The FTL location must already exist

  5. Click “download”

  6. You now have a valid workspace.ini file

    $ cat workspace.ini
    [general]
    fullname=My Name
    [email protected]
    
    [git]
    protocol="SSH"
    keyfile=/home/<name>/.ssh/id_rsa
    username=
    password=
    
    [output]
    format=csv
    
    [build]
    workspace=/home/<name>/tmp/ftl
    

    Note

    The [general] section comes from your credentials automatically

Create a Workspace and Clone therepo

  1. Move your workspace.ini to the root of the directory you wish to be your workspace

  2. Move to that directory

  3. Execute the --create-workspace <repo>:<branch> command (assume we’re cloning master branch of therepo)

    $ alias fuze='~/bin/fuzeapp_lnx'
    $ cd ~/work
    $ ls
    workspace.ini
    $ fuze --create-workspace therepo:master
    $ ls
    fuze.out workspace.ini therepo/
    $ fuze --build-map therepo/build/mybuildmap.json --target release --add-packages
    $ cd therepo
    $ git status
    On branch master
    Your branch is up to date with 'origin/master'.
    
    nothing to commit, working tree clean