Skip to content

Instantly share code, notes, and snippets.

@markf3lton
Last active June 14, 2019 15:39
Show Gist options
  • Save markf3lton/0ea58a7dd00145d6f1a49e1f1eceb81f to your computer and use it in GitHub Desktop.
Save markf3lton/0ea58a7dd00145d6f1a49e1f1eceb81f to your computer and use it in GitHub Desktop.
Tokaido Quick Start

Tokaido Quick Start

Docker enables fast local environments. Tokaido gets you quickly up and running.

If you already have Docker, update to the latest version, otherwise, download Docker from https://docs.docker.com/docker-for-mac/install. You will need to login with your Docker ID and password.

Install Tokaido with Homebrew

brew tap ironstar-io/tap
brew install tokaido

Try Tokaido with a Drupal archive dump

Acquia Cloud Site Factory makes it one-click easy to archive any Drupal site (codebase, database, files, theme). These bacups are a good entry-point for trying Tokaido.

git init
tok up
  • If you are prompted to install mkcert follow the instructions

  • To open the site in Chrome

tok open
  • To ssh into your Docker container
ssh customer_3176_1559787588.tok     

Issues I observed

I recommend installing Drupal (with the minimal profile) just to quickly set up a database (any database)

  • To import the database dump from your Drupal archive, first ssh into your Docker container, then
drush sqlc < ../database.sql
  • If that works, get your uli
drush uli
  • If you to browser your database with Adminer, do
tok config-set services adminer enabled true
tok rebuild
tok open adminer

The Adminer details I used are

mysql (for database type)
tokaido
tokaido
tokaido
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment