Skip to content

Commit

Permalink
Adds dev files for Docker
Browse files Browse the repository at this point in the history
  • Loading branch information
OlehDutchenko committed Sep 7, 2024
1 parent 29cccbd commit a7d6e1a
Show file tree
Hide file tree
Showing 3 changed files with 24 additions and 1 deletion.
12 changes: 12 additions & 0 deletions compose.dev.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
name: scmq

services:
repo:
build:
dockerfile: dev.dockerfile
container_name: ${COMPOSE_PROJECT_NAME}-dev
hostname: ${COMPOSE_PROJECT_NAME}-dev
working_dir: /app
tty: true
volumes:
- ./:/app
7 changes: 7 additions & 0 deletions dev.dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
# This file is used to build the local development image

FROM node:12-alpine

RUN apk --no-cache add git libc6-compat

WORKDIR /app
6 changes: 5 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,11 @@
"eslint": "eslint \"./{lib,tests}/**/*.js\"",
"eslint:fix": "npm run eslint -- --fix",
"jest": "jest",
"jest:coverage": "npm run jest -- --coverage && istanbul-badges-readme"
"jest:coverage": "npm run jest -- --coverage && istanbul-badges-readme",
"--- DEV-DOCKER ---": "SECTION",
"dev-up": "docker compose -f compose.dev.yml up -d",
"dev-exec": "docker exec -it scmq-dev sh",
"dev-down": "docker compose -f compose.dev.yml down --remove-orphans"
},
"jest": {
"verbose": true,
Expand Down

0 comments on commit a7d6e1a

Please sign in to comment.