-
Notifications
You must be signed in to change notification settings - Fork 18
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 images with artifacts outside of docker #998
Conversation
9565803
to
f898a2b
Compare
docker/dockerfiles/java.dockerfile
Outdated
COPY ./shell /radixdlt/shell | ||
COPY ./keygen /radixdlt/keygen | ||
# Need .git for tag versions - but this can probably be removed soon | ||
COPY ./.git/* /radixdlt/.git/ |
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.
This should be able to be removed now
docker/dockerfiles/rust.dockerfile
Outdated
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.
Can we expand this to e.g. rust-build-base.dockerfile
or something?
RADIXDLT_ENGINE_STATE_API_PORT=3336 \ | ||
RADIXDLT_ENGINE_STATE_API_BIND_ADDRESS=0.0.0.0 \ | ||
RADIXDLT_NETWORK_ID=240 \ | ||
RADIXDLT_NODE_KEY_CREATE_IF_MISSING=false |
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.
Everything up to here could be an app base image.
docker/dockerfiles/app.dockerfile
Outdated
|
||
# Copy in the application artifacts | ||
# The artifacts directory on the host must be populated with the required files. | ||
COPY artifacts/*.jar /opt/radixdlt/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.
This doesn't allow building locally (as in docker build
and ./run-docker.sh
no longer work locally).
And it goes against the "build on same arch as run" mentality.
We historically had issues with arch and libc incompatibility doing it this way.
Closing in favor of #1004 |
No description provided.