main
Last change
on this file was
42bd667,
checked in by David Fuertes <dfuertes@…>, 4 years ago
|
Historial Limpio
|
-
Property mode set to
100755
|
File size:
1.2 KB
|
Rev | Line | |
---|
[42bd667] | 1 | # Start Service |
---|
| 2 | systemctl start docker |
---|
| 3 | |
---|
| 4 | # Docker |
---|
| 5 | cd /Docker/OpenSuse/web2py-waitress |
---|
| 6 | docker build -t your_username/opensuse-web2py-waitress . |
---|
| 7 | docker run -d -v applications:/home/web2py/web2py/applications -p 8000:8000 --name opensuse-web2py-waitress your_username/opensuse-web2py-waitress |
---|
| 8 | docker ps |
---|
| 9 | docker volume ls |
---|
| 10 | docker volume inspect applications |
---|
| 11 | |
---|
| 12 | # Docker Compose |
---|
| 13 | pip install docker-compose |
---|
| 14 | cd /Docker/OpenSuse/web2py-waitress |
---|
| 15 | docker-compose up -d |
---|
| 16 | docker-compose ps |
---|
| 17 | docker volume ls |
---|
| 18 | docker volume inspect root_applications |
---|
| 19 | |
---|
| 20 | # Docker Cloud |
---|
| 21 | cd /Docker/OpenSuse/web2py-waitress |
---|
| 22 | docker login -u your_username |
---|
| 23 | docker build -t your_username/opensuse-web2py-waitress . |
---|
| 24 | docker push your_username/opensuse-web2py-waitress |
---|
| 25 | |
---|
| 26 | # Shell (Copy the content of the file into this scaffolding shell and replace the variable text $ with \$ ) |
---|
| 27 | cat << EOF > docker-compose.yml |
---|
| 28 | |
---|
| 29 | EOF |
---|
| 30 | cat docker-compose.yml |
---|
| 31 | |
---|
| 32 | cat << EOF > Dockerfile |
---|
| 33 | |
---|
| 34 | EOF |
---|
| 35 | cat Dockerfile |
---|
| 36 | |
---|
| 37 | docker build -t your_username/opensuse-web2py-waitress . |
---|
| 38 | docker run -d -v applications:/home/web2py/web2py/applications -p 8000:8000 --name opensuse-web2py-waitress your_username/opensuse-web2py-waitress |
---|
| 39 | |
---|
| 40 | docker-compose up -d |
---|
| 41 | docker-compose ps |
---|
Note: See
TracBrowser
for help on using the repository browser.