EOSC-synergy / SQAaaS

6 stars 1 forks source link

build arg not passed #49

Closed ldelcano closed 2 years ago

ldelcano commented 2 years ago

I am creating a service to build a docker image passing a build arg (see attached image) image However when I run the pipeline I cannot see the arg taken into account and the docker compose file does not mention it (I am not familiar with this but I assume it should appear somewhere).

services:
  scipion-master:
    build:
      context: "./master-image"
      dockerfile: "Dockerfile"
    volumes:
      - type: "bind"
        source: "./"
        target: "/sqaaas-build"
    working_dir: "/sqaaas-build"
    command: "sleep 6000000"
  qc.sty_lovely-xanthic-wolf:
    image: "hadolint/hadolint:latest-alpine"
    volumes:
      - type: "bind"
        source: "./"
        target: "/sqaaas-build"
    working_dir: "/sqaaas-build"
    command: "sleep 6000000"
version: "3.7"

Example on https://jenkins.eosc-synergy.eu/job/eosc-synergy-org/job/ScipionCloud-master.sqaaas/job/devel/3 Am I doing something wrong? thanks

orviz commented 2 years ago

Hi @ldelcano you re doing the right thing, very valuable feedback for us as usual. The API was not adding the build args to the resultant docker-compose.yml as you noticed. Fixed now, thanks a lot!

ldelcano commented 2 years ago

Solved, thank you!