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

Starts a container in the deployment phase, cleans up on sandbox end #1

Closed
wants to merge 1 commit into from

Conversation

dakota002
Copy link
Collaborator

@dakota002 dakota002 commented Dec 19, 2024

Mostly adapted from https://github.com/nasa-gcn/architect-plugin-search

Important notes:

This needs to start in the deploy phase, so that the docker container gets started before the @tables pragma stuff starts trying to populate tables

@dakota002 dakota002 marked this pull request as ready for review December 30, 2024 14:53
@dakota002 dakota002 marked this pull request as draft December 30, 2024 15:56
@dakota002 dakota002 marked this pull request as ready for review January 17, 2025 15:29
@dakota002 dakota002 requested a review from lpsinger January 17, 2025 15:55
package.json Outdated Show resolved Hide resolved
runDocker.ts Outdated
'path.logs=/var/log/ddb-local',
],
HostConfig: {
Binds: [`${dataDir}:/home/dynamodblocal/data`],
Copy link
Member

Choose a reason for hiding this comment

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

Remove bind mount. There's no need to persist the data to the host filesystem.

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

I realized i could just use the run function from docker, I have updated it in the latest commit. I still need to clean it up, but it should be behaving as expected.

index.ts Outdated Show resolved Hide resolved
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