I wanted to dockerize galenframework tests. Here is what I have currently:
DockerFile
FROM node:8.6
RUN mkdir -p /usr/src/galen
WORKDIR /usr/src/galen
COPY package.json /usr/src/galen/
RUN npm install
COPY . /usr/src/galen
docker-compose.yml
version: '2'
services:
galenframework:
build:
context: .
dockerfile: Dockerfile
volumes:
- .:/usr/src/galen
package.json
{
"name": "docker_galen",
"version": "1.0.0",
"description": "Node.js on Docker with Galen",
"dependencies": {
"galenframework-cli": "2.3.5"
}
}
after running docker-compose up -d
I get following error:
info Install exited unexpectedly npm info lifecycle [email protected]~postinstall: Failed to exec postinstall script npm WARN [email protected] No repository field. npm WARN [email protected] No license field. npm ERR! code ELIFECYCLE npm ERR! errno 1 npm ERR! [email protected] postinstall: node postinstall.js npm ERR! Exit status 1 npm ERR! npm ERR! Failed at the [email protected] postinstall script. npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
How can I fix this?
You need Java to run Galen, so this should work