mirror of
https://github.com/NVIDIA/OpenShell.git
synced 2026-11-13 11:45:58 +08:00
* test(tmachine): add Docker VM scenario Signed-off-by: Simon Scatton <sscatton@nvidia.com> * test(tmachine): add portable container scenarios Signed-off-by: Simon Scatton <sscatton@nvidia.com> * chore(tmachine): isolate downloaded Ansible roles Signed-off-by: Simon Scatton <sscatton@nvidia.com> * test(tmachine): increase VM resources Signed-off-by: Simon Scatton <sscatton@nvidia.com> * test(tmachine): improve artifact builds and diagnostics Signed-off-by: Simon Scatton <sscatton@nvidia.com> * fix(nix): pin tmachine runtime on macOS Signed-off-by: Evan Lezar <elezar@nvidia.com> * feat(tests): enable tty and fix supervisor image path * fix(nix): isolate testing tools from default shell Signed-off-by: Simon Scatton <sscatton@nvidia.com> * fix(tmachine): initialize test runner working directory Signed-off-by: Simon Scatton <sscatton@nvidia.com> * fix(tmachine): include Ansible sources in layer cache keys Signed-off-by: Simon Scatton <sscatton@nvidia.com> * fix(tmachine): build and load separate runtime images Signed-off-by: Simon Scatton <sscatton@nvidia.com> * fix(tmachine): use local runtime images for Docker Signed-off-by: Simon Scatton <sscatton@nvidia.com> --------- Signed-off-by: Simon Scatton <sscatton@nvidia.com> Signed-off-by: Evan Lezar <elezar@nvidia.com> Co-authored-by: Evan Lezar <elezar@nvidia.com>
30 lines
760 B
YAML
30 lines
760 B
YAML
# SPDX-FileCopyrightText: Copyright (c) 2025-2026 NVIDIA CORPORATION & AFFILIATES. All rights reserved.
|
|
# SPDX-License-Identifier: Apache-2.0
|
|
|
|
---
|
|
- name: Copy OpenShell runtime images
|
|
become: true
|
|
ansible.builtin.copy:
|
|
src: "{{ item.src }}"
|
|
dest: "/var/lib/openshell/{{ item.name }}.tar"
|
|
owner: "{{ openshell_gateway_user }}"
|
|
group: "{{ openshell_gateway_user }}"
|
|
mode: "0600"
|
|
loop:
|
|
- name: sandbox
|
|
src: "{{ openshell_sandbox_image }}"
|
|
- name: supervisor
|
|
src: "{{ openshell_supervisor_image }}"
|
|
|
|
- name: Load OpenShell runtime images
|
|
become: true
|
|
ansible.builtin.command:
|
|
argv:
|
|
- docker
|
|
- load
|
|
- --input
|
|
- "/var/lib/openshell/{{ item }}.tar"
|
|
loop:
|
|
- sandbox
|
|
- supervisor
|