VictoriaSexmer1
Mission Specialist
Mission Specialist
  • 378 Views

Containerfile example

Jump to solution

I need to change a containerfile just to create a new-app. This containerfile is based in a Http Apache server. I know there is a example here (https://rol.redhat.com/rol/app/courses/do288-4.10/pages/ch02s04)

But i need more examples. Can anybody help me, please?

1 Solution

Accepted Solutions
Travis
Moderator
Moderator
  • 356 Views

@VictoriaSexmer1 -

I don't have a ton of containerfile examples for the DO288 course, but I do have some I can provide to you. You might need to rename the Dockerfile to Containerfile, but keep in mind those are the same things. Hope the examples attached here as Github links help. Keep in mind, containers on OCP are different as the SCCs can cause issues with containers and root users, so you need to make adjustments for containers that run rootless on OCP.

https://github.com/tmichett/AnsibleContainer

https://github.com/tmichett/OCP_Demos/tree/main/DO188_Containerfile

https://github.com/tmichett/OCP_Demos/tree/main

https://github.com/tmichett/DO188_Demo/tree/main/Demos/CH4 (These are probably the best examples).

Travis Michette, RHCA XIII
https://rhtapps.redhat.com/verify?certId=111-134-086
SENIOR TECHNICAL INSTRUCTOR / CERTIFIED INSTRUCTOR AND EXAMINER
Red Hat Certification + Training

View solution in original post

1 Reply
Travis
Moderator
Moderator
  • 357 Views

@VictoriaSexmer1 -

I don't have a ton of containerfile examples for the DO288 course, but I do have some I can provide to you. You might need to rename the Dockerfile to Containerfile, but keep in mind those are the same things. Hope the examples attached here as Github links help. Keep in mind, containers on OCP are different as the SCCs can cause issues with containers and root users, so you need to make adjustments for containers that run rootless on OCP.

https://github.com/tmichett/AnsibleContainer

https://github.com/tmichett/OCP_Demos/tree/main/DO188_Containerfile

https://github.com/tmichett/OCP_Demos/tree/main

https://github.com/tmichett/DO188_Demo/tree/main/Demos/CH4 (These are probably the best examples).

Travis Michette, RHCA XIII
https://rhtapps.redhat.com/verify?certId=111-134-086
SENIOR TECHNICAL INSTRUCTOR / CERTIFIED INSTRUCTOR AND EXAMINER
Red Hat Certification + Training
Join the discussion
You must log in to join this conversation.