Skip to content

feat: configure kubo from custom container#23

Merged
olizilla merged 3 commits intomainfrom
config-kubo
Aug 17, 2022
Merged

feat: configure kubo from custom container#23
olizilla merged 3 commits intomainfrom
config-kubo

Conversation

@olizilla
Copy link
Copy Markdown
Contributor

@olizilla olizilla commented Aug 16, 2022

fixes #9
fixes #20

License: MIT
Signed-off-by: Oli Evans oli@protocol.ai

- Adds a dockerfile to init kubo with customised config.
- Forces platform to amd64 for images intended to run in ECS. I can't see a way to configure aws-cdk to set the platform when building, so we have to force it in the docker file. Thanks to https://stackoverflow.com/a/70614305/6490163

fixes #9
fixes #21

License: MIT
Signed-off-by: Oli Evans <oli@protocol.ai>
@olizilla olizilla requested a review from vasco-santos August 16, 2022 14:52
Dockerfile Outdated
@@ -1,5 +1,5 @@
# I build the pickup worker that subscribes to the SQS Queue.
FROM node:16-alpine
FROM --platform=linux/amd64 node:16-alpine
Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The real fix here would be to teach aws-cdk to let us specify the platform build arg when it runs the build but that is a harder path.

@olizilla
Copy link
Copy Markdown
Contributor Author

Oh my aws/aws-cdk#12472

@olizilla
Copy link
Copy Markdown
Contributor Author

So the real fix exists and was merged in this PR aws/aws-cdk#20563 but we SST requires we stick to a specific version of the aws-cdk for things to work, so we need to wait for an SST update to get it.

@olizilla
Copy link
Copy Markdown
Contributor Author

$ npx sst update v1.7.0
Updating @serverless-stack/cli to v1.7.0
Updating @serverless-stack/resources to v1.7.0
Updating aws-cdk-lib@2.32.0
SST: 1.7.0
CDK: 2.32.0

dont mess with the dockerfiles, force the platform in the infra code where we know the target arch.

License: MIT
Signed-off-by: Oli Evans <oli@protocol.ai>
@github-actions
Copy link
Copy Markdown

package-lock.json changes

Click to toggle table visibility
Name Status Previous Current
@aws-cdk/aws-apigatewayv2-alpha REMOVED 2.24.0-alpha.0 -
@aws-cdk/aws-apigatewayv2-authorizers-alpha REMOVED 2.24.0-alpha.0 -
@aws-cdk/aws-apigatewayv2-integrations-alpha REMOVED 2.24.0-alpha.0 -
@aws-cdk/aws-appsync-alpha REMOVED 2.24.0-alpha.0 -
@serverless-stack/cli UPDATED 1.2.12 1.7.0
@serverless-stack/core UPDATED 1.2.12 1.7.0
@serverless-stack/resources UPDATED 1.2.12 1.7.0
aws-cdk-lib UPDATED 2.24.0 2.32.0
aws-cdk UPDATED 2.24.0 2.32.0
zod REMOVED 3.17.3 -

License: MIT
Signed-off-by: Oli Evans <oli@protocol.ai>
@olizilla olizilla merged commit 00a465a into main Aug 17, 2022
@olizilla olizilla deleted the config-kubo branch August 17, 2022 08:56
@olizilla olizilla mentioned this pull request Aug 17, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Docker hub rate limiting Configure IPFS node

2 participants