Skip to content

Commit

Permalink
wip
Browse files Browse the repository at this point in the history
  • Loading branch information
ZJONSSON committed May 27, 2024
1 parent 3095dfc commit 9ff59e9
Show file tree
Hide file tree
Showing 3 changed files with 31 additions and 21 deletions.
20 changes: 20 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
name: Node.js CI

on:
push:
branches: [ master ]
pull_request:
branches: [ master ]
workflow_dispatch:

jobs:
lint:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v3
- name: Linting with ESLint
uses: actions/setup-node@v3
with:
node-version: 18.x
- run: npm test
28 changes: 9 additions & 19 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,40 +29,30 @@ services:
- "9229:9229"
expose:
- 9229
networks:
etl-network:
ipv4_address: 173.23.0.100

mongodb:
image: 'mongo:7'
networks:
- etl-network

mysql:
image: mysql:8
command: --default-authentication-plugin=mysql_native_password
image: mysql:8.0
restart: always
environment:
MYSQL_ROOT_PASSWORD: example
networks:
- etl-network
- MYSQL_ROOT_PASSWORD=example

command: ["mysqld", "--default-authentication-plugin=mysql_native_password", "--sql_mode="]
volumes:
- mysql-data:/var/lib/mysql

postgres:
image: postgres:16
restart: always
environment:
POSTGRES_PASSWORD: example
networks:
- etl-network

elasticsearch:
image: elasticsearch:8.12.0
environment: ['http.host=0.0.0.0', 'transport.host=127.0.0.1','xpack.security.enabled=false', 'xpack.security.enrollment.enabled=false']
networks:
- etl-network

networks:
etl-network:
ipam:
config:
- subnet: 173.23.0.0/16

volumes:
mysql-data:
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@
"url": "http://github.com/ZJONSSON/node-etl"
},
"scripts": {
"test": "docker-compose -p etl up -d --no-recreate;docker exec -it etl-runner-1 bash ./test.sh",
"docker": "docker-compose -p etl up -d --no-recreate;docker exec -it etl-runner-1 bash"
"test": "docker compose up -d --no-recreate;docker exec -it node-etl-runner-1 bash ./test.sh",
"docker": "docker compose up -d --no-recreate;docker exec -it node-etl-runner-1 bash"
},
"license": "MIT",
"dependencies": {
Expand Down

0 comments on commit 9ff59e9

Please sign in to comment.