aj-may / truffle-docker

3 stars 4 forks source link

feat: pull in repos to allow for contract sharing #4

Closed codfish closed 5 years ago

codfish commented 5 years ago

fairly sure truffle will pull in from node_modules by default. still need to do a lot of testing and decide what a long term approach is.

doing this to test right now docker build -t truffle:npm --build-arg GITHUB_TOKEN=$GITHUB_TOKEN . where $GITHUB_TOKEN is an env var holding an access token i generated. This is working but getting errors:

gyp WARN EACCES user "undefined" does not have permission to access the dev dir "/root/.node-gyp/11.6.0"
gyp WARN EACCES attempting to reinstall using temporary dev dir "/usr/local/lib/node_modules/dicon-api/node_modules/scrypt/.node-gyp"
gyp WARN install got an error, rolling back install
gyp WARN install got an error, rolling back install
gyp ERR! configure error
gyp ERR! stack Error: EACCES: permission denied, mkdir '/usr/local/lib/node_modules/dicon-api/node_modules/scrypt/.node-gyp'
gyp ERR! System Linux 4.9.125-linuxkit
gyp ERR! command "/usr/local/bin/node" "/usr/local/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild"
gyp ERR! cwd /usr/local/lib/node_modules/dicon-api/node_modules/scrypt
gyp ERR! node -v v11.6.0
gyp ERR! node-gyp -v v3.8.0
gyp ERR! not ok
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! scrypt@6.0.3 install: `node-gyp rebuild`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the scrypt@6.0.3 install script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

npm ERR! A complete log of this run can be found in:
npm ERR!     /root/.npm/_logs/2019-03-15T03_17_14_713Z-debug.log
codfish commented 5 years ago

https://github.com/OpenZeppelin/openzeppelin-solidity#usage --> would be similar usage

import 'organization-api/contracts/Organization.sol';
codfish commented 5 years ago

closing in favor of https://github.com/aj-may/truffle-docker/pull/6