My intention is to convert your below command to equivalent docker-compose up command
docker run -it -v $AWS_CREDENTIALS_FOLDER:/home/scar/.aws -v $SCAR_CONFIG_FOLDER:/home/scar/.scar scar
to achieve that,I have converted your docker file into docker image and then using that container trying to send command like 'docker excec -it scar init -f scar.yaml' in gitlab ,here is the yaml i am using in gitlab ,
But problem is gitlab is getting executed successfully but i am not able to get the equivalent result which i use to get using the command you shared in documents
docker run -it -v $AWS_CREDENTIALS_FOLDER:/home/scar/.aws -v $SCAR_CONFIG_FOLDER:/home/scar/.scar scar
Hi,
My intention is to convert your below command to equivalent docker-compose up command
docker run -it -v $AWS_CREDENTIALS_FOLDER:/home/scar/.aws -v $SCAR_CONFIG_FOLDER:/home/scar/.scar scar
to achieve that,I have converted your docker file into docker image and then using that container trying to send command like 'docker excec -it scar init -f scar.yaml' in gitlab ,here is the yaml i am using in gitlab ,
image: docker:latest
variables: DOCKER_HOST: tcp://docker:2375/ IMAGE_TAG: $CI_REGISTRY_IMAGE:$CI_COMMIT_REF_NAME DOCKER_DRIVER: overlay2 CONTAINER_DEV_IMAGE: https://hub.docker.com/r/tarunkumard/gatling/:$CI_COMMIT_SHA AWS_DEFAULT_REGION: us-west-2 BUCKET_NAME: gatlingreport
services:
stages:
before_script:
build: stage: build tags:
here is the docker-compose yaml through which i am converting your below command to docker compose yaml
docker run -it -v $AWS_CREDENTIALS_FOLDER:/home/scar/.aws -v $SCAR_CONFIG_FOLDER:/home/scar/.scar scar
version: "3.7" services: execute: command: tail -f /dev/null image: lots/sredeployment1.0 volumes:
volumes: AWS_CREDENTIALS_FOLDER: SCAR_CONFIG_FOLDER:
But problem is gitlab is getting executed successfully but i am not able to get the equivalent result which i use to get using the command you shared in documents
docker run -it -v $AWS_CREDENTIALS_FOLDER:/home/scar/.aws -v $SCAR_CONFIG_FOLDER:/home/scar/.scar scar