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

Docker support #249

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

Docker support #249

wants to merge 5 commits into from

Conversation

AmozPay
Copy link

@AmozPay AmozPay commented Oct 13, 2022

No description provided.

@hoh hoh changed the title Amoz pay docker support Docker support Oct 18, 2022
@hoh
Copy link
Member

hoh commented Oct 25, 2022

Can you rebase this branch on the latest master ?

Copy link
Member

@hoh hoh left a comment

Choose a reason for hiding this comment

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

This branch contains many experiments and duplicates.

Can you check what is still needed after the merge of #261 ?

When it makes sense, give the file a more appropriate name than _2.


/usr/sbin/dockerd 2>&1 | tee /log_docker.txt &

log "INIT 0 DONE2"
Copy link
Member

Choose a reason for hiding this comment

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

What about a comment about Dockerd being started ?

-v "$(pwd)/firecracker:/opt/aleph-vm/firecracker:ro" \
--device /dev/kvm \
-p 4020:4020 \
alephim/vm-supervisor-dev $@
Copy link
Member

Choose a reason for hiding this comment

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

Can we merge this in the main script or make it explicit that this is for Docker ?


WORKDIR /opt/aleph-vm

CMD "bash"
Copy link
Member

Choose a reason for hiding this comment

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

What differs from the main Dockerfile ?

@@ -0,0 +1,3 @@
#!/bin/sh
docker image ls
docker run --rm -p 8080:8080 amozpay/hello_node
Copy link
Member

Choose a reason for hiding this comment

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

Rename examples/docker_container ?

@@ -10,5 +10,7 @@ else
DOCKER_COMMAND=docker
fi

echo DOCKER_COMMAND=$DOCKER_COMMAND

Copy link
Member

Choose a reason for hiding this comment

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

Remove this

return Path(settings.FAKE_DATA_VOLUME)
for volume_bind in str(settings.FAKE_DATA_VOLUME).split(","):
if volume.mount == volume_bind.split(":")[1]:
return volume_bind.split(":")[0]
Copy link
Member

Choose a reason for hiding this comment

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

What is this change for ? Does it require a comment and a specific commit ?

@hoh hoh added the wip Work in progress... label Sep 25, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
wip Work in progress...
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants