Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[#4] Create Docker for Development #27

Merged
merged 8 commits into from
Sep 11, 2017
Merged

[#4] Create Docker for Development #27

merged 8 commits into from
Sep 11, 2017

Conversation

empeje
Copy link
Contributor

@empeje empeje commented Sep 4, 2017

@dogi and @paulbert we need to arrange a demo session for this one.

Basically in this PR I want to increase the development environment for faster development using docker and docker-compose. Checkout my PR and see readme for testing.

Solved #4

@empeje empeje changed the title [WIP] Create Docker for Development [#4] Create Docker for Development Sep 7, 2017
Copy link
Member

@dogi dogi left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@mappuji very very awesome

can you change the file names to accommodate future file structure

docker
├── db-init
│   ├── Dockerfile
│   └── rpi-Dockerfile
├── planet
│   ├── Dockerfile
│   └── rpi-Dockerfile
├── planet-dev.yml
├── planet.yml
├── rpi-planet-dev.yml
└── rpi-planet.yml

## Description
This docker compose can be use for your development environment and very handy, you can spawn the development environment in a matter of seconds and start your development. Your code changes in host folder are automatically reflected to docker and ready to test in your browser.

## How to use
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Add how to use it

tells about docker logs

couchdb:
expose:
- 5984
image: klaemo/couchdb
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Better to use official docker image I think

Copy link
Member

@dogi dogi left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

thanks

cd -
# End add CORS to CouchDB

# Add initial Couch databases here
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

remove trailing and following lines ;) thanks @mappuji

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

or just remove it ...

git clone https://github.com/pouchdb/add-cors-to-couchdb.git
cd add-cors-to-couchdb
npm install
node bin.js http:https://couchdb:5984
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

move to after wait for couchdb

echo "..."
sleep 5
WAIT_TIME=$(expr $WAIT_TIME + 5)
done
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

check if couchdb is already initialized

VOLUME ["/$APP"]
WORKDIR /$APP

ADD ./docker-entrypoint.sh docker-entrypoint.sh
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

;)

@dogi dogi merged commit ca5f734 into open-learning-exchange:master Sep 11, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants