Skip to content

Conversation

@tlater-famedly
Copy link
Contributor

@tlater-famedly tlater-famedly commented Jan 27, 2025

This is needed for the new test workflow. Everything this adds is inert unless you run the new workflow, so this shouldn't break anything (but it will increase image sizes).

sirewix
sirewix previously approved these changes Feb 6, 2025
@tlater-famedly tlater-famedly force-pushed the tlater/entrypoint branch 4 times, most recently from 6859a9d to 18a273b Compare February 11, 2025 07:25
@tlater-famedly tlater-famedly force-pushed the tlater/entrypoint branch 2 times, most recently from 61e21c1 to 92c9e7c Compare February 28, 2025 08:55
echo "Preparing Rust build environment"


if [ -n "${FRC_SSH_KEY}" ]; then
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can you clarify a bit why is this needed? Can we just mount ssh socket -v $SSH_AUTH_SOCK:/ssh.sock -e SSH_AUTH_SOCK=/ssh.sock?

Copy link
Contributor Author

@tlater-famedly tlater-famedly Apr 2, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This was taken on from our existing scripts. I don't think GitHub sets up an ssh socket with a configured ssh key natively. The container is started before we start any jobs, so we can't set up a socket in the workflow before this is launched; if you know some way to do that with git workflows shout though!

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@tlater-famedly tlater-famedly force-pushed the tlater/entrypoint branch 2 times, most recently from 7fef141 to a8f79a8 Compare April 2, 2025 08:27
@tlater-famedly tlater-famedly force-pushed the tlater/entrypoint branch 2 times, most recently from 8917d0b to f634a57 Compare May 7, 2025 08:06
@tlater-famedly tlater-famedly marked this pull request as ready for review July 2, 2025 08:51
(
ssh-keyscan -H gitlab.com
ssh-keyscan -H github.com
) >> "$SSH_HOME/.ssh/known_hosts"
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

can we move these to build stage? (into a RUN statement)

color = 'always'
[net]
git-fetch-with-cli = true
EOF
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

can we just COPY or ADD this to the container? does it need to happen at runtime?

echo "CARGO_HOME=${CARGO_HOME}"
echo "SSH_AUTH_SOCK=${SSH_AUTH_SOCK}"
) >> "$GITHUB_ENV"
fi
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

how does this work? this script is run insede the container but GITHUB_ENV is host variable in ci

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants