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 default Dockerfile command #3608

Merged
merged 2 commits into from
Feb 5, 2024
Merged

Conversation

tillprochaska
Copy link
Contributor

@tillprochaska tillprochaska commented Feb 4, 2024

I broke the default Dockerfile command in 7cfcb5. While the Dockerfile did always specify the WSGI app aleph.manage:app, this has been incorrect for some time and it should have always been aleph.wsgi:app. Previously we never actually ran a container with the default command though and instead specified the command in the docker-compose.yml file. I removed the "duplicate" command in the docker-compose.yml in the referenced commit and thus the default command in the Dockerfile is now used.

I’ve now changed the default command specified in Dockerfile to be in line with the command previously set in docker-compose.yml (https://github.com/alephdata/aleph/blob/3.15.5/docker-compose.yml#L76).

  • The WSGI app is now aleph.wsgi:app (this is specified in gunicorn.py not via a CLI option).
  • Uses 6 workers by default (instead of 5).
  • Log level set to debug (instead of info).

Additionally, the installation guide in the docs referenced the configuration templates on the develop branch instead of main. We recently renamed main to master and changed the default branch to develop. GitHub now redirects any links that still use the old master branch to the default branch. I’ve fixed this too.

Closes #3606

I broke the default Dockerfile command in `7cfcb5`. While the Dockerfile did always specify the WSGI app `aleph.manage:app`, this has been incorrect for some time and it should have always been `aleph.wsgi:app`. Previously we never actually ran a container with the default command though and instead specified the command in the `docker-compose.yml` file. I removed the "duplicate" command in the `docker-compose.yml` in the referenced commit and thus the default command in the Dockerfile is now used.

I’ve now changed the default command specified in `Dockerfile` to be in line with the command previously set in `docker-compose.yml` (https://github.com/alephdata/aleph/blob/3.15.5/docker-compose.yml#L76).

* The WSGI app is now `aleph.wsgi:app` (this is specified in `gunicorn.py` not via a CLI option).
* Uses 6 workers by default (instead of 5).

Closes #3606
We recently renamed the `master` branch to `main` and changed the default branch in GitHub to `develop`. Because a branch with the name `master` doesn’t exist anymore, GitHub redirects all links to the default branch which is not `develop`.

In some cases this leads to problems, e.g. the installation guide effectively links to the Docker Compose configuration and environment templates on the `develop` branch instead of the stable `main` branch.
Copy link
Contributor

@stchris stchris left a comment

Choose a reason for hiding this comment

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

Thanks for the fix(es)!

@tillprochaska tillprochaska merged commit c7a1b5e into develop Feb 5, 2024
3 checks passed
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

Successfully merging this pull request may close these issues.

BUG: 'aleph.manage' has no attribute 'app'
2 participants