The image:
docker build -t godel-demo .
Run the installation:
docker run -it --rm -v "$PWD":/usr/src/app -w /usr/src/app godel-demo npm install
Then build the webpack server assets:
docker run -it --rm -v "$PWD":/usr/src/app -w /usr/src/app godel-demo npm run build
Run server
docker run -it --rm -v "$PWD":/usr/src/app -p 9112:9111 -w /usr/src/app godel-demo npm run dev
Open in the browser http://127.0.0.1:9112/
First, build initial image with all the dependant files:
docker build -t godel-demo .
Then build actual cloud image:
docker build -f docker/Dockerfile -t front-nginx .
And tag it according to the AWS repo:
docker tag front-nginx:latest 375550435474.dkr.ecr.eu-west-2.amazonaws.com/front-nginx:latest
Then push it to the cloud:
docker push 375550435474.dkr.ecr.eu-west-2.amazonaws.com/front-nginx:latest
Then you'll have the image ready for the front end kubernetes app deployment declaration.
npm run lint
This command will check all .js
and .jsx
files that they match project code style.
npm run lint:fix
Fixes all code style errors in .js, .jsx
files.
npm run test
Runs unit-tests. (all files with *.spec.js|*.test.js
postfix will be matched)
Runs unit-tests in dev mode, so any changes will trigger job to rerun tests.