first jenkins run

This commit is contained in:
2025-07-26 17:40:55 -07:00
parent a29ec39252
commit 7496df0174
8 changed files with 29 additions and 68 deletions

View File

@ -4,11 +4,13 @@
set_fact:
- docker_source: "/opt/cosmos/photo_refresh"
- name: photo_refresh - create docker folder
# Create docker Folder
- name: lldp - python - create api folder
file:
path: "{{ docker_source }}"
state: directory
mode: '0755'
mode: '0755'
- name: photo_refresh - copy files for docker container
copy:
@ -21,7 +23,7 @@
name: photo_refresh # Name of the Docker image
source: build
build:
path: /opt/cosmos/photo_refresh # Path to the directory containing your Dockerfile
path: "{{ docker_source }}" # Path to the directory containing your Dockerfile
state: present
tag: latest
@ -39,7 +41,7 @@
dest: "{{ docker_source }}docker-compose.yaml"
mode: 0644
- name: photo_refresh - Start container at 0.0.0.0:8080
- name: photo_refresh - Start container at 0.0.0.0:3000
shell: "docker-compose -f {{ docker_source }}/docker-compose.yaml up -d"
register: local_index_output
- debug: |