Skip to content

Conversation

peopleig
Copy link

@peopleig peopleig commented Oct 7, 2025

Added a 'ChallengeName' to ContainerConfig struct, to incorporate challenge name in the container's name.
The naming will be as such - "beast_<challenge_name>_<random_3_letter_string>"


func CreateContainerFromImage(containerConfig *CreateContainerConfig) (string, error) {
containerName := containerConfig.ContainerName
containerName := fmt.Sprintf("beast_%s_%s", containerConfig.ChallengeName, containerConfig.ContainerName[:3])
Copy link
Contributor

Choose a reason for hiding this comment

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

Maybe we can also incorporate the name of competition. Thoughts?

Copy link
Author

Choose a reason for hiding this comment

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

Yep, it could be added in the struct and replace beast with comp. name in the container name
But are we taking competition name input anywhere? I didn't see it while running example challs

@v1bh475u
Copy link
Contributor

v1bh475u commented Oct 8, 2025

@peopleig ,you are mostly done for this issue. I would approve of this PR after you show me demo of this feature.

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