This repository was archived by the owner on Jan 25, 2018. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 34
Add dockerfile #277
Merged
Merged
Add dockerfile #277
Changes from all commits
Commits
Show all changes
4 commits
Select commit
Hold shift + click to select a range
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,16 @@ | ||
| # This is designed to be run from fig as part of a | ||
| # Marketplace development environment. | ||
|
|
||
| # NOTE: this is not provided for production usage. | ||
|
|
||
| FROM mozillamarketplace/centos-mysql-mkt:0.1 | ||
|
|
||
| RUN mkdir -p /pip/{cache,build} | ||
| ADD requirements /pip/requirements | ||
| WORKDIR /pip | ||
| RUN pip install -b /pip/build --download-cache /pip/cache --no-deps -r /pip/requirements/dev.txt | ||
|
|
||
| EXPOSE 2602 | ||
|
|
||
| ENV SOLITUDE_DATABASE mysql://root:@mysql_1:3306/solitude | ||
| ENV MEMCACHE_URL memcache_1:11211 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,12 @@ | ||
| # Startup script for running Solitude under Docker. | ||
|
|
||
| # Check database exists. If not create it first. | ||
| mysql -u root --host mysql_1 -e 'use solitude;' | ||
| if [ $? -ne 0 ]; then | ||
| echo "Solitude database doesn't exist. Let's create it" | ||
| mysql -u root --host mysql_1 -e 'create database solitude' | ||
| echo "Since we didn't have a db. Lets run the migrations." | ||
| schematic migrations/ | ||
| fi | ||
|
|
||
| python manage.py runserver 0.0.0.0:2602 | ||
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I don't think we need to specify the host or port here since those are the values it will default to?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We do need the host to be that, the default is localhost. Port perhaps not, but this is explicit and specific to the docker setup so I think it's ok. If we don't expose the service on all interfaces the linked services can't see it.