Coder Social home page Coder Social logo

sharetribe-docker's Introduction

About

  • this images builds from original sharetribe github repo
  • you can set custom user UID (default 1000) when building image. When container run sharetribe data load to "named volume" and bind to ./data and your user has full access to sharetribe data
docker build --build-arg ${RS_UID} --tag sharetribe .
  • you can set your personal git repo when building images. Default valuens = master branch from official repo
docker build --build-arg ${RS_GIT_BRANCH} --build-arg ${RS_GIT_REMOTE_URL} --tag sharetribe .
  • you can set RAILS_ENV when building images. Default valuens = production
docker build --build-arg ${RAILS_ENV} --build-arg ${NODE_ENV} --tag sharetribe .
  • for testing you may use builded images roobykon/sharetribe:prebuild and roobykon/sharetribe:latest
  • delayed_job and sphinx launched in one container - worker

system requirements:

docker-compose:
  • docker version 1.12.0+
  • docker-compose version 1.9.0+
docker stack:
  • docker version 17.09.0+

docker-compose:

git clone https://github.com/roobykon/sharetribe-docker.git [your_project_folder_name]
cd [your_project_folder_name]
# docker-compose.yml set vars: RS_UID RS_GIT_BRANCH RS_GIT_REMOTE_URL RAILS_ENV NODE_ENV
# .env check all vars
docker-compose up -d
# wait when image build finish ~5min
# check app logs if app container dont start
docker-compose logs --follow --timestamps --tail=100 app
# open in browser http://localhost and finish setup marketplace
docker-compose exec app /docker-entrypoint.sh --help
docker-compose exec app /docker-entrypoint.sh config all
# check email system working
# check search system working
# check memcache in app logs (optional)
# show stats
docker stats

docker stack: (THIS PART NOT TESTED)

git clone https://github.com/roobykon/sharetribe-docker.git
docker swarm init (enabled swarm mode to use 'docker stack' or adaptive docker-compose.yml for docker-compose command)
docker stack deploy --compose-file stack.yml example
check mysql logs "docker service logs -f example_mysql" and wait before "mysqld: ready for connections"
delete service with app "docker service rm example_app"
docker stack deploy -c docker-compose.yml --prune example
check logs for db_structure_load compleate "docker service logs -f example_app"
open in browser http://localhost and finish setup marketplace
check email system working
check search system working
check memcache in logs

ToDo:

  • add mailcatcher for development env
  • set user UID in container via ARG
  • update and test stack.yml
  • container with cron
  • https with letsencrypt ssl certs
  • container with backup system
  • check why delayed_job cant exec sphinx commands when delayed_job and sphinx on separate hosts

sharetribe-docker's People

Stargazers

Luiz Gabriel Correia avatar Stas avatar Mouaz Heron avatar psalias avatar Guilherme Guerra avatar

Watchers

James Cloos avatar

sharetribe-docker's Issues

\"worker\": executable file not found in $PATH": unknown

Hi I have with this error in container worker:

Cannot start service worker: OCI runtime create failed: container_linux.go:348: starting container process caused "exec: "worker": executable file not found in $PATH": unknown

Docker compose

Hi, first of all thank you for the repo.

I'm trying run with docker-compose but I'm getting this error:

Pulling worker (roobykon/sharetribe:)...
ERROR: manifest for roobykon/sharetribe:latest not found

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.