Creating an initial repository from scratch
In this example, we will use both Iguana and standalone fossil executable to create a repository file with our own set of examples.
- Create a new Iguana working directory my_working_dir. Run iguana with ‘iguana –run –working dir my_working_dir‘
- Create a channel that you want to use an example. The name you give to the channel will be shown in the list of existing projects when importing.
- Edit the script. Add any required shared modules and other support files (such as VMD’s)
- When you are ready to add the channel to a repository, copy my_working_dir/edit/<user name> into a temporary directory (tmp_dir).
- Remove tmp_dir/_FOSSIL_
- From within the tmp_dir, do the following set of commands:
- fossil new initial.sqlite
- fossil open initial.sqlite
- fossil add <CHANNEL_GUID>
- fossil add shared
- fossil add other
- fossil commit -f -m “My Initial Revision Name” –tag “My Example Name”
- fossil close
Note: The CHANNEL_GUID is a 32 character hexadecimal ID unique for each channel. The mapping from channel names to GUIDs can be observed in IguanaConfiguration.xml.
- Add initial.sqlite to your Iguana manual installation zip file. If initial.sqlite already exists inside the zip file, remove it first.
Continue: Working outside the install directory