Skip to content

Workflow variable contents are not preserved in docker-composed tasks #404 #24

@mbenguig

Description

@mbenguig

In a docker-compose task

I set a variable product_list with liste.txt as value
I set a variable product_list_ajusted with liste_ajustee.txt as value
I create a docker-compose task calling these variables

Now $product_list => liste.txt and $product_list_ajusted => liste.txt_ajusted


tobwiens commented 6 days ago

Can you show the docker-compose task?

The variables should be access through $variables_product_list -> .... Because the variables are pushed to the bash which execute docker-compose. Docker compose has it's own way to process bash variables.

Furhtermore, ProActive docker-compose script engine replaces variables inside the docker-compose script. There is a blog post about it: http://blog.activeeon.com/2015/04/proactive-and-docker-schedule-and.html

Consider this xml file with variable substitution

<job
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns="urn:proactive:jobdescriptor:3.8"
xsi:schemaLocation="urn:proactive:jobdescriptor:3.8 http://www.activeeon.com/public_content/schemas/proactive/jobdescriptor/3.8/schedulerjob.xsd"
name="Untitled workflow"
priority="normal"
onTaskError="continueJobExecution"
maxNumberOfExecution="2"

<script> </script>

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions