Skip to content

Commit

Permalink
Merge pull request #231 from creativecommons/docker-node14
Browse files Browse the repository at this point in the history
Add node14 Docker and update npm packages
  • Loading branch information
TimidRobot authored Apr 11, 2024
2 parents 0457237 + 2cee841 commit a7471b3
Show file tree
Hide file tree
Showing 5 changed files with 2,546 additions and 11,102 deletions.
6 changes: 6 additions & 0 deletions dev/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
# https://docs.docker.com/reference/dockerfile/

# https://hub.docker.com/_/node/
FROM node:14

WORKDIR /app
17 changes: 13 additions & 4 deletions dev/docker-compose.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
version: '3.2'
# Use docker compose v2 for non swarm deployments
# https://docs.docker.com/compose/compose-file/compose-file-v2/
version: '2.4'
services:
wordpress:
container_name: 'local-wordpress'
Expand All @@ -23,9 +25,8 @@ services:
- /var/www/html/wp-content/plugins/wp-plugin-creativecommons/dev/wordpress
- /var/www/html/wp-content/plugins/wp-plugin-creativecommons/dev/db
wpcli:
# continue running until shutdown (this allows docker compose exec which is
# much faster than docker compose run)
# Credits: https://serverfault.com/a/1084975
# continue running until shutdown (allows docker compose exec which is much
# faster than docker compose run) per https://serverfault.com/a/1084975
command: sh -c 'trap "exit" TERM; while true; do sleep 1; done'
container_name: 'local-wpcli'
depends_on:
Expand Down Expand Up @@ -57,3 +58,11 @@ services:
MYSQL_ROOT_PASSWORD: root
volumes:
- ./db:/var/lib/mysql
node:
build: .
# continue running until shutdown (allows docker compose exec which is much
# faster than docker compose run) per https://serverfault.com/a/1084975
command: sh -c 'trap "exit" TERM; while true; do sleep 1; done'
container_name: 'local-node'
volumes:
- ..:/app
Loading

0 comments on commit a7471b3

Please sign in to comment.