garageScript / databases

Play with databases without account
https://learndatabases.dev/
7 stars 11 forks source link

Docker image configuration #236

Closed Ulisseus closed 3 years ago

Ulisseus commented 4 years ago

Dockerizing the whole project

docker build -t <your_tag> . rebuilds the image, you need to have docker and docker-compose installed. To start run docker-compose up. By default app starts at localhost:4000, environment variables in docker-compose.yml can change host and port.

docker exec -it <container id> npm run test runs tests inside container.

Docker hub repo with current release https://hub.docker.com/r/ulisseus/learn_databases

codecov[bot] commented 4 years ago

Codecov Report

Merging #236 into master will not change coverage. The diff coverage is 100.00%.

Impacted file tree graph

@@            Coverage Diff            @@
##            master      #236   +/-   ##
=========================================
  Coverage   100.00%   100.00%           
=========================================
  Files           11        12    +1     
  Lines          414       445   +31     
  Branches        40        43    +3     
=========================================
+ Hits           414       445   +31     
Impacted Files Coverage Δ
sequelize/db.js 100.00% <ø> (ø)
database/elasticsearch/elastic.js 100.00% <100.00%> (ø)
database/postgres/pg.js 100.00% <100.00%> (ø)
lib/users.js 100.00% <100.00%> (ø)
src/routes/renderRoutes.js 100.00% <100.00%> (ø)
src/routes/userRoutes.js 100.00% <100.00%> (ø)
src/server.js 100.00% <100.00%> (ø)
... and 1 more

Continue to review full report at Codecov.

Legend - Click here to learn more Δ = absolute <relative> (impact), ø = not affected, ? = missing data Powered by Codecov. Last update 39a2f8e...cd3e3cd. Read the comment docs.