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

Feature Request: Has/Lacks file #6

Open
dudleycodes opened this issue Oct 8, 2022 · 0 comments
Open

Feature Request: Has/Lacks file #6

dudleycodes opened this issue Oct 8, 2022 · 0 comments
Assignees

Comments

@dudleycodes
Copy link
Member

A lot of the errors we traditionally have with Dockerized game servers happens when either an unexpected file sneaks its way into the image, or when a expected file doesn't make it into an image. This happens more often than you'd think, because the way core game servers are downloaded using utilities likes SteamCMD.

I'd be great, if there were mechanisms where checks for the existence of, or a lack of file(s) could themselves be a check.

Maybe something like:

target:
    ......
    files_exist:
        - /path/to/file1
        - /path/to/file2
        - /path/to/file3
    files_absent:
        - /path/to/file4
        - /path/to/file5
        - /path/to/file6

If issue #5 is implemented, I would make this feature only work with docker-images target type for now.

Using the Docker libraries, it should be able to check for the existence of files w/o spinning up the image. This could be useful if the only tests we want to preform are these file checks (for example, in our content server proxy docker image).

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

No branches or pull requests

2 participants