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

Update local Docker and supervisord to run mounted src folder with dev logging #352

Merged
merged 1 commit into from
Jan 29, 2025
Merged
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
Update local Docker and supervisord to run mounted src folder with de…
…v logging.
srpiatt committed Jan 27, 2025
commit 5c4dc6166f64da06147a25ce63689895030f6b69
3 changes: 3 additions & 0 deletions Dockerfile.local
Original file line number Diff line number Diff line change
@@ -19,5 +19,8 @@ RUN mkdir -p /usr/local/apache2/logs/ssl_mutex

ENV NODE_ENV=development
WORKDIR /app
RUN mkdir -p logs
COPY . .
RUN npm i
COPY supervisord-local.conf /etc/supervisor/conf.d/supervisord.conf
CMD ["/usr/bin/supervisord", "-c", "/etc/supervisor/conf.d/supervisord.conf"]
12 changes: 7 additions & 5 deletions supervisord-local.conf
Original file line number Diff line number Diff line change
@@ -4,10 +4,12 @@ nodaemon=true
[program:httpd]
command=httpd-foreground

[program:npm-install]
command=npm install @rollup/rollup-linux-arm64-musl --save-optional
directory=/app

[program:npm]
command=npm run dev
directory=/app
directory=/app
stdout_logfile=./logs/stdout.log
stderr_logfile=./logs/stderr.log
stdout_logfile_maxbytes=1MB
stderr_logfile_maxbytes=1MB
redirect_stderr=true
stdout_events_enabled=true
Loading