Score:0

Mount volume to build image used by gitlab runner

ec flag

I have custom image where I want to run some tests which require installed app which in turn need openGL context. I can run it in container composed this way and manually build project and run tests. docker-compose.yml:

version: "3.6"
image: registry.gitlab.com/my_image_path:latest

volumes:
  - /tmp/.X11-unix/:/tmp/.X11-unix
  - /var/run/dbus:/var/run/dbus
  - /dev/shm:/dev/shm
privileged: true

And this is my gitlab-ci.yml:

linux-release-build-and-test:
  image: registry.gitlab.com/my_image_path:latest
  stage: build
  script:
    - cmake -DCMAKE_BUILD_TYPE=Release -D...
    - cmake --build . --target all -- -j8
    - libs/Some_Tests/Tests

Is there a way for me to either create a service (with volumes) and link to build image or add volumes to build image with app already installed? If not what are the alternatives?

mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.