commented back in the 'USER: nonroot' line in the Dockerfile now that pushing to a server thru an ansible playbook has rendered all local WSL-2 considerations a nonissue; updated said deploy-playbook.yaml with new tasks to build out real docker container on server

This commit is contained in:
Disco DeDisco
2026-01-13 14:57:17 -05:00
parent eb38722a53
commit affbddc3cd
2 changed files with 25 additions and 5 deletions

View File

@@ -18,9 +18,29 @@
- name: Reset ssh connection to allow the user/group change to take effect
ansible.builtin.meta: reset_connection
- name: Run test container
- name: Export container image locally
community.docker.docker_image:
name: gamearray
archive_path: /tmp/gamearray-img.tar
source: local
delegate_to: 127.0.0.1
- name: Upload image to server
ansible.builtin.copy:
src: /tmp/gamearray-img.tar
dest: /tmp/gamearray-img.tar
- name: Import container image on server
community.docker.docker_image:
name: gamearray
load_path: /tmp/gamearray-img.tar
source: load
force_source: true
state: present
- name: Run container
community.docker.docker_container:
name: testcontainer
name: gamearray
image: gamearray
state: started
image: busybox
command: echo howdy partner
recreate: true