Skip to content

Commit

Permalink
fixup! fixup! fixup! fixup! fixup! Allow normal user to run GSC images
Browse files Browse the repository at this point in the history
Signed-off-by: Veena Saini <[email protected]>
  • Loading branch information
veenasai2 committed Jun 14, 2022
1 parent c22f7c1 commit fb2cc90
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 5 deletions.
2 changes: 1 addition & 1 deletion gsc.py
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,7 @@ def extract_build_args(args):
def extract_user_from_image_config(config, env):
user = config['User']
if not user:
user = "root"
user = 'root'
env.globals.update({'app_user': user})

def merge_two_dicts(dict1, dict2, path=[]):
Expand Down
4 changes: 0 additions & 4 deletions templates/Dockerfile.common.build.template
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,6 @@ FROM gsc-{{Gramine.Image}} AS gramine
# Combine Gramine image with the original app image
FROM {{app_image}}

# App image "user" is stored, and execution will continue as root to install packages.
# In the signed graminized image, the "user" will be restored.
ENV app_user={{app_user}}

# Temporarily switch to the root user to install packages
USER root

Expand Down

0 comments on commit fb2cc90

Please sign in to comment.