Sign inSign up

kuberlab/dealer-shop

By kuberlab

•Updated almost 3 years ago

Kibernetika project, frontend component

Image
2

9.9K

kuberlab/dealer-shop repository overview

⁠Dealer Shop

⁠Local start

Environment setup (run it once):

$ apt-get -y install curl 
$ curl -sL https://deb.nodesource.com/setup | bash - 
$ apt-get -y install nodejs bzip2 git
$ npm install -g bower gulp-cli

Install npm modules to ./node_modules (run it once in project's dir):

$ npm install

Install bower components to ./bower_components (run it once in project's dir, if you are root user, run with key --allow-root):

$ bower install

Build ./dist with complete ES6-app from sources ./src and bower components ./bower_components (run in project's dir):

$ gulp build

Start nginx-based container (run in project's dir):

$ ./local.sh

API should be available on http://localhost:8082.

⁠Docker build

docker build --tag kuberlab/dealer-shop:base -f BaseDocker . docker build --tag kuberlab/dealer-shop -f Dockerfile .

⁠Local start

docker build --tag kuberlab/dealer-shop -f DockerfileLocal . docker run --name dealer -it --rm -p 8081:80 kuberlab/dealer-shop:latest bash -c 'echo "192.168.31.142 cloud-dealer" >> /etc/hosts && nginx -g "daemon off;"' my api 192.168.31.142 localhost:8081

Tag summary

Content type

Image

Digest

sha256:35d974159…

Size

90.3 MB

Last updated

almost 3 years ago

docker pull kuberlab/dealer-shop