Development setup links:
- clone https://github.com/hellocoop/mastodon to a local folder
- checkout the
devbranch- the
devbranch was created from thev4.0.2tag of the upstream repo - when upstream releases a new version then
devwill be rebased on that new stable version
- the
- download platform specific version from https://www.virtualbox.org/wiki/Downloads
- use latest version: 7.0.4
brew install --cask virtualboxQuestions:
- confirm this works
- what version gets installed?
- nothing to do
sudo apt install nfs-kernel-serverIf NFS hangs or in general needs a restart:
sudo systemctl status nfs-server.service- https://developer.hashicorp.com/vagrant/docs/installation
- check latest version, dropdown to the right of page title
- https://developer.hashicorp.com/vagrant/downloads
See: https://developer.hashicorp.com/vagrant/docs/cli#autocompletion
vagrant autocomplete install --bashor most likely for MacOS:
vagrant autocomplete install --zshvagrant plugin install vagrant-hostsupdaterCopy .env.hello.local to .env and enter a client id and secret.
Start the virtual machine:
vagrant upThis might take a while as it downloads, compiles and installs many packages.
Finalise virtual machine setup (known issue that a few steps are missing):
vagrant ssh
cd /vagrant
gem install bundler:2.3.26 && bundle install && gem install foreman
exitStart Mastodon:
vagrant ssh -c "cd /vagrant && foreman start"You may want to create an alias for the above start command as it is needed after each vagrant up.
Use vagrant halt and vagrant up or vagrant destroy and vagrant up as needed.
In your browser navigate to http://mastodon.local/
Admin account credentials:
- username:
admin@mastodon.local - password:
mastodonadmin
Legacy sign-in form available at: http://mastodon.local/auth/sign_in
To build the hello-mastodon image
npm run docker
To publish the hellocoop/mastodon image to Docker Hub
./publish.sh
./version.sh will increment the version in HELLO_VERSION.txt