Skip to content

Commit

Permalink
Fix jepsen tests
Browse files Browse the repository at this point in the history
  • Loading branch information
usernamedt committed Nov 21, 2023
1 parent 75a6212 commit 1723096
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions docker/base/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,9 @@ RUN echo "deb http://apt.postgresql.org/pub/repos/apt jammy-pgdg main" > /etc/ap
COPY ./ /var/lib/dist
COPY tests/generate_certs.sh /usr/local/bin/generate_certs.sh
RUN chmod 755 /usr/local/bin/generate_certs.sh
# This is required for jepsen tests. Since jsch does not support rsa-sha2, we have to use the insecure ssh-rsa.
# https://stackoverflow.com/questions/72743823/public-key-authentication-fails-with-jsch-but-work-with-openssh-with-the-same-ke
RUN echo 'HostKeyAlgorithms +ssh-rsa\nPubkeyAcceptedKeyTypes +ssh-rsa' >> /etc/ssh/sshd_config
RUN mkdir /root/.ssh && \
chmod 700 /root/.ssh && \
cp /var/lib/dist/test_ssh_key.pub /root/.ssh/authorized_keys && \
Expand Down

0 comments on commit 1723096

Please sign in to comment.