Skip to content

Instantly share code, notes, and snippets.

@BenjamenMeyer
Created October 25, 2023 03:44
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save BenjamenMeyer/fec42f41a610fed910e738fbddc4e671 to your computer and use it in GitHub Desktop.
Save BenjamenMeyer/fec42f41a610fed910e738fbddc4e671 to your computer and use it in GitHub Desktop.
Vega Strike Docker Image Debugging
  1. Check out the Vega Strike Docker Images repo:
  1. Copy the local-test-ci.sh script attached here into a local version in that repo:
  1. Edit local-test-ci.sh with your favorite text editor and change the export FROM line to use the distro of your choice:
  1. Run the local-test-ci.sh script

You can then run docker images to see the new images. You should see something like:

  1. Checkout the Vega Strike Engine Source separately:
  1. Copy the test-ci.sh file to it
  1. Update test-ci.sh so export FROM line matches the distro used in the prior steps.
  2. Run `test-ci.sh`:

This will use the image built and then load the engine source and start compiling it.

#!/bin/bash
# this runs in the Vega Strike build-system-docker-images project
export FROM="archlinux:latest"
export MY_OS_NAME="linux"
export IS_RELEASE=0
#./script/cibuild
export DOCKER_IMG_NAME="localhost/vegastrike/vega-strike-build-env:$(echo "$FROM" | sed 's/:/_/' | sed 's/\//_/')"
docker build --build-arg from="$FROM" -t "$DOCKER_IMG_NAME" .
#!/bin/bash
# This runs in the Vega Strike Engine Source Directory
export MY_OS_NAME="linux"
export IS_RELEASE=0
#export FROM="opensuse/leap:15.3"
export FROM="archlinux:latest"
export COMPILER="clang"
export FLAGS="-DOpenGL_GL_PREFERENCE=GLVND"
./script/cibuild
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment