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

How to follow docker instructions ? #179

Closed
stuaxo opened this issue Sep 22, 2016 · 6 comments
Closed

How to follow docker instructions ? #179

stuaxo opened this issue Sep 22, 2016 · 6 comments

Comments

@stuaxo
Copy link

stuaxo commented Sep 22, 2016

Instructions are below ... there is no docker.conf.py file, or if there is I don't know where, should I be in some directory, I just checked everything out from git and this is confusing:

Install docker and docker-compose and then run:

cp docker.conf.py{.example,}
docker-compose build
docker-compose run localshop syncdb
docker-compose run localshop createsuperuser
docker-compose up

You should be able to see localshop running in http://docker-host:8000.
@glenfant
Copy link

Was about to file this issue when I found this ticket. Since there's no answer, @stuaxo did you find a workaround ?

@stuaxo
Copy link
Author

stuaxo commented Feb 24, 2017

Nope, sorry :-/

@glenfant
Copy link

@stuaxo OK, here's something that worked for me, but I'm a docker stuffs noob and perhaps I missed something:

docker-compose build
docker-compose start db
# Following command should prompt you for a superuser login/password too
docker-compose run web localshop syncdb
docker-compose run -u root web localshop collectstatic
# Run the beast
docker-compose up

# Play with it
firefox http://localhost:8000

@mvantellingen any though about this ?

@stuaxo
Copy link
Author

stuaxo commented Feb 27, 2017

I tried this, the first command worked, but I got stuck on the 2nd command:

$ docker-compose start db
Starting db ... done
ERROR: No containers to start

@glenfant
Copy link

You must cd into the directory that contains "docker-compose.yml" first
After "docker-compose build" (may take a couple of minutes) you should see the 3 images with "docker images" command:

"localshop_db", "localshop_web" and "localshop_worker"

But again, I'm a Docker noob and @mvantellingen should provide a better answer.

@stuaxo
Copy link
Author

stuaxo commented Feb 28, 2017

I'm in the directory.

docker images shows localshop_web and localshop_worker, but no localshop_db.

@stuaxo stuaxo closed this as completed Feb 5, 2019
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

No branches or pull requests

2 participants