mirror of
https://gitlab.com/tildes/tildes.git
synced 2026-04-29 20:37:01 +02:00
Add Docker provider for Vagrant development environment
See merge request tildes-community/tildes-cf!1
This commit is contained in:
@@ -1,15 +1,9 @@
|
||||
---
|
||||
- name: Add APT key for NodeSource Node.js repository
|
||||
apt_key:
|
||||
url: https://deb.nodesource.com/gpgkey/nodesource.gpg.key
|
||||
|
||||
- name: Add NodeSource Node.js APT repository
|
||||
apt_repository:
|
||||
repo: deb https://deb.nodesource.com/node_14.x buster main
|
||||
|
||||
- name: Install Node.js
|
||||
apt:
|
||||
name: nodejs
|
||||
name:
|
||||
- nodejs
|
||||
- npm
|
||||
|
||||
- name: Install npm packages defined in package.json
|
||||
become_user: "{{ app_username }}"
|
||||
@@ -18,6 +12,3 @@
|
||||
# --no-bin-links option is needed to prevent npm from creating symlinks in the .bin
|
||||
# directory, which doesn't work inside Vagrant on Windows
|
||||
no_bin_links: true
|
||||
# npm ci needs to be run, for a clean install, instead of npm install.
|
||||
# otherwise node_modules is never created/updated (Ansible bug?)
|
||||
ci: true
|
||||
|
||||
Reference in New Issue
Block a user