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

Instructions for setting up junction using Docker post junction upgrade. #761

Conversation

RajatRajdeep
Copy link
Contributor

@RajatRajdeep RajatRajdeep commented May 4, 2023

Major Changes:

  1. Added instructions in the ReadMe file for setting up junction using Docker post junction upgrade.
    Task: Update the docs post junction upgrade and docker setup #753

  2. Updated the psycopg version to resolve SCRAM authentication requires libpq version 10 issue.
    Captured Junction Issue: SCRAM authentication error when running Docker compose up #759
    The above issue occurred due to following psycopg issue which got resolved in version2.9.6: sqlalchemy.exc.OperationalError: (psycopg2.OperationalError) SCRAM authentication requires libpq version 10 or above psycopg/psycopg2#1360

3. Build the junction_local image using the following command: ```docker build -t junction_local .```
4. Start the project by running the following command: ```docker-compose up```
5. Access the application at https://localhost:8888.

Copy link

Choose a reason for hiding this comment

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

I think we need to add a note for the apple silicon machines as suggested below.

Suggested change
> Note:
> For Apple Silicon machines set the following environment variable before building the junction image.
> ```sh
> export DOCKER_DEFAULT_PLATFORM=linux/amd64
> ```

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Thanks @leshravnya for the suggestion.
The issue exist in psycopg 2.9.5 which got resolved in version 2.9.6, So I have updated the psycopg version to 2.9.6.

Choose a reason for hiding this comment

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

Oh that's great then. Let me try it out.

@ananyo2012 ananyo2012 changed the base branch from feature/upgrade-junction to feature/update-docs June 14, 2023 13:20
@ananyo2012 ananyo2012 merged commit d350f2c into pythonindia:feature/update-docs Jun 14, 2023
@ananyo2012
Copy link
Contributor

Thanks @RajatRajdeep for your contribution. This is merged to my feature branch for updating docs

ananyo2012 added a commit that referenced this pull request Jun 14, 2023
* Update Devlopment setup docs

* Instructions for setting up junction using Docker post junction upgrade. (#761)

* Added instructions in the ReadMe file for setting up junction using Docker post junction upgrade.

* Updated the psycopg version to resolve - SCRAM authentication requires libpq version 10 issue.

---------

Co-authored-by: Rajat Rajdeep <rajat.rajdeep@avasant.com>

---------

Co-authored-by: Ananya Maiti <Ananya_Maiti@epam.com>
Co-authored-by: Rajat Rajdeep <46029666+RajatRajdeep@users.noreply.github.com>
Co-authored-by: Rajat Rajdeep <rajat.rajdeep@avasant.com>
ananyo2012 added a commit that referenced this pull request Jun 15, 2023
* Upgrade Junction to Python 3.10 & Django 3.2 along with Social Login Fix (#744)

* Upgrade Python Version to 3.10 and Django Version 3.2

* Fix Github and Google Login/Signup

* new package added to the requirements file

* using f-strings

Co-authored-by: @rohitchopra-epam

* Fix unit tests add gunicorn (#748)

* Fix failing tests, Add gunicorn

Added nox method for running gunicorn

* Pin dependencies

---------

Co-authored-by: Ananya Maiti <Ananya_Maiti@epam.com>

* Dockerize Junction (#749)

* Initial commit for Dockerization

* Fix review comments and dockerignore

* Update dev.py.sample with runsslserver

* Fixes for using default settings module

* Remove Dockerfile.celery and use image from junction web image

* Update docker-compose.test.yml to not depend on postgres db

* Add static asset compilation in Docker image

* Add docker-compose.prod.yml and update server port configuration in application

* Add social oauth env vars

---------

Co-authored-by: Sanchit Balchandani <balchandani.sanchit@gmail.com>
Co-authored-by: Ananya Maiti <Ananya_Maiti@epam.com>

* Add SITE_PREFIX env variable for site url prefix

* Fix smtp setup for sending verification emails

* Fix conference moderator filter

* Fix template params fro absolute_url and is_proposal_reviewer

* Add Django streamhandler logging with DEBUG (#763)

* Fix proposal comment template parameters

Fix userprofile dashboard url

* Add restart:always to containers

* Fix comment creation error caused sparingly

Add review_comments=False for default comment view for logged in user

* Add password for Redis DB

* Fixes #765

Sort ProposalSection in descending order of creation date
in ProposalSectionReviewer Add form

* Add autocomplete_field for Proposal Reviewer to enable searcheable dropdown in add form

* Update DEFAULT_FROM_EMAIL

* Update common.py

* Added username field in edit profile form (Issue-769) (#771)

Co-authored-by: Rajat Rajdeep <rajat.rajdeep@avasant.com>

* Update Devlopment setup docs (#773)

* Update Devlopment setup docs

* Instructions for setting up junction using Docker post junction upgrade. (#761)

* Added instructions in the ReadMe file for setting up junction using Docker post junction upgrade.

* Updated the psycopg version to resolve - SCRAM authentication requires libpq version 10 issue.

---------

Co-authored-by: Rajat Rajdeep <rajat.rajdeep@avasant.com>

---------

Co-authored-by: Ananya Maiti <Ananya_Maiti@epam.com>
Co-authored-by: Rajat Rajdeep <46029666+RajatRajdeep@users.noreply.github.com>
Co-authored-by: Rajat Rajdeep <rajat.rajdeep@avasant.com>

* Rename travis yml

* Remove status badges from README

---------

Co-authored-by: Bhandari423 <69859505+Bhandari423@users.noreply.github.com>
Co-authored-by: Ananya Maiti <Ananya_Maiti@epam.com>
Co-authored-by: Sanchit Balchandani <balchandani.sanchit@gmail.com>
Co-authored-by: Rajat Rajdeep <46029666+RajatRajdeep@users.noreply.github.com>
Co-authored-by: Rajat Rajdeep <rajat.rajdeep@avasant.com>
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.

None yet

3 participants