-
-
Notifications
You must be signed in to change notification settings - Fork 157
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 and its release pipeline #598
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Welcome to AsyncAPI. Thanks a lot for creating your first pull request. Please check out our contributors guide useful for opening a pull request.
Keep in mind there are also other channels you can use to interact with AsyncAPI community. For more details check out this issue.
@Savio629 so far so good, just solve merge conflicts are you still exploring alternative solution? I was also wondering if you could add https://github.com/marketplace/actions/docker-hub-readme-description-sync as another step in the automation, after pushing to docker? as apparently docker do not pick github readme by default |
I'm exploring the alternative solution, I'll update you by tomorrow. |
@Savio629 yup, all good with workflows, you can remove |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
all good, just apply my suggestion to make it run on release
Co-authored-by: Lukasz Gornicki <[email protected]>
@Savio629 can you also have a look on sonarcloud complain about security? |
@derberg Fixed one of the warnings but the second warning tells me to run the dockerfile in |
@Savio629 but sonar said to use |
Yeah I updated the pr. |
Kudos, SonarCloud Quality Gate passed! 0 Bugs No Coverage information |
/rtm Thanks 🙏 |
🎉 This PR is included in version 0.47.0 🎉 The release is available on: Your semantic-release bot 📦🚀 |
docker push asyncapi/cli:${{ steps.version.outputs.value }} | ||
docker push asyncapi/cli:latest | ||
|
||
- name : Sync README.md and Description to Docker Hub |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Does it really need a secund checkout action?
rm /var/cache/apk/* | ||
|
||
# Installing latest released npm package | ||
RUN npm install --ignore-scripts -g @asyncapi/cli |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think the cli version should be configurable, because then you don't know which version is inside the container
# Switch to the non-root user | ||
USER myuser | ||
|
||
ENTRYPOINT [ "asyncapi" ] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Empty line missing
@@ -177,4 +178,4 @@ | |||
"get-version": "echo $npm_package_version" | |||
}, | |||
"types": "lib/index.d.ts" | |||
} | |||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Empty line missing
@Ferror the PR is already merged, please open up a followup to improve it 🙏🏼 |
Description
Draft PR
-Added Docker using npm (researching using linux-curl)
-Added worflow for docker
-Added docker:build script
Related issue(s)
Resolves #358