From 53d5b26add2feed38d7965789603eb98feb44010 Mon Sep 17 00:00:00 2001 From: David Rotermund Date: Thu, 25 Apr 2024 16:48:40 +0200 Subject: [PATCH] Update --- install_scripts/install_code.yaml | 34 +++++++++++++++++++++++++++---- update_jobs/fix_cuda.yaml | 1 + 2 files changed, 31 insertions(+), 4 deletions(-) create mode 100644 update_jobs/fix_cuda.yaml diff --git a/install_scripts/install_code.yaml b/install_scripts/install_code.yaml index 469e96c..7ee5071 100644 --- a/install_scripts/install_code.yaml +++ b/install_scripts/install_code.yaml @@ -1,5 +1,5 @@ --- -- name: install ansible semaphore +- name: install code server hosts: all become: true @@ -23,6 +23,10 @@ - name: remove other files include_tasks: yaml_sub/install_docker.yaml + - name: Create network codeNet + community.docker.docker_network: + name: codeNet + - name: Create volume code data community.docker.docker_volume: name: code_data @@ -33,19 +37,41 @@ name: code-server image: lscr.io/linuxserver/code-server:latest state: started - recreate: yes + recreate: no restart_policy: always volumes: - "code_data:/config" - published_ports: - - "80:8443/tcp" + env: PASSWORD: "{{ passwd }}" TZ: "Europe/Berlin" PUID: "0" PGID: "0" DEFAULT_WORKSPACE: "/config/workspace" + PROXY_DOMAIN: "code.neuro.uni-bremen.de" + networks: + - name: codeNet + comparisons: + networks: strict + - name: Create hitch container + community.docker.docker_container: + name: hitch + image: hitch + state: started + recreate: no + restart_policy: always + published_ports: + - "443:443/tcp" + + env: + backend: "code-server:8443" + + networks: + - name: codeNet + - name: bridge + comparisons: + networks: strict diff --git a/update_jobs/fix_cuda.yaml b/update_jobs/fix_cuda.yaml new file mode 100644 index 0000000..8b13789 --- /dev/null +++ b/update_jobs/fix_cuda.yaml @@ -0,0 +1 @@ +