Skip to content
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

feat: enable to mount local spec for docker container #433

Closed
wants to merge 15 commits into from

Conversation

rikuson
Copy link

@rikuson rikuson commented Sep 24, 2022

Description

This is continued from #404 .

@magicmatatjahu

remove provided asyncapi.yaml in this PR

If asyncapi.yaml is removed, it doesn't work on local since dev-server doesn't return 404 code in HTTP header.
dev-server returns html document even if there's no static file.
Can you just ignore public/docs/asyncapi/asyncapi.yaml and public/docs/asyncapi/asyncapi.json for deployment?

Related issue(s)

Resolves #403

@netlify
Copy link

netlify bot commented Sep 24, 2022

Deploy Preview for modest-rosalind-098b67 ready!

Name Link
🔨 Latest commit 3951273
🔍 Latest deploy log https://app.netlify.com/sites/modest-rosalind-098b67/deploys/6545253b9d97970008d0b99c
😎 Deploy Preview https://deploy-preview-433--modest-rosalind-098b67.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

@sonarqubecloud
Copy link

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 0 Code Smells

No Coverage information No Coverage information
0.0% 0.0% Duplication

@github-actions
Copy link

This pull request has been automatically marked as stale because it has not had recent activity 😴

It will be closed in 120 days if no further activity occurs. To unstale this pull request, add a comment with detailed explanation.

There can be many reasons why some specific pull request has no activity. The most probable cause is lack of time, not lack of interest. AsyncAPI Initiative is a Linux Foundation project not owned by a single for-profit company. It is a community-driven initiative ruled under open governance model.

Let us figure out together how to push this pull request forward. Connect with us through one of many communication channels we established here.

Thank you for your patience ❤️

@github-actions github-actions bot added the stale label Jan 23, 2023
@fmvilas
Copy link
Member

fmvilas commented Jan 23, 2023

@magicmatatjahu do you mind having a look?

@github-actions github-actions bot removed the stale label Jan 24, 2023
@github-actions
Copy link

This pull request has been automatically marked as stale because it has not had recent activity 😴

It will be closed in 120 days if no further activity occurs. To unstale this pull request, add a comment with detailed explanation.

There can be many reasons why some specific pull request has no activity. The most probable cause is lack of time, not lack of interest. AsyncAPI Initiative is a Linux Foundation project not owned by a single for-profit company. It is a community-driven initiative ruled under open governance model.

Let us figure out together how to push this pull request forward. Connect with us through one of many communication channels we established here.

Thank you for your patience ❤️

@github-actions github-actions bot added the stale label May 25, 2023
fmvilas
fmvilas previously approved these changes May 30, 2023
Copy link
Member

@fmvilas fmvilas left a comment

Choose a reason for hiding this comment

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

LGTM 👍

@fmvilas fmvilas changed the title feat: Enable to mount local spec for docker container feat: enable to mount local spec for docker container May 30, 2023
@sonarqubecloud
Copy link

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 0 Code Smells

No Coverage information No Coverage information
0.0% 0.0% Duplication

@fmvilas
Copy link
Member

fmvilas commented May 30, 2023

@rikuson there are errors in your code. Would you mind having a look? Apologies for the delay in the review 🙏

@github-actions github-actions bot removed the stale label May 31, 2023
@KhudaDad414
Copy link
Member

@rikuson do you need some help with this?

@rikuson
Copy link
Author

rikuson commented Oct 1, 2023

OK, I'll take a look.

@Amzani
Copy link
Collaborator

Amzani commented Oct 16, 2023

/au

@rikuson rikuson requested a review from KhudaDad414 as a code owner October 17, 2023 23:06
@changeset-bot
Copy link

changeset-bot bot commented Oct 17, 2023

⚠️ No Changeset found

Latest commit: 3951273

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.

This PR includes no changesets

When changesets are added to this PR, you'll see the packages that this PR includes changesets for and the associated semver types

Click here to learn what changesets are, and how to add one.

Click here if you're a maintainer who wants to add a changeset to this PR

@netlify
Copy link

netlify bot commented Oct 17, 2023

Deploy Preview for asyncapi-studio-design-system ready!

Name Link
🔨 Latest commit 3951273
🔍 Latest deploy log https://app.netlify.com/sites/asyncapi-studio-design-system/deploys/6545253baf8c3f0007152201
😎 Deploy Preview https://deploy-preview-433--asyncapi-studio-design-system.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

@rikuson
Copy link
Author

rikuson commented Oct 17, 2023

@KhudaDad414 @fmvilas I fixed!

@rikuson
Copy link
Author

rikuson commented Oct 17, 2023

Sorry, it seems got broken after I merged master branch. I'll fix it.

@rikuson
Copy link
Author

rikuson commented Oct 18, 2023

@KhudaDad414 @fmvilas Done.

@Amzani
Copy link
Collaborator

Amzani commented Oct 24, 2023

@rikuson @KhudaDad414 Sonarcloud is complaining about COPY . . I'm wondering why this was not triggered before.
I see this as a common practice in multi-stage builds, I suggest to add it as an exception maybe, or explicitly copy the files.

Copy link
Author

Choose a reason for hiding this comment

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

Now building docker image shows error below.

$ docker-compose up
...
=> ERROR [builder 6/6] RUN turbo prune --scope=@asyncapi/studio --docker
Turbo error: could not resolve workspaces: We did not find a package manager specified in your root package.json. Please set the "packageManager" property in your root package.json (https://nodejs.org/api/packages.html#packagemanager) or run `npx @turbo/codemod add-package-manager` in the root of your monorepo.

I think because it has changed into monorepo.

Copy link
Author

@rikuson rikuson Oct 24, 2023

Choose a reason for hiding this comment

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

It seems not relevant with the issue.
But if I bring Dockerfile and docker-compose.yaml to the root, it works.
What should I do?

Copy link
Collaborator

@Amzani Amzani Oct 24, 2023

Choose a reason for hiding this comment

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

Just move both files to the root @rikuson , the sonarcloud security alert is already on the master branch, we'll try to fix it in an other PR, or just ignore it.

Copy link
Collaborator

Choose a reason for hiding this comment

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

Any updates @rikuson ?

Copy link
Author

Choose a reason for hiding this comment

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

I moved both files to the root. 👍

Copy link
Member

@KhudaDad414 KhudaDad414 left a comment

Choose a reason for hiding this comment

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

left some comments.

Dockerfile Outdated Show resolved Hide resolved
Dockerfile Show resolved Hide resolved
Copy link

sonarqubecloud bot commented Nov 3, 2023

SonarCloud Quality Gate failed.    Quality Gate failed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot E 4 Security Hotspots
Code Smell A 11 Code Smells

No Coverage information No Coverage information
1.0% 1.0% Duplication

idea Catch issues before they fail your Quality Gate with our IDE extension sonarlint SonarLint

@Amzani
Copy link
Collaborator

Amzani commented Nov 24, 2023

Hi @rikuson can you take a look at this PR ?

Thanks

@Amzani
Copy link
Collaborator

Amzani commented Feb 16, 2024

@rikuson this PR needs some love :)

@rikuson
Copy link
Author

rikuson commented Feb 18, 2024

Sorry, I'm not motivated anymore.
I'm not gonna continue and it can be closed.

@Amzani Amzani closed this Mar 18, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

load spec file via Docker volume
6 participants