Skip to content

Commit

Permalink
Revert "(docker) restore user provided known_hosts"
Browse files Browse the repository at this point in the history
This reverts commit ca1b7b3.
  • Loading branch information
MatthijsBurgh committed Jun 13, 2024
1 parent e48005a commit 4019737
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions dockerfiles/tue-env.Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,6 @@ WORKDIR /home/"$USER"
RUN mkdir -p -m 0700 ~/.ssh
ADD ./known_hosts ./.ssh/known_hosts
RUN sudo chown $USER_ID:$USER_ID ~/.ssh/known_hosts && sudo chmod 644 ~/.ssh/known_hosts
RUN cp ~/.ssh/known_hosts ~/.ssh/known_hosts.bak

# Setup Git HTTPS token authentication
RUN { [[ -n "$OAUTH2_TOKEN" ]] && git config --global credential.helper '!f() { printf "%s\n" "username=oauth2" "password=$OAUTH2_TOKEN"; };f'; } || exit 0
Expand Down Expand Up @@ -114,9 +113,6 @@ RUN --mount=type=ssh,uid=$USER_ID --mount=type=bind,source=installer/bootstrap.b
# Remove apt cache
sudo rm -rf /var/lib/apt/lists/*

# Restore known_hosts to one provided by the user
RUN mv -f ~/.ssh/known_hosts.bak ~/.ssh/known_hosts

# Remove Git HTTPS token authentication
RUN { [[ -n "$OAUTH2_TOKEN" ]] && git config --global --unset credential.helper; } || exit 0

Expand Down

0 comments on commit 4019737

Please sign in to comment.