Skip to content

Commit

Permalink
making sure that the NRU id is 999
Browse files Browse the repository at this point in the history
  • Loading branch information
PhillipsOwen committed Apr 5, 2024
1 parent 3808d7e commit 3ed21f2
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 3 deletions.
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ ARG APP_VERSION=$(APP_VERSION)
ENV APP_VERSION=$APP_VERSION

# create a new non-root user and switch to it
RUN useradd --create-home -u 1000 nru
RUN useradd --create-home -u 999 nru
USER nru

# Create the directory for the code and cd to it
Expand Down
2 changes: 0 additions & 2 deletions src/staging/staging.py
Original file line number Diff line number Diff line change
Expand Up @@ -282,8 +282,6 @@ def final_staging(self, run_id: str, run_dir: str, staging_type: StagingType) ->
# compress the directory into the package directory
shutil.make_archive(archive_file, 'zip', run_dir)

self.logger.info('glob dir: %s/**/', run_dir)

# remove all directories from the run (leaving the archive file)
[shutil.rmtree(data_dir, ignore_errors=True) for data_dir in glob.glob(f'{run_dir}/**/')]
else:
Expand Down

0 comments on commit 3ed21f2

Please sign in to comment.