+
Skip to content

fix: unable to start image due to sharp issue #6706

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Dec 12, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions .changeset/green-chefs-dance.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@reactioncommerce/api-plugin-files": minor
---

feat: upgrade sharp 0.29 to 0.30
7 changes: 6 additions & 1 deletion .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -189,9 +189,14 @@ jobs:
- run:
name: Create reaction.localhost network
command: docker network create "reaction.localhost" || true
- run:
name: Update docker-compose.circleci.yml with new reaction image version
command: |
VERSION=$(cat ./apps/reaction/package.json | grep -m 1 version | sed 's/[^0-9.]//g')
sed -i -e "s/REACTION_VERSION/$VERSION/g" ./docker-compose.circleci.yml
- run:
name: Run image
command: docker-compose up -d
command: docker-compose -f ./docker-compose.circleci.yml up -d
- run:
name: Wait for image run completed
command: sleep 30
Expand Down
43 changes: 43 additions & 0 deletions docker-compose.circleci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
# This docker-compose file is used to run the project's published image
#
# Usage: docker-compose up [-d]
#
# See comment in docker-compose.dev.yml if you want to run for development.

version: "3.9"

networks:
reaction:
name: reaction.localhost
external: true

services:
api:
image: reactioncommerce/reaction:REACTION_VERSION
depends_on:
- mongo
env_file:
- ./.env
networks:
- default
- reaction
ports:
- "3000:3000"

mongo:
image: mongo:4.2.0
command: mongod --oplogSize 128 --replSet rs0 --storageEngine=wiredTiger
networks:
- default
- reaction
ports:
- "27017:27017"
volumes:
- mongo-db4:/data/db
healthcheck: # re-run rs.initiate() after startup if it failed.
test: test $$(echo "rs.status().ok || rs.initiate().ok" | mongo --quiet) -eq 1
interval: 10s
start_period: 30s

volumes:
mongo-db4:
点击 这是indexloc提供的php浏览器服务,不要输入任何密码和下载