diff --git a/ansible/hosts.cfg b/ansible/hosts.cfg deleted file mode 100644 index 0f340834c95ab66e9f5f2303129cec24ee180873..0000000000000000000000000000000000000000 --- a/ansible/hosts.cfg +++ /dev/null @@ -1,10 +0,0 @@ -[defaults] -host_key_checking=False -[gitlab_ci_deploy_targets] -phoenix.hlr.rz.tu-bs.de ansible_ssh_private_key_file=./private_key -[gitlab_ci_deploy_cppcheck] -elladan.irmb.bau.tu-bs.de -[gitlab_ci_deploy_gcov] -elladan.irmb.bau.tu-bs.de -[gitlab_ci_deploy_wheel] -finrod.irmb.bau.tu-bs.de ansible_ssh_private_key_file=~/private_key ansible_become_password="{{ lookup('env', 'ANSIBLE_JUPYTER_HOST_BECOME_PASSWORD') }}" \ No newline at end of file diff --git a/ansible/playbook_jupyter_update.yml b/ansible/playbook_jupyter_update.yml deleted file mode 100644 index 61d6c95aff09fc99d9a2f3c1418c6e38f52e464b..0000000000000000000000000000000000000000 --- a/ansible/playbook_jupyter_update.yml +++ /dev/null @@ -1,51 +0,0 @@ -- hosts: gitlab_ci_deploy_wheel - vars: - host_home: "/home/{{ lookup('env', 'jupyter_host') }}" - - tasks: - - - name: Find container IDs with image name - become: yes - shell: docker ps -a --format {% raw %}'{{.ID}} {{.Image}}'{% endraw %} | grep pyfluids-jupyter | awk '{ print $1 }' - register: container_ids - - - name: Stop and remove docker spawner containers - become: yes - community.general.docker_container: - name: "{{ item }}" - state: absent - loop: "{{ container_ids.stdout_lines }}" - - - name: Remove old docker spawner image - become: yes - community.general.docker_image: - name: pyfluids-jupyter - state: absent - - - name: Find pyfluids wheel - find: - path: "{{ host_home }}/jupyterhub/DockerSpawnerImage/wheels/" - patterns: pyfluids*.whl - register: find_pyfluids - - - name: Remove old pyfluids wheel - file: - path: "{{ item }}" - state: absent - loop: "{{ find_pyfluids.files }}" - - - name: Copy new wheels to docker spawner image - synchronize: - src: ../dist/ - dest: "{{ host_home }}/jupyterhub/DockerSpawnerImage/wheels/" - rsync_opts: - - "--include='*.whl'" - - - name: Build docker spawner image again - become: yes - community.general.docker_image: - name: pyfluids-jupyter - source: build - build: - dockerfile: "{{ host_home }}/jupyterhub/DockerSpawnerImage/Dockerfile" - path: "{{ host_home }}/jupyterhub/DockerSpawnerImage/" diff --git a/ansible/playbook_vf_deploy.yml b/ansible/playbook_vf_deploy.yml deleted file mode 100644 index 4f0633a95475d33ca8d406664b0857204adac5a5..0000000000000000000000000000000000000000 --- a/ansible/playbook_vf_deploy.yml +++ /dev/null @@ -1,27 +0,0 @@ -- hosts: gitlab_ci_deploy_targets - tasks: - - name: Create remote VirtualFluids_dev dir - command: mkdir ~/VirtualFluids_dev - ignore_errors: yes - - - name: Synchronize VirtualFluids_dev with remote - synchronize: - src: "{{ item.src }}" - dest: "{{ item.dest }}" - rsync_opts: - - "--exclude=.venv" - - "--exclude=__pycache__" - loop: - - { src: '../3rdParty', dest: '~/VirtualFluids_dev/3rdParty' } - - { src: '../apps', dest: '~/VirtualFluids_dev/apps' } - - { src: '../CMake', dest: '~/VirtualFluids_dev/CMake' } - - { src: '../Containers', dest: '~/VirtualFluids_dev/Containers' } - - { src: '../Python', dest: '~/VirtualFluids_dev/Python' } - - { src: '../src', dest: '~/VirtualFluids_dev/src' } - - { src: '../.clang-format', dest: '~/VirtualFluids_dev/.clang-format' } - - { src: '../.clang-tidy', dest: '~/VirtualFluids_dev/.clang-tidy' } - - { src: '../CMakeLists.txt', dest: '~/VirtualFluids_dev/CMakeLists.txt' } - - { src: '../cpu.cmake', dest: '~/VirtualFluids_dev/cpu.cmake' } - - { src: '../gpu.cmake', dest: '~/VirtualFluids_dev/gpu.cmake' } - - { src: '../pyproject.toml', dest: '~/VirtualFluids_dev/pyproject.toml' } - - { src: '../setup.py', dest: '~/VirtualFluids_dev/setup.py' }