Skip to content
This repository has been archived by the owner on Aug 2, 2022. It is now read-only.

Docker Improvements #5452

Closed
wants to merge 21 commits into from
Closed

Docker Improvements #5452

wants to merge 21 commits into from

Conversation

NorseGaud
Copy link
Contributor

@NorseGaud NorseGaud commented Aug 28, 2018

Various Docker improvements:

  • Better Readme, in rational order
  • New docker-compose.yml with container-name
  • New docker-compose-testnet.yml to replace -latest.yml, with container-names and volume naming changes
  • Dockerfile improvements with $user so forks work
  • User home for data-volume

@NorseGaud NorseGaud changed the base branch from master to release/1.2.x August 28, 2018 01:49
@NorseGaud NorseGaud closed this Aug 28, 2018
@NorseGaud NorseGaud reopened this Aug 28, 2018
@heifner heifner requested a review from ericiles August 29, 2018 13:48
@heifner heifner changed the base branch from release/1.2.x to develop August 29, 2018 13:49
services:
nodeosd_test:
container_name: nodeosd_test
image: eosio/eos:v1.1.0
Copy link
Contributor

Choose a reason for hiding this comment

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

It is probably best to either use the latest tag or actually specify the latest version (v1.2.3 as of right now). This would also apply to the keosd_test container as well.

If the latest tag is used, the documentation should direct the user to use docker-compose pull to get the latest version of the image before running docker-compose up

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Yep, understood. Curious though, could we backport the older 1.1.x branch with v1.1.0? A lot of testnet docs say you need to start with 1.1.0, then upgrade, so I'm just looking to make it as easy as possible for folks to get up and running with as little changes as possible.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Or, actually, how about image: eosio/eos:$EOS_TESTNET_VERSION and then telling the user to set an ENV? That would put the responsibility on the user and not on the eos devs to rememeber to update the value in the file. Life would be much easier :)

Copy link
Contributor

@ericiles ericiles Aug 29, 2018

Choose a reason for hiding this comment

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

I would feel comfortable using an environmental variable for the testnet docker-compose file. It might also be a good idea to create a .env file with the default value of EOS_TESTNET_VERSION being set to latest. This would allow a testnet to be spun up without having to define any environmental variables, while still allowing the tag to be overidden by the environmental variable if it is present.

Copy link
Contributor

Choose a reason for hiding this comment

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

@NorseGaud the Jungle testnet has special requirements for v1.1.0 because of an issue they ran into. The mainnet does not have that issue.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Thanks guys, I'll get the changes into the PR. I believe using .env file is a perfect solution to allow users greater control in an easy way.

@NorseGaud
Copy link
Contributor Author

Ok, the final version is committed. I've changed the entire design so that users can just create a copy of the "latest" directory to run multiple eos instances. I've tested "latest" and "dev" setup.sh scripts to confirm they're working.

Let me know what you think.

@heifner
Copy link
Contributor

heifner commented Sep 5, 2018

@ericiles @NorseGaud where are we with this? Looks like there are conflicts now.

@NorseGaud
Copy link
Contributor Author

@heifner Just waiting on Eric I believe.

@jacktang
Copy link

Hello, can I issue EOS token in eos-dev docker now?

@NorseGaud
Copy link
Contributor Author

NorseGaud commented Sep 28, 2018

@jacktang, yep, modify the .env under the dev directory to EOS

@NorseGaud NorseGaud closed this Oct 20, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

7 participants