Skip to content

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 ?

@AmozPay AmozPay force-pushed the AmozPay-docker-support branch from d4985c9 to b916cbe Compare October 28, 2022 09:43
@AmozPay AmozPay force-pushed the AmozPay-docker-support branch from ba89f63 to a7227e9 Compare December 2, 2022 15:08
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" No newline at end of file
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 No newline at end of file
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 ?

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.

3 participants