From 9a9c3d4c62ba7d6beeddb08abded6fb7449b1e52 Mon Sep 17 00:00:00 2001 From: Namekuji Date: Sun, 4 Jun 2023 16:29:24 -0400 Subject: [PATCH] add rust to the runtime container for migrations --- Dockerfile | 2 +- docker-compose.yml | 2 +- packages/backend/package.json | 4 ++-- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/Dockerfile b/Dockerfile index 0aa13aefeb..d8671911e4 100644 --- a/Dockerfile +++ b/Dockerfile @@ -36,7 +36,7 @@ FROM node:19-alpine WORKDIR /calckey # Install runtime dependencies -RUN apk add --no-cache --no-progress tini ffmpeg vips-dev zip unzip +RUN apk add --no-cache --no-progress tini ffmpeg vips-dev zip unzip rust cargo COPY . ./ diff --git a/docker-compose.yml b/docker-compose.yml index bf4e4fb8da..e4f751af08 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -8,7 +8,7 @@ services: depends_on: - db - redis - - meilisearch +# - meilisearch ports: - "3000:3000" networks: diff --git a/packages/backend/package.json b/packages/backend/package.json index 47e9c415cb..c2e1e71131 100644 --- a/packages/backend/package.json +++ b/packages/backend/package.json @@ -8,10 +8,10 @@ "start:test": "NODE_ENV=test pnpm node ./built/index.js", "migrate": "pnpm run migrate:typeorm && pnpm run migrate:cargo", "migrate:typeorm": "typeorm migration:run -d ormconfig.js", - "migrate:cargo": "cargo run --manifest-path native-utils/migration/Cargo.toml -- up", + "migrate:cargo": "cargo run --manifest-path ./native-utils/migration/Cargo.toml -- up", "revertmigration": "pnpm run revertmigration:cargo && pnpm run revertmigration:typeorm", "revertmigration:typeorm": "typeorm migration:revert -d ormconfig.js", - "revertmigration:cargo": "cargo run --manifest-path native-utils/migration/Cargo.toml -- down", + "revertmigration:cargo": "cargo run --manifest-path ./native-utils/migration/Cargo.toml -- down", "check:connect": "node ./check_connect.js", "build": "pnpm swc src -d built -D", "watch": "pnpm swc src -d built -D -w",