Skip to content

Latest commit

 

History

History
121 lines (80 loc) · 2.45 KB

File metadata and controls

121 lines (80 loc) · 2.45 KB

Hellō README

Development Setup

Development setup links:

Clone the Hellō Mastodon Repo

  • clone https://github.com/hellocoop/mastodon to a local folder
  • checkout the dev branch
    • the dev branch was created from the v4.0.2 tag of the upstream repo
    • when upstream releases a new version then dev will be rebased on that new stable version

VirtualBox

MacOS

brew install --cask virtualbox

Questions:

  • confirm this works
  • what version gets installed?

NFS

MacOS

  • nothing to do

Linux

sudo apt install nfs-kernel-server

If NFS hangs or in general needs a restart:

sudo systemctl status nfs-server.service

Vagrant

  1. https://developer.hashicorp.com/vagrant/docs/installation
  2. check latest version, dropdown to the right of page title
  3. https://developer.hashicorp.com/vagrant/downloads

CLI Completion

See: https://developer.hashicorp.com/vagrant/docs/cli#autocompletion

vagrant autocomplete install --bash

or most likely for MacOS:

vagrant autocomplete install --zsh

vagrant-hostsupdater Plugin

vagrant plugin install vagrant-hostsupdater

Start Mastodon

Copy .env.hello.local to .env and enter a client id and secret.

Start the virtual machine:

vagrant up

This 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
exit

Start 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.

Use Mastodon

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

Image building

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