Skip to content

Commit

Permalink
adding in amd64 support on test:services:start (#946)
Browse files Browse the repository at this point in the history
  • Loading branch information
jaredwray authored Nov 13, 2023
1 parent 1258b99 commit 01afe72
Show file tree
Hide file tree
Showing 2 changed files with 88 additions and 0 deletions.
86 changes: 86 additions & 0 deletions docker-compose-arm64.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,86 @@
version: '3.8'
services:
keyv_postgres:
image: postgres:latest
command: postgres -c 'max_connections=200'
environment:
POSTGRES_DB: keyv_test
POSTGRES_PASSWORD: postgres
POSTGRES_USER: postgres
ports:
- 5432:5432/tcp
keyv_postgres_1:
build:
context: packages/postgres
dockerfile: Dockerfile.ssl
command: postgres -c 'max_connections=200' -c 'ssl=on' -c 'ssl_cert_file=/keyv_postgres_ssl/server.crt' -c 'ssl_key_file=/keyv_postgres_ssl/server.key' -c 'hba_file=/keyv_postgres_ssl/pg_hba.conf' -c "listen_addresses=*"
environment:
POSTGRES_DB: keyv_test
POSTGRES_PASSWORD: postgres
POSTGRES_USER: postgres
ports:
- 5433:5432/tcp
keyv_mysql:
image: mysql:latest
command: --default-authentication-plugin=mysql_native_password
restart: always
ports:
- 3306:3306
environment:
MYSQL_ALLOW_EMPTY_PASSWORD: 1
MYSQL_DATABASE: keyv_test
MYSQL_USER: mysql
keyv_mysql_1:
image: "mysql/mysql-server:8.0.17"
command: [ "mysqld",
"--character-set-server=utf8mb4",
"--collation-server=utf8mb4_unicode_ci",
"--require_secure_transport=ON",
"--bind-address=0.0.0.0",
"--ssl-ca=/etc/certs/ca.pem",
"--ssl-cert=/etc/certs/server-cert.pem",
"--ssl-key=/etc/certs/server-key.pem",
"--default_authentication_plugin=mysql_native_password" ]
ports:
- "3307:3306"
volumes:
- type: bind
source: ./packages/mysql/test/certs
target: /etc/certs/
restart: always
environment:
MYSQL_ALLOW_EMPTY_PASSWORD: 1
MYSQL_DATABASE: keyv_test
MYSQL_ROOT_HOST: '%'
keyv_redis:
image: redis:latest
environment:
REDIS_HOST: redis
ports:
- 6379:6379
keyv_redis_1:
image: redis:latest
command: redis-server --port 0 --tls-port 6380 --tls-cert-file /tls/redis.crt --tls-key-file /tls/redis.key --tls-ca-cert-file /tls/ca.crt --tls-auth-clients no
environment:
REDIS_HOST: redis
ports:
- 6380:6380
volumes:
- ./packages/redis/tls:/tls
keyv_mongo:
image: mongo:latest
restart: always
ports:
- 27017:27017
keyv_memcached:
image: memcached:latest
ports:
- "11211:11211"
keyv_etcd:
image: bitnami/etcd:latest
platform: linux/arm64
environment:
- ALLOW_NONE_AUTHENTICATION=yes
ports:
- 2379:2379
- 2380:2380
2 changes: 2 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,8 @@
"test": " yarn build && c8 --reporter=lcov yarn workspaces run test:ci",
"test:services:start": "docker-compose -f ./docker-compose.yaml up -d",
"test:services:stop": "docker-compose -f ./docker-compose.yaml down -v",
"test:services-arm64:start": "docker-compose -f ./docker-compose-arm64.yaml up -d",
"test:services-arm64:stop": "docker-compose -f ./docker-compose-arm64.yaml down -v",
"website:build": "yarn workspace @keyv/website run build",
"clean": "rm -rf node_modules && rm -rf yarn.lock && yarn workspaces run clean"
},
Expand Down

0 comments on commit 01afe72

Please sign in to comment.