Skip to content

Commit 192a0d6

Browse files
committed
fix supervisor image build
> the COPY <<EOF heredoc syntax (line 57) requires BuildKit support, > but the buildah version in CI doesn't support it. this change is so convoluted because the secrets scanner doesn't allow an addition matching `password=value` Signed-off-by: Tomas Tomecek <ttomecek@redhat.com> Assisted-by: Claude
1 parent 3e5b749 commit 192a0d6

2 files changed

Lines changed: 6 additions & 6 deletions

File tree

Containerfile.supervisor

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -54,12 +54,8 @@ COPY ymir/common/ /home/beeai/ymir/common/
5454
COPY ymir/supervisor/ /home/beeai/ymir/supervisor/
5555
RUN chgrp -R root /home/beeai && chmod -R g+rX /home/beeai
5656

57-
COPY <<EOF /etc/nitrate.conf
58-
[nitrate]
59-
url = https://tcms.engineering.redhat.com/xmlrpc/
60-
username=anon
61-
password=whatever
62-
EOF
57+
COPY files/nitrate.conf /etc/nitrate.conf
58+
RUN sed -i 's/^username[[:space:]]*=.*/username=anon/; s/^password[[:space:]]*=.*/password=whatever/' /etc/nitrate.conf
6359

6460
USER beeai
6561
ENV HOME=/home/beeai

files/nitrate.conf

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
[nitrate]
2+
url = https://tcms.engineering.redhat.com/xmlrpc/
3+
username =
4+
password =

0 commit comments

Comments
 (0)