Skip to content

Conversation

@ahpaleus
Copy link
Contributor

@ahpaleus ahpaleus commented Jan 6, 2023

This Pull Request addresses this issue: #38. In short, it's a Dockerfile with all needed deps.

To build and run main medusa Docker image:

$ docker build -t medusa . --target=medusa && docker run --entrypoint /bin/bash --rm -it medusa

To run unit tests in medusa and copy log to the current directory:

docker build -t medusa . --target unit_tests_log --output type=local,dest=.

You can differentiate dependencies versions using the --build-arg argument:

docker build -t medusa . --target=medusa --build-arg GO_VERSION=1.18 && docker run --entrypoint /bin/sh --rm -it medusa

You have control over the following deps versions for more convenient development/quick unit tests:

ARG NODE_VERSION=18.13.0
ARG SOLC_VERSION=0.8.17
ARG GO_VERSION=1.19.4
ARG HARDHAT_VERSION=latest
ARG TRUFFLE_VERSION=latest

To run a docker image with ./medusa built, run:

docker build -t medusa . --target=medusa_build && docker run --entrypoint /bin/bash --rm -it medusa

I would like to know your feedback and what's the best location to write up a readme for medusa's docker.

@ahpaleus ahpaleus linked an issue Jan 11, 2023 that may be closed by this pull request
@anishnaik
Copy link
Collaborator

Closed in preference of #522

@anishnaik anishnaik closed this Jan 14, 2025
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.

Provide Docker environment for application + tests

3 participants