Skip to content

Commit

Permalink
Added suppoting of existed container_id in docker_qaic
Browse files Browse the repository at this point in the history
  • Loading branch information
maria-18-git committed Jan 9, 2024
1 parent 4fa1c96 commit 20d3508
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions docker_qaic/data_axs.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
"local_experiment_dir_name": "experiments",
"local_experiment_dir": [ "^^", "substitute", "/local/mnt/workspace/#{user}#/work_collection/" ],

"container_id": [ "^^", "substitute", "`docker run -dt --name #{container_name}# --ipc=host --net=host --privileged --group-add $(getent group qaic | cut -d: -f3) #{mounted_repos_str}# --rm #{image_name}#:#{image_tag}# bash`" ],
"container_id": [ "^^", "substitute", "`if [ $(docker ps -qf \"name=#{container_name}#\" | head -c1 | wc -c) -ne 0 ]; then docker ps -qf \"name=#{container_name}#\"; else docker run -dt --name #{container_name}# --ipc=host --net=host --privileged --group-add $(getent group qaic | cut -d: -f3) #{mounted_repos_str}# --rm #{image_name}#:#{image_tag}# bash; fi;`" ],

"repo_list": [ "axs2qaic-dev", "axs2sut-dev", "axs2kilt-dev", "axs2cpu-dev", "axs2system-dev", "axs2mlperf", "kilt-mlperf-dev_main", "experiments" ],
"mounted_repos_str": ["^^", "create_mounted_string" ],
Expand All @@ -27,7 +27,7 @@
"container_only": false,

"cmd": [ "^^", "case", [ [ "^^", "get", "container_only" ],
true, [ "^^","substitute", "export CONTAINER_ID=#{container_id}# ; echo \" Container has been created. CONTAINER_ID = ${CONTAINER_ID} \"" ]] ,
true, [ "^^","substitute", "export CONTAINER_ID=#{container_id}# ; echo \" CONTAINER_ID = ${CONTAINER_ID} \"" ]] ,
{ "default_value": [ "^^","substitute", " docker exec #{container_id}# bash -c \"axs byquery #{modified_query}#\""] }
],

Expand Down

0 comments on commit 20d3508

Please sign in to comment.