Giter Site home page Giter Site logo

jamesghazard / cmacc-tech Goto Github PK

View Code? Open in Web Editor NEW

This project forked from commonaccord/cmacc-tech

0.0 2.0 0.0 1.07 MB

The Cmacc software, with no Docs. The place for technical improvements. We have here the code /vendor/library/ ; the views /views/ and some basic building blocks in /Doc/U/ and /Doc/Z/

Home Page: http://commonaccord.org

License: MIT License

PHP 64.86% CSS 19.49% HTML 3.71% JavaScript 8.42% Makefile 3.52%

cmacc-tech's Introduction

# CommonAccord

## Docker

### How to run the docker image?

If you have a docker setup, including environment export, up and running, you
can `make run` to have a stack up in a few seconds. The first run will take a
bit of time as docker downloads the PHP/Apache image, but subsequent runs
should take less than a second.

Running the code using the docker method have several benefits. One of the most
obvious is that the codebase is decoupled from the documents base: while the
code is running in an isolated container within docker, your documents can stay
on your computer wherever you want. You just need to specify `DOCPATH=...` on
run to have your documents mounted (read/write) into the runtime container.

For example::

    DOCPATH=/Users/johndoe/Documents/LegalDocuments make start

### How to access the app?

If you're running Docker on Linux, the daemon is usually running locally, and
thus the exposed ports will be accessible using the localhost ip (aka
127.0.0.1).

If you're running Docker on MacOSX (probably also true on windows), docker is
using a virtual machine to run its daemon and thus you will access the
container using the virtual machine IP. This IP depends on your setup, defaults
on OSX is 192.168.99.100. To get the actual IP of the virtual machine running
on your computer, you can use `docker-machine ip`.

Defaults should be:

- http://127.0.0.1:8080/ on Linux
- http://192.168.99.100:8080/ on OSX

### How to change which port the container will expose on docker daemons machine?

You can change the exposed port by using the DOCKER_HTTP_PORT environment variable while running the make command.

For example, to listen on the 1234 port, use:

    DOCPATH=/Users/johndoe/Documents/LegalDocuments DOCKER_HTTP_PORT=1234 make start


cmacc-tech's People

Contributors

jamesghazard avatar hazardj avatar hartym avatar mdangear avatar

Watchers

 avatar James Cloos avatar

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.