-
Notifications
You must be signed in to change notification settings - Fork 4
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
Bump mark to 9.11.1 #16
Open
ramirezalfredo
wants to merge
15
commits into
main
Choose a base branch
from
bump-mark-version
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from all commits
Commits
Show all changes
15 commits
Select commit
Hold shift + click to select a range
9eacde1
Update mark to 9.11.1
ramirezalfredo 6f20bdb
Update Dockerfile
ramirezalfredo 7932d8b
Update user in Dockerfile
ramirezalfredo b1ea90c
Add user to Dockerfile
ramirezalfredo 8af74ad
Test no user
ramirezalfredo 717bb61
Downgrade mark version
ramirezalfredo 2e3d22b
Update running container with headless-shell
ramirezalfredo 9db971a
Update Dockerfile
ramirezalfredo ef5427c
Update Dockerfile add dumb-init
ramirezalfredo e07e7ee
Clean-up
ramirezalfredo 174bb41
Update Dockerfile to remove USER
ramirezalfredo 71f4b44
Bump mark version to 9.11.1
ramirezalfredo c9180ed
Merge branch 'main' into bump-mark-version
ramirezalfredo 6f6e5a2
Set headless-shell version/tag
ramirezalfredo c0215a5
Update Python tag
ramirezalfredo File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,26 +1,24 @@ | ||
FROM python:3-slim AS builder | ||
ENV MARK="9.9.0" | ||
|
||
FROM python:3.11-slim AS builder | ||
ENV MARK="9.11.1" | ||
ADD . /app | ||
WORKDIR /app | ||
|
||
RUN pip install --target=/app -r requirements.txt && \ | ||
apt-get update && DEBIAN_FRONTEND=noninteractive apt-get install --no-install-recommends -y tar curl gnupg2 && \ | ||
rm -rf /var/lib/apt/lists/* && \ | ||
curl -LO https://github.com/kovetskiy/mark/releases/download/${MARK}/mark_Linux_x86_64.tar.gz && \ | ||
tar -xvzf mark_Linux_x86_64.tar.gz && chmod +x mark && mv mark /usr/local/bin/mark \ | ||
&& curl -L https://dl-ssl.google.com/linux/linux_signing_key.pub |apt-key add - \ | ||
&& echo "deb http://dl.google.com/linux/chrome/deb/ stable main" >> /etc/apt/sources.list.d/google.list \ | ||
&& apt update && apt-get install -y google-chrome-stable | ||
tar -xvzf mark_Linux_x86_64.tar.gz && chmod +x mark && mv mark /usr/local/bin/mark && rm mark_Linux_x86_64.tar.gz \ | ||
&& apt-get clean && rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/* | ||
|
||
FROM python:3-slim | ||
FROM chromedp/headless-shell:114.0.5735.199 | ||
RUN apt-get update \ | ||
&& apt-get install --no-install-recommends -qq ca-certificates bash sed git dumb-init python3 \ | ||
&& apt-get clean \ | ||
&& rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/* | ||
COPY --from=builder /app /app | ||
COPY --from=builder /usr/local/bin/mark /usr/bin/mark | ||
COPY --from=builder /usr/bin/google-chrome /usr/bin/google-chrome | ||
WORKDIR /app | ||
ENV PYTHONPATH /app | ||
ENV DOC_PREFIX /github/workspace/ | ||
ENV LOGURU_FORMAT "<lvl>{level:7} {message}</lvl>" | ||
USER 1001:1001 | ||
ENTRYPOINT [ "python" ] | ||
CMD ["/app/mark2confluence/main.py"] | ||
ENTRYPOINT ["/usr/bin/dumb-init", "--"] | ||
CMD ["python3", "/app/mark2confluence/main.py"] |
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is a quite big security concern, it will require an explicit exception to run it on our clusters. (Kyverno will prevent it to run at all, afaik)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Agreed. How come we have to perform this change now? Did it work before with the unprivileged user?
The doc seems to go in the direction of that change though: https://docs.github.com/en/actions/creating-actions/dockerfile-support-for-github-actions#user
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
no not really. I had to add this to my action to get it to work which is awful