Skip to content

Commit

Permalink
Make docker container deployable
Browse files Browse the repository at this point in the history
  • Loading branch information
cailafinn committed Sep 24, 2024
1 parent cd3d33b commit 519c5e5
Show file tree
Hide file tree
Showing 7 changed files with 23 additions and 3 deletions.
12 changes: 9 additions & 3 deletions Linux/external-data-mirror/ansible/external-data-mirror.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,13 @@

roles:
- role: dannixon.system.interactive_users
tags: "initial-setup"
- role: mirror
tags: "setup"
- role: geerlingguy.docker
become: yes
tags: "mirror"
tags: "setup"
- role: mirror-data
become: yes
tags: "mirror"
- role: server
become: yes
tags: "server"
3 changes: 3 additions & 0 deletions Linux/external-data-mirror/ansible/requirements.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
---
roles:
- src: geerlingguy.docker
11 changes: 11 additions & 0 deletions Linux/external-data-mirror/ansible/roles/server/tasks/main.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
- name: Spin up the nginx docker container to serve the downloaded testing data.
community.docker.docker_container:
name: "nginx-external-data"
image: "nginx:stable"
state: "started"
detach: True
restart_policy: "always"
network_mode: "host"
ports: "80:80"
volumes:
"/external-data/:/usr/share/nginx/html/externaldata/:ro"

0 comments on commit 519c5e5

Please sign in to comment.