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

build(tools/docker/indy-sdk-cli): fix deprecation deb.nodesource.com/setup_16.x #2706

Merged
merged 1 commit into from
Oct 13, 2023

Conversation

urvish667
Copy link
Contributor

@urvish667 urvish667 commented Sep 18, 2023

Change Description:

In the Dockerfile, the issue related to NodeJS was addressed by updating the NodeJS installation method to use the new NodeSource installation method. The previous method using curl -sL https://deb.nodesource.com/setup_16.x | bash - had become deprecated, so the new method was applied for compatibility with the latest practices.

The specific changes made in the Dockerfile are as follows:

  1. Removed the old installation method for NodeJS:

    # Removed the deprecated NodeJS installation method
    # RUN curl -sL https://deb.nodesource.com/setup_16.x | bash -
  2. Added the new NodeSource installation method:

    # Added the new NodeSource installation method for NodeJS
    RUN curl -fsSL https://deb.nodesource.com/gpgkey/nodesource-repo.gpg.key | gpg --dearmor -o /usr/share/keyrings/nodesource-archive-keyring.gpg \
        && echo "deb [arch=amd64 signed-by=/usr/share/keyrings/nodesource-archive-keyring.gpg] https://deb.nodesource.com/node bionic main" | tee /etc/apt/sources.list.d/nodesource.list

Fixes #2701

@urvish667 urvish667 changed the title Fix deprecation of deb.nodesource.com/setup_16.x Fix: fix deprecation of deb.nodesource.com/setup_16.x Sep 19, 2023
@urvish667 urvish667 changed the title Fix: fix deprecation of deb.nodesource.com/setup_16.x fix: fix deprecation of deb.nodesource.com/setup_16.x Sep 19, 2023
Copy link
Contributor

@petermetz petermetz left a comment

Choose a reason for hiding this comment

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

LGTM

@petermetz petermetz changed the title fix: fix deprecation of deb.nodesource.com/setup_16.x build(tools/docker/indy-sdk-cli): fix deprecation deb.nodesource.com/setup_16.x Sep 19, 2023
Copy link
Contributor

@petermetz petermetz left a comment

Choose a reason for hiding this comment

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

@urvish667 LGTM on the diff but please make sure your commit message is the same as your PR description + title, e.g. the git commit message should be what I pasted below.

(Note that I renamed the PR title to match the issue title that you've been working on fixing)

If you need any help with git, just let me know (and invite me as a collaborator to your fork)

build(tools/docker/indy-sdk-cli): fix deprecation deb.nodesource.com/setup_16.x

**Change Description:**

In the Dockerfile, the issue related to NodeJS was addressed by updating the NodeJS installation method to use the new NodeSource installation method. The previous method using `curl -sL https://deb.nodesource.com/setup_16.x | bash -` had become deprecated, so the new method was applied for compatibility with the latest practices.

The specific changes made in the Dockerfile are as follows:

1. Removed the old installation method for NodeJS:

   ```Dockerfile
   # Removed the deprecated NodeJS installation method
   # RUN curl -sL https://deb.nodesource.com/setup_16.x | bash -
  1. Added the new NodeSource installation method:

    # Added the new NodeSource installation method for NodeJS
    RUN curl -fsSL https://deb.nodesource.com/gpgkey/nodesource-repo.gpg.key | gpg --dearmor -o /usr/share/keyrings/nodesource-archive-keyring.gpg \
        && echo "deb [arch=amd64 signed-by=/usr/share/keyrings/nodesource-archive-keyring.gpg] https://deb.nodesource.com/node bionic main" | tee /etc/apt/sources.list.d/nodesource.list

Fixes #2701

@jagpreetsinghsasan
Copy link
Contributor

LGTM

@petermetz
Copy link
Contributor

@urvish667 Just checking in, are you still working on this one?

@urvish667
Copy link
Contributor Author

@petermetz
Thanks for the correction on the PR message and commit. I am still new to opensource contributions, so please tell me where I went wrong in PR. You already corrected PR and commit issue right?
Thanks.

@petermetz
Copy link
Contributor

@petermetz Thanks for the correction on the PR message and commit. I am still new to opensource contributions, so please tell me where I went wrong in PR.

@urvish667 No worries! Well, you haven't done anything wrong, because the contributing guide does not call out explicitly that the commit message and the PR description should match (which is an error my part).

You already corrected PR and commit issue right? Thanks.

Not yet, but I can do it very quickly if you invite me as a collaborator to your cacti fork (it will give me permission to force push changes onto your feature branch that is backing your PR)

Copy link
Contributor

@petermetz petermetz left a comment

Choose a reason for hiding this comment

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

See my comment above^^

@urvish667
Copy link
Contributor Author

Thanks
@petermetz, I have invited you as a collaborator in my repository.

…setup_16.x

**Primary Change:**

In the Dockerfile, the issue related to NodeJS was addressed by
updating the NodeJS installation method to use the new NodeSource
installation method. The previous method using
`curl -sL https://deb.nodesource.com/setup_16.x | bash -`
had become deprecated, so the new method was applied for compatibility
with the latest practices.

The specific changes made in the Dockerfile are as follows:

1. Removed the old installation method for NodeJS:

   ```Dockerfile
   # Removed the deprecated NodeJS installation method
   # RUN curl -sL https://deb.nodesource.com/setup_16.x | bash -
   ```

2. Added the new NodeSource installation method:

```Dockerfile
RUN curl -fsSL https://deb.nodesource.com/gpgkey/nodesource-repo.gpg.key | \
        gpg --dearmor -o /usr/share/keyrings/nodesource-archive-keyring.gpg \
    && echo "deb [arch=amd64 signed-by=/usr/share/keyrings/nodesource-archive-keyring.gpg] \
    https://deb.nodesource.com/node bionic main" | \
    tee /etc/apt/sources.list.d/nodesource.list
```

[skip ci]

Co-authored-by: Peter Somogyvari <[email protected]>

Signed-off-by: urvish667 <[email protected]>
Signed-off-by: Peter Somogyvari <[email protected]>
Copy link
Contributor

@petermetz petermetz left a comment

Choose a reason for hiding this comment

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

@urvish667 I updated your commit message, we are good to go.

@urvish667
Copy link
Contributor Author

Thanks @petermetz

@petermetz petermetz merged commit f5ede41 into hyperledger-cacti:main Oct 13, 2023
6 of 7 checks passed
@petermetz petermetz deleted the fix-indy-sdk-cli-issue branch October 13, 2023 06:21
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.

build(tools/docker/indy-sdk-cli): fix deprecation deb.nodesource.com/setup_16.x
5 participants