Skip to content

Commit

Permalink
unified repos
Browse files Browse the repository at this point in the history
  • Loading branch information
d-bizzi committed Jan 28, 2018
1 parent 5a86167 commit 09156d3
Show file tree
Hide file tree
Showing 48 changed files with 3,453 additions and 1 deletion.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
mongodb/
26 changes: 25 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1 +1,25 @@
# llamagotchi
# llamagotchi

Setup docker and docker-compose

Build the images


`
cd docker_images/server/

docker build -t meleeisland/llamagotchi-server .

cd ../web

docker build -t meleeisland/llamagotchi-client .

cd ../../
`

Run the containers

`docker-compose up -d`


Access to your llama on http://localhost:1337
23 changes: 23 additions & 0 deletions docker-compose.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
version: '3'
services:
mongo:
image: mongo
volumes:
- ./mongodb/llamadb/:/data/db
llamaserver:
image: meleeisland/llamagotchi-server
ports:
- 8082:8082
environment:
PORT: 8082
TICKS: 1
DELAY: 1
llamaweb:
image: meleeisland/llamagotchi-client
ports:
- 1337:1337
volumes:
- ./docker_images/web/src:/usr/src/app/src/
- ./docker_images/web/views:/usr/src/app/views/
environment:
PORT: 1337
104 changes: 104 additions & 0 deletions docker_images/server/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,104 @@
# Byte-compiled / optimized / DLL files
__pycache__/
*.py[cod]
*$py.class

# C extensions
*.so

# Distribution / packaging
.Python
env/
build/
develop-eggs/
dist/
downloads/
eggs/
.eggs/
lib/
lib64/
parts/
sdist/
var/
wheels/
*.egg-info/
.installed.cfg
*.egg

# PyInstaller
# Usually these files are written by a python script from a template
# before PyInstaller builds the exe, so as to inject date/other infos into it.
*.manifest
*.spec

# Installer logs
pip-log.txt
pip-delete-this-directory.txt

# Unit test / coverage reports
htmlcov/
.tox/
.coverage
.coverage.*
.cache
nosetests.xml
coverage.xml
*.cover
.hypothesis/

# Translations
*.mo
*.pot

# Django stuff:
*.log
local_settings.py

# Flask stuff:
instance/
.webassets-cache

# Scrapy stuff:
.scrapy

# Sphinx documentation
docs/_build/

# PyBuilder
target/

# Jupyter Notebook
.ipynb_checkpoints

# pyenv
.python-version

# celery beat schedule file
celerybeat-schedule

# SageMath parsed files
*.sage.py

# dotenv
.env

# virtualenv
.venv
venv/
ENV/

# Spyder project settings
.spyderproject
.spyproject

# Rope project settings
.ropeproject

# mkdocs documentation
/site

# mypy
.mypy_cache/


save*.json
10 changes: 10 additions & 0 deletions docker_images/server/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
FROM python:2

WORKDIR /usr/src/app

COPY requirements.txt ./
RUN pip install --no-cache-dir -r requirements.txt

COPY . .

CMD [ "python", "./server.py" ]
Loading

0 comments on commit 09156d3

Please sign in to comment.