Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Mounting a volume for a gitlab service

I'm trying to run a gitlab service running wiremock on my gitlab ci. I want to take my json files for configure wiremock from the repository and mount as a volume to the wiremock image that run as an service on gitlab ci

.gitlab-ci.yml

variables:
  SHARED_PATH: $CI_PROJECT_PATH/src/main/resources

services:
    - name: wiremock/wiremock
      alias: wiremock
      
image: openjdk:11

deploy:jdk11:
  stage: deploy
  script:
    - 'curl -X POST http://wiremock:8080/'

I want to mount the SHARED_PATH as a volume for the wiremock service

like image 254
Jonathan Amaya Avatar asked Jan 28 '26 04:01

Jonathan Amaya


1 Answers

Currently there is no possibility to mount a volume.

See this in the Gitlab issue tracker: https://gitlab.com/gitlab-org/gitlab-runner/-/issues/28121

like image 91
Csongor Fagyal Avatar answered Jan 31 '26 04:01

Csongor Fagyal