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

Change the base image in Dockerfile block (nginx:1.17 to nginx:1.24-alpine) #22

Merged
merged 11 commits into from
May 23, 2023

Conversation

sinsukehlab
Copy link
Contributor

@sinsukehlab sinsukehlab commented Apr 25, 2023

Why:

nginx:1.17 is vulnerable.

What's being changed:

README.md

  • comment: CC-BY 4.0 → MIT
  • Dockerfile block: nginx:1.17 → nginx:1.24-alpine
  • Add -p 8080:80 to the docker run command

2-add-a-dockerfile.yml

  • Verify Dockerfile contents: nginx:1.17 → nginx:1.24-alpine

Check off the following:

  • For workflow changes, I have verified the Actions workflows function as expected.
  • For content changes, I have reviewed the style guide.

@sinsukehlab sinsukehlab changed the title Docker block Change the base image in Dockerfile block (nginx:1.17 to nginx:1.24-alpine) Apr 25, 2023
@sinsukehlab sinsukehlab mentioned this pull request Apr 25, 2023
2 tasks
Copy link

@hectorsector hectorsector left a comment

Choose a reason for hiding this comment

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

Thanks for making the update @sinsukehlab! We'll also need to update the workflow for step 2 (see below) as it validates the contents of Dockerfile.

To test your changes after you do this, you can:

  1. Create a new repository
  2. Push from your branch to the new repository's main branch
  3. Run through the course in the new repository

These steps should flag any remaining problems with the changes.

# Check the learner added intended contents to the file
- name: Verify Dockerfile contents
run: ./.github/script/check-file.sh
env:
FILE: "Dockerfile"
SEARCH: "FROM nginx:1.17"

Verify Dockerfile contents
@sinsukehlab
Copy link
Contributor Author

I have updated the workflow for Step 2.

@sinsukehlab
Copy link
Contributor Author

@cmwilson21 cmwilson21 self-requested a review May 2, 2023 16:09
@cmwilson21 cmwilson21 self-assigned this May 2, 2023
@cmwilson21
Copy link
Contributor

@sinsukehlab Thanks for the verification! I'll take a look at this from the content side ✨

README.md Outdated Show resolved Hide resolved
README.md Outdated Show resolved Hide resolved
README.md Outdated Show resolved Hide resolved
@cmwilson21
Copy link
Contributor

@sinsukehlab 👋 - Just added a few minor content edits 👍

Let me know if you accept them and I'll get this merged ✅

sinsukehlab and others added 3 commits May 11, 2023 13:25
Co-authored-by: Courtney Wilson <77312589+cmwilson21@users.noreply.github.com>
example of running the docker command listed above

Co-authored-by: Courtney Wilson <77312589+cmwilson21@users.noreply.github.com>
Co-authored-by: Courtney Wilson <77312589+cmwilson21@users.noreply.github.com>
@sinsukehlab
Copy link
Contributor Author

@cmwilson21 Thanks for adding the edits. I have accepted them.

Copy link
Contributor

@cmwilson21 cmwilson21 left a comment

Choose a reason for hiding this comment

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

LGTM! Thanks for the updates! 🎉

@sinsukehlab
Copy link
Contributor Author

@cmwilson21 @hectorsector gentle reminder

Copy link

@hectorsector hectorsector left a comment

Choose a reason for hiding this comment

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

Thanks for your patience @sinsukehlab!

@hectorsector hectorsector merged commit e3a587e into skills:main May 23, 2023
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.

3 participants