Skip to content
Extraits de code Groupes Projets
Valider cfd6a94f rédigé par nono's avatar nono :computer:
Parcourir les fichiers

Update molecule configuration for testing

parent 8f056643
Aucune branche associée trouvée
Aucune étiquette associée trouvée
1 requête de fusion!4Draft: Resolve "Add continuous integration testing via Gitlab CI"
FROM ubuntu
FROM docker.io/geerlingguy/docker-debian10-ansible
# ENV container docker
ENV DEBIAN_FRONTEND noninteractive
RUN apt-get update \
&& apt-get install -y --no-install-recommends sudo systemd systemd-sysv \
build-essential wget libffi-dev libssl-dev \
python3-pip python3-dev python3-setuptools python3-wheel \
&& rm -rf /var/lib/apt/lists/* \
build-essential wget libffi-dev libssl-dev git curl gnupg2 \
python3-pip python3-dev python3-setuptools python3-wheel
RUN echo "deb https://dl.yarnpkg.com/debian/ stable main" | sudo tee /etc/apt/sources.list.d/yarn.list
RUN curl -sS https://dl.yarnpkg.com/debian/pubkey.gpg | sudo apt-key add -
RUN apt-get update \
&& apt-get install -y --no-install-recommends yarn
RUN rm -rf /var/lib/apt/lists/* \
&& rm -Rf /usr/share/doc && rm -Rf /usr/share/man \
&& rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/* \
&& rm -rf /lib/systemd/system/multi-user.target.wants/* \
......
......@@ -4,7 +4,7 @@
vars:
service_hedgedocs_domain: "127.0.0.1"
hedgedoc_db_user: "hedgedocs"
hedgedoc_sql_password: "hedgedocs-sql-password"
hedgedoc_sql_password: "hedgedocs"
hedgedoc_db_name: "hedgedocs"
hedgedoc_session_secret: "hedgedocs-secret"
hedgedoc_version: "1.9.7"
......
......@@ -23,6 +23,8 @@ platforms:
# - 0.0.0.0:8888:80/tcp
provisioner:
name: ansible
env:
ANSIBLE_VERBOSITY: 3
verifier:
name: ansible
lint: |
......
---
- name: Prepare
hosts: all
vars:
service_url: "hedgedocs"
vars:
nodejs_install_npm_user: "root"
npm_config_unsafe_perm: "true"
nodejs_npm_global_packages:
- name: yarn
service_url: "127.0.0.1"
nginx_extra_http_options: |
map $http_upgrade $connection_upgrade {
default upgrade;
......@@ -39,3 +43,18 @@
- geerlingguy.nginx
- geerlingguy.nodejs
- geerlingguy.postgresql
tasks:
- name: Install needed packages
ansible.builtin.package:
name:
- git
- curl
- gnupg2
state: present
- name: Install yarn
ansible.builtin.command:
cmd: |
echo "deb https://dl.yarnpkg.com/debian/ stable main" >> /etc/apt/sources.list.d/yarn.list && \
curl -sS https://dl.yarnpkg.com/debian/pubkey.gpg | sudo apt-key add - && \
apt-get update \
&& apt-get install -y --no-install-recommends yarn
\ No newline at end of file
0% Chargement en cours ou .
You are about to add 0 people to the discussion. Proceed with caution.
Terminez d'abord l'édition de ce message.
Veuillez vous inscrire ou vous pour commenter