Skip to content

Fixing docker_update.sh script to not add context.#5820

Merged
Nutomic merged 12 commits intomainfrom
fix_docker_update_1
Jun 26, 2025
Merged

Fixing docker_update.sh script to not add context.#5820
Nutomic merged 12 commits intomainfrom
fix_docker_update_1

Conversation

@dessalines
Copy link
Copy Markdown
Member

Use docker build from a higher level to not load massive context.

Also formatted this file.

Use docker build from a higher level to not load massive context.
@dessalines dessalines marked this pull request as draft June 23, 2025 13:50
@dessalines dessalines marked this pull request as ready for review June 23, 2025 15:21
@dessalines dessalines marked this pull request as draft June 23, 2025 15:23
Comment thread docker/docker-compose.yml
logging: *default-logging

lemmy:
image: dessalines/lemmy:1.0.0-alpha.4
Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

Not sure how this got added, but it meant no changes would ever get tested correctly in docker.

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

Makes sense to add at least a template for this file. Devving and testing migrations pretty much requires it.

@dessalines dessalines marked this pull request as ready for review June 23, 2025 17:29
max_worker_processes = 16
max_parallel_workers_per_gather = 4
max_parallel_workers = 16
max_parallel_maintenance_workers = 4
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

This looks specific to your machine and shouldnt be committed.

Copy link
Copy Markdown
Member Author

@dessalines dessalines Jun 24, 2025

Choose a reason for hiding this comment

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

It is, but the docker-compose.yml needs to mount this file, and it should be required for testing anyway. What if I just leave a comment at the top of this file linking how to generate it for your machine?

EDIT: did that

Comment thread docker/docker_update.sh
docker login --username="$DOCKER_USER"
fi

echo "$LOG_PREFIX Initializing images in the background. Please be patient if compiling from source..."
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Did you run a formatter on this? Maybe worth adding to ci.

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

Yep, will do.

@Nutomic Nutomic merged commit 9ccd647 into main Jun 26, 2025
2 checks passed
@Nothing4You Nothing4You deleted the fix_docker_update_1 branch September 11, 2025 17:33
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.

2 participants