-
Notifications
You must be signed in to change notification settings - Fork 2
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Build service in the docker image #1125
Conversation
All the deploy we have pass that migration point so this test is useless. Pointing to our version in the past increase the compilation time for the tests by 30s. This also create problem with cargo chef that is not able to handle a self dependency on an older version.
web-api/Dockerfile
Outdated
amd64) ORT_ARCH="x64" ;;\ | ||
arm64) ORT_ARCH="aarch64" ;;\ | ||
esac; \ | ||
cp -r project/assets/"$ORT_DIR"/linux_"$ORT_ARCH"/lib/* assets/lib |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I had to change project/assets/$ORT_DIR
to project/$ORT_DIR
because $ORT_DIR appears to already contain assets/
.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
When I make the change described in my comment, then just compose-all-build
works 👍🏼
@x3ro done |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🚀
Build the service in the docker image. This allows us to build the service on any machine.
We use cargo-chef to cache the build of the dependencies.
Based on #1124