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 build problems #3

Open
pjebs opened this issue Feb 6, 2017 · 2 comments
Open

Docker build problems #3

pjebs opened this issue Feb 6, 2017 · 2 comments

Comments

@pjebs
Copy link

pjebs commented Feb 6, 2017

@jekil I tried to build the docker image using:
docker build -t ghiro .

The build process failed due to this situation:
Can you please tell me how I can fix it. It is urgent. Thank you in advance.

Step 22 : RUN cd /var/www/ghiro && python manage.py syncdb --noinput
 ---> Running in ebf4105e493c
Traceback (most recent call last):
  File "manage.py", line 10, in <module>
    execute_from_command_line(sys.argv)
  File "/usr/local/lib/python2.7/dist-packages/django/core/management/__init__.py", line 353, in execute_from_command_line
    utility.execute()
  File "/usr/local/lib/python2.7/dist-packages/django/core/management/__init__.py", line 302, in execute
    settings.INSTALLED_APPS
  File "/usr/local/lib/python2.7/dist-packages/django/conf/__init__.py", line 55, in __getattr__
    self._setup(name)
  File "/usr/local/lib/python2.7/dist-packages/django/conf/__init__.py", line 43, in _setup
    self._wrapped = Settings(settings_module)
  File "/usr/local/lib/python2.7/dist-packages/django/conf/__init__.py", line 99, in __init__
    mod = importlib.import_module(self.SETTINGS_MODULE)
  File "/usr/lib/python2.7/importlib/__init__.py", line 37, in import_module
    __import__(name)
  File "/var/www/ghiro/ghiro/settings.py", line 143, in <module>
    if not os.path.exists(LOG_DIR):
NameError: name 'LOG_DIR' is not defined
The command '/bin/sh -c cd /var/www/ghiro && python manage.py syncdb --noinput' returned a non-zero code: 1
@pjebs
Copy link
Author

pjebs commented Feb 6, 2017

is it because syncdb is deprecated? or because the Dockerfile is for an older version of ghiro?

@pjebs
Copy link
Author

pjebs commented Feb 8, 2017

@jekil I would like to help fix up the Dockerfile and make the update available to all.
I don't know python but the error is python related. It would be great if you can help me solve the python related issues.

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

No branches or pull requests

1 participant