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: add Dockerfile #24

Merged
merged 12 commits into from
Jan 14, 2022
Merged

Conversation

magicmatatjahu
Copy link
Member

Description

Add Dockerfile and related things which we will mainly use in Kubernetes deployment for api.asyncapi.com domain:

  • add new, needed scripts
  • update tsconfig and split it to the normal (dev/prod) and test environments

@magicmatatjahu magicmatatjahu requested review from smoya and BOLT04 January 4, 2022 14:24
@magicmatatjahu magicmatatjahu added the enhancement New feature or request label Jan 4, 2022
Copy link
Member

@BOLT04 BOLT04 left a comment

Choose a reason for hiding this comment

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

awesome work @magicmatatjahu 💯
Just left a few comments.

.gitignore Outdated Show resolved Hide resolved
package.json Outdated Show resolved Hide resolved
.dockerignore Show resolved Hide resolved
Dockerfile Outdated Show resolved Hide resolved
Dockerfile Show resolved Hide resolved
src/app.ts Outdated Show resolved Hide resolved
Dockerfile Outdated Show resolved Hide resolved
smoya
smoya previously approved these changes Jan 5, 2022
Copy link
Member

@smoya smoya left a comment

Choose a reason for hiding this comment

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

LGTM! 🚀 🌔

BOLT04
BOLT04 previously approved these changes Jan 5, 2022
Copy link
Member

@BOLT04 BOLT04 left a comment

Choose a reason for hiding this comment

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

LGTM 👍

@magicmatatjahu magicmatatjahu mentioned this pull request Jan 10, 2022
2 tasks
@magicmatatjahu
Copy link
Member Author

@smoya Could you accept again? I had to add:

  "publishConfig": {
    "access": "public"
  },

to the package.json as well change version from 0.1.0 to the 0.0.1 to publish 0.1.0 :)

package.json Outdated
@@ -91,6 +91,9 @@
"ts-node": "^10.2.1",
"typescript": "^4.4.3"
},
"publishConfig": {
"access": "public"
Copy link
Member

Choose a reason for hiding this comment

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

I don't fully understand why this is needed but It's because you know, not familiar with it at all. Would you mind explaining quickly to me, please 🙏 ?

Copy link
Member Author

Choose a reason for hiding this comment

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

Hah it's only for release on npm, which we don't do. I'll have to remove that and let you know. But the general idea is to be able to publish the public version on npm the scoped packages (in our case @asyncapi/*), which by default is restricted. More info https://docs.npmjs.com/cli/v8/using-npm/config#access

Copy link
Member Author

Choose a reason for hiding this comment

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

Ok removed, @smoya Could you check again? Thanks! :)

@@ -1,6 +1,6 @@
{
"name": "@asyncapi/server-api",
"version": "0.1.0",
"version": "0.0.1",
Copy link
Member

Choose a reason for hiding this comment

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

As this version is already released it seems: https://github.com/asyncapi/server-api/releases/tag/v0.0.1

Would this be bumped automatically when releasing next version?

Copy link
Member Author

@magicmatatjahu magicmatatjahu Jan 14, 2022

Choose a reason for hiding this comment

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

Yes, it will be bumped, but semantic release check latest version and make bumps on that, so we have placeholder 0.0.1 release on Github to start next release - 0.1.0 :)

@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

Copy link
Member

@smoya smoya left a comment

Choose a reason for hiding this comment

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

LGTM! 🚀

@magicmatatjahu magicmatatjahu merged commit 5333a20 into asyncapi:master Jan 14, 2022
@magicmatatjahu magicmatatjahu deleted the dockerfile branch January 14, 2022 11:09
@asyncapi-bot
Copy link
Contributor

🎉 This PR is included in version 0.1.0 🎉

The release is available on:

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request released
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants