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

Update Dockerfile #2

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

Update Dockerfile #2

wants to merge 1 commit into from

Conversation

xavierxmorris
Copy link
Owner

No description provided.

@github-learning-lab
Copy link

Nice work, you committed a Dockerfile. You'll notice at the end of the Dockerfile, we refer to an entrypoint script.

ENTRYPOINT ["/entrypoint.sh"]

The entrypoint.sh script will be run in Docker, and it will define what the action is really going to be doing.

Step 2: Add the action's script

An entrypoint script must exist in our repository so that Docker has something to execute.

⌨️ Activity: Add an entrypoint script and commit it to your branch

  1. As a part of this branch and pull request, create a file in the ./action-a/ directory titled entrypoint.sh. You can do so with this quicklink
  2. Add the following content to the entrypoint.sh file:
    #!/bin/sh -l
    
    sh -c "echo Hello world my name is $MY_NAME"
  3. Stage and commit the changes
  4. Push the changes to GitHub

I'll respond when I detect a new commit on this branch.

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.

1 participant