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

fix docker-compose -f complete.yaml up #80

Open
wants to merge 5 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions compose/bots_complete/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -12,18 +12,18 @@ RUN apt-get install -y python
RUN apt-get install -y python-dev
RUN apt-get install -y python-distribute
RUN apt-get install -y python-pip
RUN pip install --upgrade pip
# RUN pip install --upgrade pip

# Copy requirements from source
COPY ./etc /requirements
RUN pip install -r /requirements/requirements.txt

# Install additional/optional packages
RUN pip install suds-jurko==0.6
RUN pip install paramiko==2.0.2
RUN pip install pycrypto==2.6.1
RUN pip install supervisor==3.3.1
RUN pip install m3-cdecimal==2.3
RUN pip install paramiko==1.15.2

# Copy complete source
COPY . /bots
Expand Down Expand Up @@ -52,7 +52,7 @@ COPY ./compose/bots_complete/supervisord.conf /etc/supervisor/supervisord.conf
# Add Crontab file
COPY ./compose/bots_complete/crontab /usr/local/lib/python2.7/dist-packages/bots/config/

CMD [ /usr/local/bin/supervisord", "-c", "/etc/supervisor/supervisord.conf" ]
CMD [ "/usr/local/bin/supervisord", "-c", "/etc/supervisor/supervisord.conf" ]

EXPOSE 8080
EXPOSE 9001
6 changes: 3 additions & 3 deletions compose/bots_complete/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
## Introduction
This dockerized version should provide a quick installable version of BOTS that runs "out of the box".

The file contains a dockerized version with all optional functionalities activiated in BOTS:
The file contains a dockerized version with all optional functionalities activated in BOTS:

1. Web-Server (default)
2. Directory Monitor
Expand All @@ -18,11 +18,11 @@ In addition, following tools are used to control the environment:
## Docker Compose File
The docker compose file stored at the root of this repo, may be used to create the instance of BOTS by issueing:

docker-composer -f complete.yaml up
docker-compose -f complete.yaml up


Docker will then build BOTS based on Ubuntu 16:04 and Python 2.7.
Supervisor's http log-in can be passwort protected through environment variables, here defined as SUPERVUSER and SUPERVPASS.
Supervisor's http log-in can be password protected through environment variables, here defined as SUPERVUSER and SUPERVPASS.

Port 8080 is used to provide BOTS Web interface
Port 9001 is used for Supervisor HTTP interface
Expand Down
2 changes: 1 addition & 1 deletion compose/bots_complete/supervisord.conf
Original file line number Diff line number Diff line change
Expand Up @@ -33,4 +33,4 @@ password = %(ENV_SUPERVPASS)s

[unix_http_server]
file = /tmp/supervisor.sock
chmod = 0777
chmod = 0777
14 changes: 7 additions & 7 deletions src/bots/config/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -46,13 +46,13 @@
#~ #PostgreSQL:
DATABASES = {
'default': {
'ENGINE': 'django.db.backends.postgresql_psycopg2',
'NAME': 'botsdb',
'USER': 'bots',
'PASSWORD': 'botsbots',
'HOST': '127.0.0.1',
'PORT': '5432',
'OPTIONS': {},
'ENGINE': 'django.db.backends.sqlite3',
'NAME': os.path.join(PROJECT_PATH, 'botssys/sqlitedb/botsdb'),
'USER': '', #not needed for SQLite
'PASSWORD': '', #not needed for SQLite
'HOST': '', #not needed for SQLite
'PORT': '', #not needed for SQLite
'OPTIONS': {}, #not needed for SQLite
}
}

Expand Down
2 changes: 1 addition & 1 deletion src/bots/install/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@
#~ 'NAME': 'botsdb',
#~ 'USER': 'bots',
#~ 'PASSWORD': 'botsbots',
#~ 'HOST': '127.0.0.1',
#~ 'HOST': 'db',
#~ 'PORT': '5432',
#~ 'OPTIONS': {},
#~ }
Expand Down