add ganache fixes to nodejs and yarn. update requirements.yml, add two install methods for ganache, fixes to remix
This commit is contained in:
parent
8077c51cf7
commit
6bfbc0a68a
|
@ -1,11 +1,12 @@
|
|||
---
|
||||
- hosts: vagrant
|
||||
vars:
|
||||
yarn_clean_install: false
|
||||
yarn_version: latest
|
||||
docker_users:
|
||||
- ziion
|
||||
become: true
|
||||
roles:
|
||||
- common
|
||||
- geerlingguy.docker
|
||||
- truffle
|
||||
|
||||
- ganache
|
||||
- remix
|
||||
|
|
|
@ -8,7 +8,7 @@
|
|||
pkg:
|
||||
- curl
|
||||
|
||||
- name: Remove node
|
||||
- name: Remove nodejs
|
||||
become_user: root
|
||||
become: true
|
||||
apt:
|
||||
|
@ -18,12 +18,12 @@
|
|||
pkg:
|
||||
- nodejs
|
||||
|
||||
- name: add node apt repository
|
||||
- name: add nodejs apt repository
|
||||
become_user: root
|
||||
become: true
|
||||
ansible.builtin.shell: "curl -fsSL https://deb.nodesource.com/setup_lts.x | sudo -E bash - "
|
||||
|
||||
- name: Install node
|
||||
- name: Install nodejs
|
||||
become_user: root
|
||||
become: true
|
||||
apt:
|
||||
|
@ -32,3 +32,9 @@
|
|||
cache_valid_time: 604800
|
||||
pkg:
|
||||
- nodejs
|
||||
|
||||
- name:
|
||||
become_user: root
|
||||
become: true
|
||||
ansible.builtin.shell: "corepack enable"
|
||||
|
||||
|
|
8
ansible/roles/ganache/tasks/install-via-docker.yml
Normal file
8
ansible/roles/ganache/tasks/install-via-docker.yml
Normal file
|
@ -0,0 +1,8 @@
|
|||
- name: Create ganache
|
||||
community.docker.docker_container:
|
||||
name: ganache
|
||||
image: trufflesuite/ganache:v7.1.0
|
||||
state: started
|
||||
restart: true
|
||||
ports:
|
||||
- "127.0.0.1:8545:8545" # discuss if this should be bind all gitlab.com/reel/ziion-tools/-/issues/4
|
7
ansible/roles/ganache/tasks/install-via-npm.yml
Normal file
7
ansible/roles/ganache/tasks/install-via-npm.yml
Normal file
|
@ -0,0 +1,7 @@
|
|||
- name: Install ganache
|
||||
community.general.npm:
|
||||
name: ganache
|
||||
version: '7.1.0'
|
||||
path: /usr/local/ganache
|
||||
global: true
|
||||
state: present
|
7
ansible/roles/ganache/tasks/main.yml
Normal file
7
ansible/roles/ganache/tasks/main.yml
Normal file
|
@ -0,0 +1,7 @@
|
|||
---
|
||||
|
||||
#- import_tasks: install-via-npm.yml
|
||||
# tags: install-via-npm
|
||||
|
||||
- import_tasks: install-via-docker.yml
|
||||
tags: install-via-docker
|
9
ansible/roles/remix/tasks/main.yml
Normal file
9
ansible/roles/remix/tasks/main.yml
Normal file
|
@ -0,0 +1,9 @@
|
|||
- name: Create remix-ide
|
||||
community.docker.docker_container:
|
||||
name: remix-ide
|
||||
image: remixproject/remix-ide
|
||||
state: started
|
||||
restart: true
|
||||
ports:
|
||||
# Publish container port 80 as host port 8080
|
||||
- "127.0.0.1:8080:80"
|
|
@ -1,9 +1,8 @@
|
|||
---
|
||||
# ansible-galaxy install -r roles/requirements.yml
|
||||
collections:
|
||||
- community.docker
|
||||
|
||||
- src: fubarhouse.yarn
|
||||
# version: latest
|
||||
name: fubarhouse.yarn
|
||||
|
||||
- src: geerlingguy.docker
|
||||
name: geerlingguy.docker
|
||||
|
|
|
@ -0,0 +1,7 @@
|
|||
- name: Install truffle
|
||||
community.general.npm:
|
||||
name: truffle
|
||||
version: '5.5.14'
|
||||
path: /usr/local/truffle
|
||||
global: true
|
||||
state: present
|
Loading…
Reference in a new issue