Skip to content

Instantly share code, notes, and snippets.

@42milez
Created February 7, 2020 13:45
Show Gist options
  • Save 42milez/15eba93ae4d37fb48295a3f496453dde to your computer and use it in GitHub Desktop.
Save 42milez/15eba93ae4d37fb48295a3f496453dde to your computer and use it in GitHub Desktop.
#!/bin/bash
DOCKER_IMAGE=42milez/hanami:latest
DOCKER_WORK_DIR=/root
PROJECT_DIR=$(pwd)
DATABASE=postgres
docker run \
-w ${DOCKER_WORK_DIR} \
-v "${PROJECT_DIR}:${DOCKER_WORK_DIR}" \
${DOCKER_IMAGE} \
hanami new . \
--database=${DATABASE}
docker run \
-w ${DOCKER_WORK_DIR} \
-v "${PROJECT_DIR}:${DOCKER_WORK_DIR}" \
${DOCKER_IMAGE} \
bundle install
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment