Skip to content
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

Draft
wants to merge 20 commits into
base: main
Choose a base branch
from
Draft

Build images with artifacts outside of docker #998

wants to merge 20 commits into from

Conversation

muzuke
Copy link
Contributor

@muzuke muzuke commented Sep 8, 2024

No description provided.

@muzuke muzuke force-pushed the DO-2720 branch 27 times, most recently from 9565803 to f898a2b Compare September 11, 2024 14:22
COPY ./shell /radixdlt/shell
COPY ./keygen /radixdlt/keygen
# Need .git for tag versions - but this can probably be removed soon
COPY ./.git/* /radixdlt/.git/
Copy link
Contributor

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

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 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
Copy link
Contributor

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.


# Copy in the application artifacts
# The artifacts directory on the host must be populated with the required files.
COPY artifacts/*.jar /opt/radixdlt/lib/
Copy link
Contributor

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.

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.

2 participants