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

feat: docker build character #1886

Open
wants to merge 5 commits into
base: develop
Choose a base branch
from

Conversation

thetechnocratic
Copy link

Relates to

easier character builds for docker

Risks

low

Background

What does this PR do?

allows passing a character name in as the second arg to the docker script (also via pnpm scripts)

What kind of change is this?

QOL improvement for docker

Documentation changes needed?

updated the docker guide .md file

Testing

Detailed testing steps

  1. make a character file
  2. `pnpm docker:build
  3. pnpm docker:run <character name>

Discord username

thetechnocratic

odilitime
odilitime previously approved these changes Jan 6, 2025
@thetechnocratic thetechnocratic changed the title qol: docker build character feat: docker build character Jan 6, 2025
@@ -1,5 +1,7 @@
# Use a specific Node.js version for better reproducibility
FROM node:23.3.0-slim AS builder
ARG CHARACTER_PATH=characters/c3po.character.json
Copy link
Collaborator

Choose a reason for hiding this comment

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

Is it required to be defined here?

Copy link
Author

Choose a reason for hiding this comment

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

well having a default is good, but might be able to get away with just lines 35 & 36. ill test it out

@HashWarlock
Copy link
Collaborator

Should this be able to handle multiple characters to be deployed as well?

@thetechnocratic
Copy link
Author

Should this be able to handle multiple characters to be deployed as well?

should have no problem building multiple characters, but each run command still latches to port 3000, so will need something more intelligent to support multiple deployments at once

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.

3 participants