New to docker etc. help with running custom start command.
Hello, the real issue I'm dealing with is importing a private github repo to my golang project. And from some googling I've found that fine-grained tokens + setting a git global variable with credentials before anything runs is the key. However I can't seem to find how to run these commands before the app starts. I'd like to keep the build process identical and the start process identical. I'd just like to add the authorization to my app so the private packages are available in the executable.
10 Replies
Project ID:
N/A
N/A
this would likely be achieved easily with a dockerfile based build
Anywhere u can point me to? I'd honestly just like to copy paste the default dockerfile and add my lines.
thats not quite how railway works, but there would be plenty of great golang dockerfile resources online!
Isn't there a security aspect to this though?
Adding an access token to a dockerfile seems a bit naive from a security aspect?
oh no you would never do that, you would use environment variables
Ahh my bad lol, thanks xD
Are u aware if symlinking the github repo inside my project is a possible solution? Instead of importing it idiomatically.
I just want the code to be available in two projects and both projects are private repos
as well as the one I'm trying to share
I have no clue, but it can't hurt to try
I'll check, thanks for the input Brody.