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

Iteration 3 Feedback #92

Closed
andrewbutterfield opened this issue Mar 6, 2017 · 7 comments
Closed

Iteration 3 Feedback #92

andrewbutterfield opened this issue Mar 6, 2017 · 7 comments

Comments

@andrewbutterfield
Copy link

andrewbutterfield commented Mar 6, 2017

Group 5 - Iteration 3 - Feedback

The README is almost un-readable using a text editor.

Please put all install/update instructions inline,
and stop referring off to other websites

All I want to know is how to install your stuff - not have to wade through general instructions about a wide range of install options.

Even when I look at the README on github (hoping it is 0.3's readme)
it is not clear what to do.

What is this "Happy Path" stuff?

Here is a transcript of what happens when I try to follow these instructions

part 1 -----
butrfeld@CS4098:~/CS4098/pathways$ docker-compose up -d
The program 'docker-compose' is currently not installed. You can install it by typing:
sudo apt install docker-compose
end of part 1----------

I ignore that advice and do what you suggested earlier

part 2 -------
butrfeld@CS4098: tilde /CS4098/pathways$ sudo curl -o /usr/local/bin/docker-compose -L https://github.com/docker/compose/releases/download/1.11.2/docker-compose-`uname -s-uname -m`
[sudo] password for butrfeld:
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 600 0 600 0 0 597 0 --:--:-- 0:00:01 --:--:-- 597
100 8066k 100 8066k 0 0 1338k 0 0:00:06 0:00:06 --:--:-- 1696k
butrfeld@CS4098:~/CS4098/pathways$ sudo chmod +x /usr/local/bin/docker-compose
end of part 2--------

So far, so good!

I then try:

part 3 ------
butrfeld@CS4098:~/CS4098/pathways$ docker-compose up -d
ERROR: Couldn't connect to Docker daemon at http+docker://localunixsocket - is it running?

If it's at a non-standard location, specify the URL with the DOCKER_HOST environment variable.
butrfeld@CS4098:~/CS4098/pathways$
end of part 3------

now I'm puzzled

If I follow the "Docker Hub" link I get a page with lists using Greek names - all very classical, but which one of these, if any, is 0.3 ??????

Looking at one suggests I need all three!!!

Then I see "Tags" ! This is getting very complicated.

The README should state clearly exactly what needs to be loaded from here.
How about some command-line stuff or a script that collects precisely the right stuff?

Your instructions regarding checking out 0.3 don't work - same problem as above.

Building manually.

OK - you need to provide scripts to do the DNS fixup/revert

It fails for me:

butrfeld@CS4098:/CS4098/pathways$ echo "{"dns": ["134.226.251.200", "134.226.251.100"]}" | sudo tee -a /etc/docker/daemon.json
[sudo] password for butrfeld:
{"dns": ["134.226.251.200", "134.226.251.100"]}
butrfeld@CS4098:
/CS4098/pathways$ sudo service docker restart
butrfeld@CS4098:~/CS4098/pathways$ docker build -t tomtoothfairies/asclepius asclepius
Got permission denied while trying to connect to the Docker daemon socket at unix:///var/run/docker.sock: Post http://%2Fvar%2Frun%2Fdocker.sock/v1.26/build?buildargs=%7B%7D&cachefrom=%5B%5D&cgroupparent=&cpuperiod=0&cpuquota=0&cpusetcpus=&cpusetmems=&cpushares=0&dockerfile=Dockerfile&labels=%7B%7D&memory=0&memswap=0&networkmode=default&rm=1&shmsize=0&t=tomtoothfairies%2Fasclepius&ulimits=null: dial unix /var/run/docker.sock: connect: permission denied

I am unable to get this going in any kind of reasonable time - the README needs a complete rewrite to have a clear approach to installing the software..

@houli
Copy link
Member

houli commented Mar 6, 2017

Hi Andrew, all of the issues relating to docker and docker-compsose commands are related to not running with sudo. We stated this at the top of our README file

For Docker installations on Ubuntu sudo is required to run Docker and Docker Compose commands.

@houli
Copy link
Member

houli commented Mar 6, 2017

In terms of the platforms we are supporting (Windows, Mac, Linux) having to use sudo on linux is the exceptional case so we've left it out of the commands in the README and other documentation however we did leave a message before getting into any of the installation instructions for people using linux to run the software

@andrewbutterfield
Copy link
Author

andrewbutterfield commented Mar 6, 2017 via email

@22a
Copy link
Contributor

22a commented Mar 6, 2017

We have been linking to the official docker install instructions instead of hardcoding the commands in the readme as these commands change as docker is updated so it is standard industry practice to link to the most recent steps.

We do have a single command that does all the work, docker-compose up -d, the only prerequisite is that docker (and compose) be setup on your system. We didn't want to provide a script that attempts to install docker and compose every time you run the application as you have stated that the virtual machine does not get reset after each iteration/release so we assumed that docker was correctly installed.

Regardless, I have just ran the following 8 commands on a fresh Ubuntu 16.04.2 x64 virtual machine and it is running correctly on http://138.68.169.108:4000/. You can run the following commands to get the app up and running in your virtual machine:

  1. Install docker
sudo apt-get -y install \
  apt-transport-https \
  ca-certificates \
  curl
curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add -
sudo add-apt-repository \
       "deb [arch=amd64] https://download.docker.com/linux/ubuntu \
       $(lsb_release -cs) \
       stable"
sudo apt-get update
sudo apt-get -y install docker-ce
  1. Install compose
sudo curl -o /usr/local/bin/docker-compose -L https://github.com/docker/compose/releases/download/1.11.2/docker-compose-`uname -s`-`uname -m`
sudo chmod +x /usr/local/bin/docker-compose
  1. Run our application
sudo docker-compose up -d

@22a
Copy link
Contributor

22a commented Mar 6, 2017

@andrewbutterfield Apologies, I made an error in the last command. It needs to be run as sudo, I have edited the comment above but just in case you copy the command from an email please note that the last command should be:

sudo docker-compose up -d

@andrewbutterfield
Copy link
Author

andrewbutterfield commented Mar 6, 2017 via email

@22a 22a added this to In Progress in Pathways 1.0 Mar 6, 2017
@c-brenn c-brenn moved this from In Progress to Testing in Pathways 1.0 Mar 6, 2017
c-brenn added a commit that referenced this issue Mar 6, 2017
* new readme

*docker install script

* updates changelog

* adds sudo to docker commands in features.md

* Ascelpius README markdown

fixes #94 
fixes #92
@c-brenn
Copy link
Contributor

c-brenn commented Mar 6, 2017

@andrewbutterfield We have made the requested changes on the realease 1 branch.

The readme should now be much clearer, and an install script for docker/docker-compose has been added.

See the unreleased section of the changelog for details.

@c-brenn c-brenn closed this as completed Mar 6, 2017
@c-brenn c-brenn moved this from Testing to Done in Pathways 1.0 Mar 6, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Development

No branches or pull requests

4 participants