-
Notifications
You must be signed in to change notification settings - Fork 42
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
Users/swatantra/update packages #49
Open
SwatantraYadav
wants to merge
5
commits into
Hexadite:master
Choose a base branch
from
SwatantraYadav:users/swatantra/update-packages
base: master
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
5 commits
Select commit
Hold shift + click to select a range
902166a
Updated to the latest packages
SwatantraYadav 4e52e24
Dockerfile and client id updated
SwatantraYadav 92b1654
Removed unwanted files
SwatantraYadav 0dbd756
Logging improvements
SwatantraYadav 6af3084
Resolve merge conflict
SwatantraYadav 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 |
---|---|---|
|
@@ -100,3 +100,4 @@ ENV/ | |
# mypy | ||
.mypy_cache/ | ||
.idea/ | ||
/.vs |
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,15 +1,34 @@ | ||
FROM python:3.9-slim | ||
FROM ubuntu:18.04 as build-env | ||
|
||
LABEL name="docker_acs_keyvault_agent" \ | ||
version="2.0.1" \ | ||
description="Build acs_keyvault_agent image" \ | ||
maintainer="[email protected]" \ | ||
repo="https://msazure.visualstudio.com/One/_git/Compute-Runtime-Tux-GenevaContainers" | ||
|
||
RUN useradd -m -u 999 appuser | ||
# Use azure mirror for security reason | ||
RUN sed -i "s://archive\.ubuntu\.com/://azure.archive.ubuntu.com/:" /etc/apt/sources.list | ||
|
||
WORKDIR /app | ||
# Update cache and upgrade base packages | ||
RUN apt-get update && apt-get upgrade -y | ||
|
||
COPY requirements.txt ./ | ||
# Install dependencies | ||
RUN apt-get update && apt-get install -y --no-install-recommends python-pip | ||
RUN apt-get install -y --no-install-recommends git | ||
|
||
RUN python3 -m pip install --no-cache-dir -r requirements.txt | ||
# Clone acs-keyvault-agent github repository | ||
WORKDIR /repo | ||
RUN git clone https://github.com/Hexadite/acs-keyvault-agent.git | ||
# Checkout version | ||
WORKDIR /repo/acs-keyvault-agent | ||
RUN git checkout ca85044b7c4f4d11b43b9d318ddfb1d4016e0792 | ||
|
||
# Build runtime image | ||
FROM python:3.9-slim | ||
|
||
COPY ./app/ ./ | ||
COPY --from=build-env /repo/acs-keyvault-agent . | ||
|
||
USER 999 | ||
# install requirements | ||
RUN pip3 install --no-cache-dir -r requirements.txt | ||
|
||
CMD ["python3", "./main.py"] | ||
ENTRYPOINT [ "python3", "/app/main.py" ] |
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
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,5 +1,5 @@ | ||
azure-keyvault==1.0.0 | ||
msrestazure==0.4.34 | ||
adal==1.2.4 | ||
pyopenssl==18.0.0 | ||
kubernetes==12.0.1 | ||
azure-keyvault==4.1.0 | ||
msrestazure==0.6.4 | ||
adal==1.2.7 | ||
pyopenssl==22.0.0 | ||
kubernetes==23.3.0 | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. since you're updating some major versions after a long time this project wasn't updated, what kind of tests have you done to make sure nothing is broken? |
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.
hi, there is no need to change the whole Dockerfile, if you had an issue with the not running as root, you can just make it optional in the existing Dockerfile this is a one line change