For the sake of simplicity, the procedures described in this section make a few assumptions about how MyDojo was installed (see First Installation). Nevertheless, they can be easily adapted for different setups (by adapting directory paths, etc).
# Switch to MyDojo directory
cd ~/dojo-app/docker/my-dojo
# Stop MyDojo
./dojo.sh stop
# Switch to user home directory
cd ~
# Get latest source code from Master repository
wget https://code.samourai.io/dojo/samourai-dojo/-/archive/master/samourai-dojo-master.zip
# Uncompress the archive
unzip samourai-dojo-master.zip -d .
# Overwrite the dojo-app directory with the content of the archive
cp -a samourai-dojo-master/. dojo-app/
Check the release notes for a list of new features that may require to tune the value of new configuration options.
If applicable, edit the templates files stored in ~/dojo-app/docker/my-dojo/conf/
and modify the values set for new configuration options.
# Switch to MyDojo directory
cd ~/dojo-app/docker/my-dojo
# Start Upgrade
./dojo.sh upgrade
Confirm that you want to upgrade MyDojo with Y and ENTER
The shell script is going to rebuild the Docker containers. MyDojo will be automatically restarted after the containers have been rebuilt.
# Switch to user's home directory
cd ~
# Remove downloaded files
rm -rf samourai-dojo-master
# Remove ZIP archive
rm master.zip
This procedure allows to upgrade MyDojo to a specific version X.Y.Z
# Switch to MyDojo directory
cd ~/dojo-app/docker/my-dojo
# Stop MyDojo
./dojo.sh stop
# Switch to user home directory
cd ~
# Get target version source code from Master repository
wget https://code.samourai.io/dojo/samourai-dojo/-/archive/vX.Y.Z/samourai-dojo-master.zip
# Uncompress the archive
unzip unzip vX.Y.Z.zip -d .
# Overwrite the dojo-app directory with the content of the archive
cp -a samourai-dojo-X.Y.Z/. dojo-app/
Check the release notes for a list of new features that may require to tune the value of new configuration options.
If applicable, edit the templates files stored in ~/dojo-app/docker/my-dojo/conf/
and modify the values set for new configuration options.
# Switch to MyDojo directory
cd ~/dojo-app/docker/my-dojo
# Start Upgrade
./dojo.sh upgrade
Confirm that you want to upgrade MyDojo with Y and ENTER
The shell script is going to rebuild the Docker containers. MyDojo will be automatically restarted after the containers have been rebuilt.
# Switch to user's home directory
cd ~
# Remove downloaded files
rm -rf samourai-dojo-X.Y.Z
# Remove ZIP archive
rm vX.Y.Z.zip