Skip to content

Commit

Permalink
docker update in deeplinks
Browse files Browse the repository at this point in the history
  • Loading branch information
ivansglazunov committed Sep 8, 2024
1 parent 60d0987 commit 898758a
Show file tree
Hide file tree
Showing 6 changed files with 5 additions and 239 deletions.
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
FROM node:18-alpine3.17 AS node
FROM docker:20.10.8-dind-alpine3.14
FROM docker:27.2.0-dind-alpine3.20

COPY --from=node /usr/lib /usr/lib
COPY --from=node /usr/local/share /usr/local/share
Expand Down
149 changes: 0 additions & 149 deletions local/actions/docker-compose.yml

This file was deleted.

36 changes: 0 additions & 36 deletions local/deepcase/docker-compose.yml

This file was deleted.

47 changes: 0 additions & 47 deletions local/docker-compose.yml

This file was deleted.

8 changes: 3 additions & 5 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@deep-foundation/deeplinks",
"version": "0.0.456",
"version": "0.0.457",
"license": "Unlicense",
"type": "module",
"scripts": {
Expand Down Expand Up @@ -28,10 +28,8 @@
"unmigrate-s-h": "npm run package:build && npx migrate@latest down 1693460330175-sync-handlers-update --matches '*.js'",
"remigrate-s-h": "npm run unmigrate-s-h && npm run migrate",
"start-engine-docker": "npm run start-engine-docker-core",
"start-engine-docker-core": "cd ./../../node_modules/@deep-foundation/hasura && npm run docker",
"stop-engine-docker": "cd ./../../node_modules/@deep-foundation/hasura/local && docker compose --project-name deep down",
"start-deeplinks-docker": "cd local && docker compose pull && docker compose -p deep up -d",
"stop-deeplinks-docker": "cd local && docker compose -p deep down",
"start-deeplinks-docker": "docker compose pull && docker compose -p deep up -d",
"stop-deeplinks-docker": "docker compose -p deep down",
"snapshot:create": "node snapshots/create.js",
"snapshot:last": "node snapshots/last.js",
"snapshot:dump": "node snapshots/dump.js",
Expand Down
2 changes: 1 addition & 1 deletion snapshots/last.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ const last = async () => {
const files = await fs.readdir('./snapshots');
const snapshots = files.filter(file => /^-?[0-9]+$/.test(file));
const last = snapshots[snapshots.length - 1];
const { stdout, stderr } = await execP(`(docker compose -p deep -f docker-compose.yml -p deep stop || true ) && docker run -v ${_deeplinks}:/deeplinks -v deep-db-data:/data --rm --name links --entrypoint \"sh\" deepf/deeplinks:main -c \"cd / && tar xf deeplinks/snapshots/${last} --strip 1\" && (docker compose -p deep start || true) && cp snapshots/${last}.migrate .migrate`);
const { stdout, stderr } = await execP(`(docker compose -p deep stop || true ) && docker run -v ${_deeplinks}:/deeplinks -v deep-db-data:/data --rm --name links --entrypoint \"sh\" deepf/deeplinks:main -c \"cd / && tar xf deeplinks/snapshots/${last} --strip 1\" && (docker compose -p deep start || true) && cp snapshots/${last}.migrate .migrate`);
console.log('stdout',stdout);
console.log('stderr',stderr);
}
Expand Down

0 comments on commit 898758a

Please sign in to comment.