Skip to content
This repository has been archived by the owner on Dec 23, 2021. It is now read-only.

datproject/datbase:latest doesn't start #627

Open
SvenDowideit opened this issue Mar 6, 2018 · 2 comments · May be fixed by #628
Open

datproject/datbase:latest doesn't start #627

SvenDowideit opened this issue Mar 6, 2018 · 2 comments · May be fixed by #628

Comments

@SvenDowideit
Copy link

SvenDowideit commented Mar 6, 2018

looking at docker hub, it looks like its an old image - the automated build setup should probably be fixed to make latest be build when master changes - or removed entirely (less good imo, but you may have reasons)

dow184@TOWER-SL:~/src/dat/datBase$ docker run --rm -it -p 8888:80 datproject/datbase npm start
npm info it worked if it ends with ok
npm info using npm@3.10.10
npm info using node@v6.9.5
npm info lifecycle datbase.org@1.0.0~prestart: datbase.org@1.0.0
npm info lifecycle datbase.org@1.0.0~start: datbase.org@1.0.0

> datbase.org@1.0.0 start /usr/src/app
> npm run watch-js & npm run watch-css & npm run watch-server

npm info it worked if it ends with ok
npm info using npm@3.10.10
npm info using node@v6.9.5
npm info it worked if it ends with ok
npm info using npm@3.10.10
npm info using node@v6.9.5
npm info it worked if it ends with ok
npm info using npm@3.10.10
npm info using node@v6.9.5
npm info lifecycle datbase.org@1.0.0~prewatch-css: datbase.org@1.0.0
npm info lifecycle datbase.org@1.0.0~watch-css: datbase.org@1.0.0

> datbase.org@1.0.0 watch-css /usr/src/app
> nodemon --watch client -e scss -x "npm run build-css"

npm info lifecycle datbase.org@1.0.0~prewatch-js: datbase.org@1.0.0
sh: 1: nodemon: not found
npm info lifecycle datbase.org@1.0.0~watch-js: datbase.org@1.0.0


> datbase.org@1.0.0 watch-js /usr/src/app
> mkdir -p public/js && watchify --fast --verbose -t brfs -p [ css-extract -o bundle.css ] client/js/app.js -o public/js/app.js

npmnpm  infoinfo  lifecyclelifecycle datbase.org@1.0.0~watch-css: Failed to exec watch-css script
 datbase.org@1.0.0~prewatch-server: datbase.org@1.0.0
npm ERR! Linux 4.13.0-32-generic
npm ERR! argv "/usr/local/bin/node" "/usr/local/bin/npm" "run" "watch-css"
npm ERR! node v6.9.5
npm ERR! npm  v3.10.10
npm ERR! file sh
npm ERR! code ELIFECYCLE
npm ERR! errno ENOENT
npm ERR! syscall spawn
npm ERR! datbase.org@1.0.0 watch-css: `nodemon --watch client -e scss -x "npm run build-css"`
npm ERR! spawn ENOENT
npm ERR! 
npm ERR! Failed at the datbase.org@1.0.0 watch-css script 'nodemon --watch client -e scss -x "npm run build-css"'.
npm ERR! Make sure you have the latest version of node.js and npm installed.
npm ERR! If you do, this is most likely a problem with the datbase.org package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR!     nodemon --watch client -e scss -x "npm run build-css"
npm ERR! You can get information on how to open an issue for this project with:
npm ERR!     npm bugs datbase.org
npm ERR! Or if that isn't available, you can get their info via:
npmnpm info lifecycle datbase.org@1.0.0~watch-server: datbase.org@1.0.0
sh: 1: watchify: not found
 ERR!     npm owner ls datbase.org
npm ERR! There is likely additional logging output above.

> datbase.org@1.0.0 watch-server /usr/src/app
> nodemon server/cli --watch server --watch client



npm ERR! Please include the following file with any support request:
npm ERR!     /usr/src/app/npm-debug.log
sh: 1: nodemon: not found
npm info lifecycle datbase.org@1.0.0~watch-js: Failed to exec watch-js script
npm ERR! Linux 4.13.0-32-generic
npm ERR! argv "/usr/local/bin/node" "/usr/local/bin/npm" "run" "watch-js"
npm ERR! node v6.9.5
npm ERR! npm  v3.10.10
npm ERR! file sh
npm ERR! code ELIFECYCLE
npm ERR! errno ENOENT
npm ERR! syscall spawn
npm ERR! datbase.org@1.0.0 watch-js: `mkdir -p public/js && watchify --fast --verbose -t brfs -p [ css-extract -o bundle.css ] client/js/app.js -o public/js/app.js`
npm ERR! spawn ENOENT
npm ERR! 
npm ERR! Failed at the datbase.org@1.0.0 watch-js script 'mkdir -p public/js && watchify --fast --verbose -t brfs -p [ css-extract -o bundle.css ] client/js/app.js -o public/js/app.js'.
npm ERR! Make sure you have the latest version of node.js and npm installed.
npm ERR! If you do, this is most likely a problem with the datbase.org package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR!
     mkdir -p public/js && watchify --fast --verbose -t brfs -p [ css-extract -o bundle.css ] client/js/app.js -o public/js/app.js
npm ERR! You can get information on how to open an issue for this project with:
npm ERR!     npm bugs datbase.org
npm ERR! Or if that isn't available, you can get their info via:
npm ERR!     npm owner ls datbase.org
npm ERR! There is likely additional logging output above.
npm info lifecycle datbase.org@1.0.0~watch-server: Failed to exec watch-server script
npm ERR! Linux 4.13.0-32-generic
npm ERR! argv "/usr/local/bin/node" "/usr/local/bin/npm" "run" "watch-server"
npm ERR! node v6.9.5
npm ERR! npm  v3.10.10
npm ERR! file sh
npm ERR!
 code ELIFECYCLE
npm ERR!npm errno  ENOENT
ERR!npm Please include the following file with any support request:
 npmERR!  ERR!syscall     /usr/src/app/npm-debug.log
 spawn
npm ERR! datbase.org@1.0.0 watch-server: `nodemon server/cli --watch server --watch client`
npm ERR! spawn ENOENT
npm ERR! 
npm ERR! Failed at the datbase.org@1.0.0 watch-server script 'nodemon server/cli --watch server --watch client'.
npm ERR! Make sure you have the latest version of node.js and npm installed.
npm ERR! If you do, this is most likely a problem with the datbase.org package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR!     nodemon server/cli --watch server --watch client
npm ERR! You can get information on how to open an issue for this project with:
npm ERR!     npm bugs datbase.org
npm ERR! Or if that isn't available, you can get their info via:
npm ERR!     npm owner ls datbase.org
npm ERR! There is likely additional logging output above.

npm ERR! Please include the following file with any support request:
npm ERR!     /usr/src/app/npm-debug.log

npm info lifecycle datbase.org@1.0.0~start: Failed to exec start script
npm ERR! Linux 4.13.0-32-generic
npm ERR! argv "/usr/local/bin/node" "/usr/local/bin/npm" "start"
npm ERR! node v6.9.5
npm ERR! npm  v3.10.10
npm ERR! code ELIFECYCLE
npm ERR! datbase.org@1.0.0 start: `npm run watch-js & npm run watch-css & npm run watch-server`
npm ERR! Exit status 1
npm ERR! 
npm ERR! Failed at the datbase.org@1.0.0 start script 'npm run watch-js & npm run watch-css & npm run watch-server'.
npm ERR! Make sure you have the latest version of node.js and npm installed.
npm ERR! If you do, this is most likely a problem with the datbase.org package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR!     npm run watch-js & npm run watch-css & npm run watch-server
npm ERR! You can get information on how to open an issue for this project with:
npm ERR!     npm bugs datbase.org
npm ERR! Or if that isn't available, you can get their info via:
npm ERR!     npm owner ls datbase.org
npm ERR! There is likely additional logging output above.

npm ERR! Please include the following file with any support request:
npm ERR!     /usr/src/app/npm-debug.log

@joehand
Copy link
Contributor

joehand commented Mar 6, 2018

It should autobuild, we were just manually doing some builds to test deployment stuff.

npm start is just used for dev. Check out the Dockerfile for the commands we run on our server. The docker just installs the production modules, so stuff like watchify isn't installed.

@joehand
Copy link
Contributor

joehand commented Mar 6, 2018

Definitely want to get this easier to deploy! I'm not 100% knowledgeable about Docker, but hopefully I can help point the right way =).

I can start by sharing some of the things we set in production:

Environment variables:

    'TOWNSHIP_SECRET=SECRET_KEY_THING',
    'NODE_ENV=production',
    'POSTMARK_KEY=ourkey',

And the production config file.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants