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 startup #33

Open
wants to merge 2 commits into
base: main
Choose a base branch
from
Open

Conversation

davidkirchner
Copy link
Collaborator

Der Webserver Container startete nicht, weil der Zeilenumbruch für die Skripte auf CRLF von Windows statt LF von Linux eingestellt war. Ich habe ein .gitattributes File erstellt, in dem alle Shellskripte nach dem Ausführen von

git add --renormalize .

auf LF umgestellt werden sollten.
Außerdem gab es noch einen kleinen Bug im CSV Parser.

Damit die Container korrekt starten müssen die Umgebungsvariablen MYSQL_DATABASE, MYSQL_USER, MYSQL_PASSWORD und MYSQL_ROOT_PASSWORD gesetzt sein. Alternativ könnt ihr auch diese Variablen im docker-compose File hard coden.

Danach sollte hoffentlich alles korrekt mit folgendem Kommando starten:

docker-compose up --build

@davidkirchner
Copy link
Collaborator Author

Achso, und die File Ownerships für das Start und Wait Skript des Django-Webserver Containers waren verstellt. Diese können durch Ausführen des fix_permission.sh Skriptes wieder korrigiert werden.

@Norinofa
Copy link
Owner

Norinofa commented Jan 16, 2023 via email

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

2 participants