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

Docker dev env #959

Merged
merged 28 commits into from
Apr 23, 2018
Merged

Docker dev env #959

merged 28 commits into from
Apr 23, 2018

Conversation

wiese
Copy link
Contributor

@wiese wiese commented Sep 21, 2017

No description provided.

RUN mkdir -p /usr/share/nginx/www/spenden.wikimedia.de/current/var/cache
RUN mkdir -p /usr/share/nginx/www/spenden.wikimedia.de/current/var/doctrine_proxies
RUN mkdir -p /usr/share/nginx/www/spenden.wikimedia.de/current/var/log
RUN chown -R www-data:www-data /usr/share/nginx/www/spenden.wikimedia.de/current/var
Copy link
Member

Choose a reason for hiding this comment

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

Why are you running these as individual commands instead of joining them with && ?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Developed step by step and not groomed thereafter - this way clearly against the best practice.

@gbirke gbirke changed the title [WIP] Docker dev env Docker dev env Apr 4, 2018
@gbirke
Copy link
Member

gbirke commented Apr 4, 2018

Rebased on current master. @timEulitz will try it out on his machine and when he's successful, we can merge this.

- MYSQL_USER=fundraising
- MYSQL_PASSWORD=INSECURE PASSWORD
- MYSQL_DATABASE=fundraising
expose:
Copy link
Member

Choose a reason for hiding this comment

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

@wiese Is there a reason why there is no volume defined for the database? The current setup will delete all data and tables as soon as docker-compose is stopped.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

No explicit reason but I did not consider it needed so far. The container (and its volume) will be reused unless you explicitly remove it.
Mind "Where to Store Data" in https://hub.docker.com/_/mysql/

@gbirke gbirke force-pushed the docker-dev-env branch 6 times, most recently from 9af880c to f268ff9 Compare April 16, 2018 15:36
wiese and others added 9 commits April 20, 2018 11:47
When running with the composer image, you need to add
--ignore-platform-reqs to avoid missing dependencies
- Add working default configuration
- Fix asset copy command
- Use vendor fundraising-frontend-content
Travis should now use the same Makefile- based CI commands and
dockerized environments as the local dev env.
@gbirke gbirke merged commit bd35824 into master Apr 23, 2018
@gbirke gbirke deleted the docker-dev-env branch April 23, 2018 09:40
@JeroenDeDauw
Copy link
Contributor

image

@JeroenDeDauw
Copy link
Contributor

Please beware that the README has a table of contents at its top which is manually maintained. So when changing the section headers or removing/adding/moving sections, this thing needs updating. This PR broke the TOC without anyone noticing, hence me mentioning it here, since perhaps no one was aware of the need to keep this in mind.

@gbirke
Copy link
Member

gbirke commented Apr 25, 2018

Thank for pointing this out, I've added an npm task to autogenerate the TOC in #1221

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

4 participants