*Капитан, и вы здесь?
Есть задание - есть полигон для велосипедов
Koa2
Angular(4.x.x)
Redux
Я хотел штопать модели и контроллеры
Vagrant?
FROM node:7.9.0
COPY . /app
CMD ["sh",
"/app/scripts/dev_entrypoint.sh"]
#!/bin/bash
# app/scripts/dev_entrypoint.sh
cd /app
npm install
./node_modules/nodemon/bin/nodemon.js /
--harmony /
--legacy-watch /
index.js
docker-compose.yml
version: '3'
services:
levi9-site-admin-api:
build: ./levi9-site-admin-api
volumes:
- ./levi9-site-admin-api:/app
ports:
- 8888:8081
version: '3'
services:
levi9-site-admin-api:
...
levi9-site-admin-front:
build: ./levi9-site-admin-front
volumes:
- ./levi9-site-admin-front:/app
ports:
- 4200:4200
depends_on:
- levi9-site-admin-api
FROM node:7.9.0
COPY . /app
CMD ["sh",
"/app/scripts/dev_entrypoint.sh"]
#!/bin/bash
cd /app
#npm install -g @angular/cli
if ! type "ng" > /dev/null; then
# install @angular/cli here
npm install -g @angular/cli
fi
npm install
npm run start
FROM nginx
RUN apt-get install -y cron
RUN apt-get install -y ruby-dev
RUN apt-get install -y make
RUN gem install jekyll bundler
# copy scripts
COPY docker_scripts/nginx.conf /etc/nginx/nginx.conf
...
RUN crontab /etc/cron.d/cronjob
# copy site
COPY . /usr/share/nginx/html
# bootstrap
WORKDIR /usr/share/nginx/html
CMD ["sh", "/usr/share/bootstrap.sh"]
# open ports
EXPOSE 18080
Контейнеры, их работают все cloud-провайдеры