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

Dba 656 #212

Merged
merged 33 commits into from
Mar 11, 2024
Merged

Dba 656 #212

merged 33 commits into from
Mar 11, 2024

Conversation

ranbeersingh1
Copy link
Contributor

No description provided.

bill-buchan
bill-buchan previously approved these changes Mar 11, 2024
Copy link
Contributor

@bill-buchan bill-buchan left a comment

Choose a reason for hiding this comment

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

LGTM

@ranbeersingh1 ranbeersingh1 had a problem deploying to delius-core-dev-preapproved March 11, 2024 10:20 — with GitHub Actions Failure
@ranbeersingh1 ranbeersingh1 temporarily deployed to delius-core-dev-preapproved March 11, 2024 10:23 — with GitHub Actions Inactive
@@ -135,7 +135,8 @@ jobs:
environment: ${{needs.build_rman_target_name.outputs.TargetEnvironment}}
runs-on: ubuntu-latest
container:
image: ghcr.io/ministryofjustice/hmpps-delius-operational-automation:0.1
image: ghcr.io/ministryofjustice/hmpps-delius-operational-automation:0.40.0
options: --user root
Copy link
Contributor

Choose a reason for hiding this comment

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

What's the reason for running this job as root? The default ansible user should have all required permissions. If it doesn't we should fix it in the image

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Left over from testing, removed.

@@ -21,7 +21,8 @@ LABEL org.opencontainers.image.authors="HMPPS Probation Webops Team (probation-w
org.opencontainers.image.source="https://github.com/ministryofjustice/hmpps-delius-operational-automation"

RUN apk update --no-cache \
&& apk upgrade --no-cache
&& apk upgrade --no-cache \
&& apk add gcc musl-dev python3-dev py-setuptools build-base libffi-dev openssl-dev openssh-client git make jq bash curl
Copy link
Contributor

Choose a reason for hiding this comment

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

Can you tell me why you want to re-add all of those packages? It feels like we are adding bloat to the image.

If something really is needed we could potentially go for a subset of these?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Kept only a small number of packages

USER ansible
# USER ansible

ENTRYPOINT /bin/bash
Copy link
Contributor

Choose a reason for hiding this comment

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

This image is intended to simply be an ansible runner. Because of this, I don't think we should default the entry point to bash. Please correct me if I'm missing something

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Commented out.

@ranbeersingh1 ranbeersingh1 temporarily deployed to delius-core-dev-preapproved March 11, 2024 11:17 — with GitHub Actions Inactive
@ranbeersingh1 ranbeersingh1 temporarily deployed to delius-core-dev-preapproved March 11, 2024 12:19 — with GitHub Actions Inactive
@ranbeersingh1 ranbeersingh1 temporarily deployed to delius-core-dev-preapproved March 11, 2024 12:58 — with GitHub Actions Inactive
@ranbeersingh1 ranbeersingh1 temporarily deployed to delius-core-dev-preapproved March 11, 2024 14:23 — with GitHub Actions Inactive
@ranbeersingh1 ranbeersingh1 merged commit 6fee9de into main Mar 11, 2024
3 checks passed
@ranbeersingh1 ranbeersingh1 deleted the DBA-656 branch March 11, 2024 14:38
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