Skip to content

Commit

Permalink
make container run in OCP (#4)
Browse files Browse the repository at this point in the history
Signed-off-by: NilashishC <nilashishchakraborty8@gmail.com>
  • Loading branch information
NilashishC authored Apr 12, 2024
1 parent ff46a27 commit 545bf82
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/publish_image.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,5 +23,5 @@ jobs:

- name: Build the container image for ansible-creator-service and publish it
run: |
docker build -f $GITHUB_WORKSPACE/Containerfile -t ghcr.io/nilashishc/ansible-creator-service:latest .
docker build -f Containerfile -t ghcr.io/nilashishc/ansible-creator-service:latest .
docker push t ghcr.io/nilashishc/ansible-creator-service:latest
5 changes: 5 additions & 0 deletions Containerfile
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,12 @@ python3-pip \
EXPOSE 5000

WORKDIR /app
# OpenShift will by default run containers as a non root user where group is root.
# Make sure things are writeable by the root group.
RUN chmod -R 775 /app && chmod -R g+rwx /app && chgrp -R root /app

COPY . /app
RUN python3 -m pip install -r requirements.txt


CMD ["flask", "--app=app", "run", "--debug", "--host=0.0.0.0"]

0 comments on commit 545bf82

Please sign in to comment.