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

update dockerfile #2663

Closed
wants to merge 1 commit into from
Closed

update dockerfile #2663

wants to merge 1 commit into from

Conversation

m1iktea
Copy link
Collaborator

@m1iktea m1iktea commented Apr 15, 2024

Context

Modify the Dockerfile to adapt for deploying tee-worker and parachain using Docker.

Labels

Please apply following PR-related labels when appropriate:

  • C1-noteworthy

How (Optional)

  • The Docker build for tee-worker is based on the worker's base image. For a new build, only the binary needs to be updated.

  • The base image for parachain has been changed to ubuntu:22.04.

Testing Evidences

Now it's running on tee-staging.

Copy link
Collaborator

Choose a reason for hiding this comment

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

Hmm this will remove the possibilty of caching in CI I asusme? (As the updated content in local-builder won't be synced into litentry/litentry-worker:base

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

In my understanding, litentry/litentry-worker:base only provides the runtime environment for the worker and adapts the entrypoint script. When building a new image, it's only necessary to update the binary files within it.

Copy link
Collaborator

Choose a reason for hiding this comment

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

It's more than that => for CI builds (dev-build) it's responsible to update the cache to accelerate the build too.

In production (release) build I agree we should do a clean build without caching

@@ -21,7 +21,7 @@ RUN cargo build --locked --profile $PROFILE $BUILD_ARGS
# ==========================
# stage 2: packaging
# ==========================
FROM ubuntu:20.04
FROM ubuntu:22.04
Copy link
Collaborator

Choose a reason for hiding this comment

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

We can update this only when our production parachain nodes are all deployed with docker.

@Kailai-Wang
Copy link
Collaborator

I'll close it for now - it's superseded by #2733

@Kailai-Wang Kailai-Wang deleted the docker-update branch May 16, 2024 15:19
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.

None yet

2 participants