CI Images: Difference between revisions

From Thrive Developer Wiki
Jump to navigation Jump to search
No edit summary
(added --rm to suggested podman run and added code tags to the commands)
Line 7: Line 7:
# Update the CLI tools version mentioned in "doc/setup_instructions.md"
# Update the CLI tools version mentioned in "doc/setup_instructions.md"
# Update the relevant Dockerfiles in "docker/ci" or the lint folder
# Update the relevant Dockerfiles in "docker/ci" or the lint folder
# Run build with docker or podman: "podman build ci" (in the correct folder)
# Run build with docker or podman: <code>podman build ci</code> (in the correct folder)
# Tag the result with the needed name. For example: "podman tag 6534b9b707fe9c1f05bc62545eb36ba14d3d6ddeff04870fef402c1ba08a4d0e thrive/godot-ci:v8"
# Tag the result with the needed name. For example: <code>podman tag 6534b9b707fe9c1f05bc62545eb36ba14d3d6ddeff04870fef402c1ba08a4d0e thrive/godot-ci:v8</code>
# Make sure the dotnet sdk got installed, enter the container with "podman run -it thrive/godot-ci:v8" and run "dotnet --list-sdks" and verify that it lists at least one sdk (empty output means the image is broken)
# Make sure the dotnet sdk got installed, enter the container with <code>podman run -it --rm thrive/godot-ci:v8</code> and run <code>dotnet --list-sdks</code> and verify that it lists at least one sdk (empty output means the image is broken)
# Save the image as a file (replace ":" with "_" in the file name): "podman save thrive/godot-ci:v8 -o godot-ci_v8.tar.xz"
# Save the image as a file (replace ":" with "_" in the file name): <code>podman save thrive/godot-ci:v8 -o godot-ci_v8.tar.xz</code>
# Now upload the created file to the right folder in the devcenter, the first part of the name before the slash needs to be a folder in: https://dev.revolutionarygamesstudio.com/files/CI/Images with the file from the previous step uploaded in that sub folder
# Now upload the created file to the right folder in the devcenter, the first part of the name before the slash needs to be a folder in: https://dev.revolutionarygamesstudio.com/files/CI/Images with the file from the previous step uploaded in that sub folder
# Now you can modify the CI configuration to specify the new image and it should work
# Now you can modify the CI configuration to specify the new image and it should work

Revision as of 08:33, 2 December 2021


This page has instructions on making new CI podman images.

These are the rough steps:

  1. Update the CLI tools version mentioned in "doc/setup_instructions.md"
  2. Update the relevant Dockerfiles in "docker/ci" or the lint folder
  3. Run build with docker or podman: podman build ci (in the correct folder)
  4. Tag the result with the needed name. For example: podman tag 6534b9b707fe9c1f05bc62545eb36ba14d3d6ddeff04870fef402c1ba08a4d0e thrive/godot-ci:v8
  5. Make sure the dotnet sdk got installed, enter the container with podman run -it --rm thrive/godot-ci:v8 and run dotnet --list-sdks and verify that it lists at least one sdk (empty output means the image is broken)
  6. Save the image as a file (replace ":" with "_" in the file name): podman save thrive/godot-ci:v8 -o godot-ci_v8.tar.xz
  7. Now upload the created file to the right folder in the devcenter, the first part of the name before the slash needs to be a folder in: https://dev.revolutionarygamesstudio.com/files/CI/Images with the file from the previous step uploaded in that sub folder
  8. Now you can modify the CI configuration to specify the new image and it should work