add some of server (diesel, eventlet, gevent, paste, twisted, waitress, wsgiref) in some os
This commit is contained in:
Executable
+27
@@ -0,0 +1,27 @@
|
||||
FROM fedora:latest
|
||||
|
||||
#LABEL your_label
|
||||
|
||||
RUN dnf install -y python python-pip python-setuptools unzip wget python-eventlet --nogpgcheck && \
|
||||
pip install --upgrade pip && \
|
||||
pip install virtualenv
|
||||
|
||||
RUN groupadd -r web2py && \
|
||||
useradd -m -r -g web2py web2py
|
||||
|
||||
USER web2py
|
||||
|
||||
RUN virtualenv /home/web2py && \
|
||||
rm -rf /home/web2py/web2py && \
|
||||
cd /home/web2py/ && \
|
||||
rm -f web2py_src.zip && \
|
||||
wget -c http://web2py.com/examples/static/web2py_src.zip && \
|
||||
unzip -o web2py_src.zip && \
|
||||
rm -rf /home/web2py/web2py/applications/examples && \
|
||||
chmod 755 -R /home/web2py/web2py
|
||||
|
||||
WORKDIR /home/web2py/web2py
|
||||
|
||||
EXPOSE 8000
|
||||
|
||||
CMD . /home/web2py/bin/activate && /usr/bin/python /home/web2py/web2py/anyserver.py -s eventlet -i 0.0.0.0 -p 8000
|
||||
Executable
+41
@@ -0,0 +1,41 @@
|
||||
# Start Service
|
||||
systemctl start docker
|
||||
|
||||
# Docker
|
||||
cd /Docker/Fedora/web2py-eventlet
|
||||
docker build -t your_username/fedora-web2py-eventlet .
|
||||
docker run -d -v applications:/home/web2py/web2py/applications -p 8000:8000 --name fedora-web2py-eventlet your_username/fedora-web2py-eventlet
|
||||
docker ps
|
||||
docker volume ls
|
||||
docker volume inspect applications
|
||||
|
||||
# Docker Compose
|
||||
pip install docker-compose
|
||||
cd /Docker/Fedora/web2py-eventlet
|
||||
docker-compose up -d
|
||||
docker-compose ps
|
||||
docker volume ls
|
||||
docker volume inspect root_applications
|
||||
|
||||
# Docker Cloud
|
||||
cd /Docker/Fedora/web2py-eventlet
|
||||
docker login -u your_username
|
||||
docker build -t your_username/fedora-web2py-eventlet .
|
||||
docker push your_username/fedora-web2py-eventlet
|
||||
|
||||
# Shell (Copy the content of the file into this scaffolding shell and replace the variable text $ with \$ )
|
||||
cat << EOF > docker-compose.yml
|
||||
|
||||
EOF
|
||||
cat docker-compose.yml
|
||||
|
||||
cat << EOF > Dockerfile
|
||||
|
||||
EOF
|
||||
cat Dockerfile
|
||||
|
||||
docker build -t your_username/fedora-web2py-eventlet .
|
||||
docker run -d -v applications:/home/web2py/web2py/applications -p 8000:8000 --name fedora-web2py-eventlet your_username/fedora-web2py-eventlet
|
||||
|
||||
docker-compose up -d
|
||||
docker-compose ps
|
||||
+12
@@ -0,0 +1,12 @@
|
||||
version: '3.1'
|
||||
|
||||
services:
|
||||
web2py-eventlet:
|
||||
build: .
|
||||
ports:
|
||||
- "8000:8000"
|
||||
volumes:
|
||||
- applications:/home/web2py/web2py/applications
|
||||
|
||||
volumes:
|
||||
applications:
|
||||
Executable
+27
@@ -0,0 +1,27 @@
|
||||
FROM fedora:latest
|
||||
|
||||
#LABEL your_label
|
||||
|
||||
RUN dnf install -y python python-pip python-setuptools unzip wget python-gevent --nogpgcheck && \
|
||||
pip install --upgrade pip && \
|
||||
pip install virtualenv
|
||||
|
||||
RUN groupadd -r web2py && \
|
||||
useradd -m -r -g web2py web2py
|
||||
|
||||
USER web2py
|
||||
|
||||
RUN virtualenv /home/web2py && \
|
||||
rm -rf /home/web2py/web2py && \
|
||||
cd /home/web2py/ && \
|
||||
rm -f web2py_src.zip && \
|
||||
wget -c http://web2py.com/examples/static/web2py_src.zip && \
|
||||
unzip -o web2py_src.zip && \
|
||||
rm -rf /home/web2py/web2py/applications/examples && \
|
||||
chmod 755 -R /home/web2py/web2py
|
||||
|
||||
WORKDIR /home/web2py/web2py
|
||||
|
||||
EXPOSE 8000
|
||||
|
||||
CMD . /home/web2py/bin/activate && /usr/bin/python /home/web2py/web2py/anyserver.py -s gevent -i 0.0.0.0 -p 8000
|
||||
Executable
+41
@@ -0,0 +1,41 @@
|
||||
# Start Service
|
||||
systemctl start docker
|
||||
|
||||
# Docker
|
||||
cd /Docker/Fedora/web2py-gevent
|
||||
docker build -t your_username/fedora-web2py-gevent .
|
||||
docker run -d -v applications:/home/web2py/web2py/applications -p 8000:8000 --name fedora-web2py-gevent your_username/fedora-web2py-gevent
|
||||
docker ps
|
||||
docker volume ls
|
||||
docker volume inspect applications
|
||||
|
||||
# Docker Compose
|
||||
pip install docker-compose
|
||||
cd /Docker/Fedora/web2py-gevent
|
||||
docker-compose up -d
|
||||
docker-compose ps
|
||||
docker volume ls
|
||||
docker volume inspect root_applications
|
||||
|
||||
# Docker Cloud
|
||||
cd /Docker/Fedora/web2py-gevent
|
||||
docker login -u your_username
|
||||
docker build -t your_username/fedora-web2py-gevent .
|
||||
docker push your_username/fedora-web2py-gevent
|
||||
|
||||
# Shell (Copy the content of the file into this scaffolding shell and replace the variable text $ with \$ )
|
||||
cat << EOF > docker-compose.yml
|
||||
|
||||
EOF
|
||||
cat docker-compose.yml
|
||||
|
||||
cat << EOF > Dockerfile
|
||||
|
||||
EOF
|
||||
cat Dockerfile
|
||||
|
||||
docker build -t your_username/fedora-web2py-gevent .
|
||||
docker run -d -v applications:/home/web2py/web2py/applications -p 8000:8000 --name fedora-web2py-gevent your_username/fedora-web2py-gevent
|
||||
|
||||
docker-compose up -d
|
||||
docker-compose ps
|
||||
+12
@@ -0,0 +1,12 @@
|
||||
version: '3.1'
|
||||
|
||||
services:
|
||||
web2py-gevent:
|
||||
build: .
|
||||
ports:
|
||||
- "8000:8000"
|
||||
volumes:
|
||||
- applications:/home/web2py/web2py/applications
|
||||
|
||||
volumes:
|
||||
applications:
|
||||
@@ -1,5 +1,7 @@
|
||||
FROM fedora:latest
|
||||
|
||||
#LABEL your_label
|
||||
|
||||
RUN dnf install -y python python-pip python-setuptools unzip wget python-gunicorn --nogpgcheck && \
|
||||
pip install --upgrade pip && \
|
||||
pip install virtualenv
|
||||
|
||||
@@ -3,8 +3,8 @@
|
||||
|
||||
# Docker
|
||||
cd /Docker/Fedora/web2py-gunicorn
|
||||
docker build -t username/fedora-web2py-gunicorn .
|
||||
docker run -d -v applications:/home/web2py/web2py/applications -p 8000:8000 --name fedora-web2py-gunicorn username/fedora-web2py-gunicorn
|
||||
docker build -t your_username/fedora-web2py-gunicorn .
|
||||
docker run -d -v applications:/home/web2py/web2py/applications -p 8000:8000 --name fedora-web2py-gunicorn your_username/fedora-web2py-gunicorn
|
||||
docker ps
|
||||
docker volume ls
|
||||
docker volume inspect applications
|
||||
@@ -19,9 +19,9 @@
|
||||
|
||||
# Docker Cloud
|
||||
cd /Docker/Fedora/web2py-gunicorn
|
||||
docker login -u username
|
||||
docker build -t username/fedora-web2py-gunicorn .
|
||||
docker push username/fedora-web2py-gunicorn
|
||||
docker login -u your_username
|
||||
docker build -t your_username/fedora-web2py-gunicorn .
|
||||
docker push your_username/fedora-web2py-gunicorn
|
||||
|
||||
# Shell (Copy the content of the file into this scaffolding shell and replace the variable text $ with \$ )
|
||||
cat << EOF > docker-compose.yml
|
||||
@@ -34,8 +34,8 @@ cat << EOF > Dockerfile
|
||||
EOF
|
||||
cat Dockerfile
|
||||
|
||||
docker build -t username/fedora-web2py-gunicorn .
|
||||
docker run -d -v applications:/home/web2py/web2py/applications -p 8000:8000 --name fedora-web2py-gunicorn username/fedora-web2py-gunicorn
|
||||
docker build -t your_username/fedora-web2py-gunicorn .
|
||||
docker run -d -v applications:/home/web2py/web2py/applications -p 8000:8000 --name fedora-web2py-gunicorn your_username/fedora-web2py-gunicorn
|
||||
|
||||
docker-compose up -d
|
||||
docker-compose ps
|
||||
|
||||
Executable
+27
@@ -0,0 +1,27 @@
|
||||
FROM fedora:latest
|
||||
|
||||
#LABEL your_label
|
||||
|
||||
RUN dnf install -y python python-pip python-setuptools unzip wget python-paste --nogpgcheck && \
|
||||
pip install --upgrade pip && \
|
||||
pip install virtualenv
|
||||
|
||||
RUN groupadd -r web2py && \
|
||||
useradd -m -r -g web2py web2py
|
||||
|
||||
USER web2py
|
||||
|
||||
RUN virtualenv /home/web2py && \
|
||||
rm -rf /home/web2py/web2py && \
|
||||
cd /home/web2py/ && \
|
||||
rm -f web2py_src.zip && \
|
||||
wget -c http://web2py.com/examples/static/web2py_src.zip && \
|
||||
unzip -o web2py_src.zip && \
|
||||
rm -rf /home/web2py/web2py/applications/examples && \
|
||||
chmod 755 -R /home/web2py/web2py
|
||||
|
||||
WORKDIR /home/web2py/web2py
|
||||
|
||||
EXPOSE 8000
|
||||
|
||||
CMD . /home/web2py/bin/activate && /usr/bin/python /home/web2py/web2py/anyserver.py -s paste -i 0.0.0.0 -p 8000
|
||||
Executable
+41
@@ -0,0 +1,41 @@
|
||||
# Start Service
|
||||
systemctl start docker
|
||||
|
||||
# Docker
|
||||
cd /Docker/Fedora/web2py-paste
|
||||
docker build -t your_username/fedora-web2py-paste .
|
||||
docker run -d -v applications:/home/web2py/web2py/applications -p 8000:8000 --name fedora-web2py-paste your_username/fedora-web2py-paste
|
||||
docker ps
|
||||
docker volume ls
|
||||
docker volume inspect applications
|
||||
|
||||
# Docker Compose
|
||||
pip install docker-compose
|
||||
cd /Docker/Fedora/web2py-paste
|
||||
docker-compose up -d
|
||||
docker-compose ps
|
||||
docker volume ls
|
||||
docker volume inspect root_applications
|
||||
|
||||
# Docker Cloud
|
||||
cd /Docker/Fedora/web2py-paste
|
||||
docker login -u your_username
|
||||
docker build -t your_username/fedora-web2py-paste .
|
||||
docker push your_username/fedora-web2py-paste
|
||||
|
||||
# Shell (Copy the content of the file into this scaffolding shell and replace the variable text $ with \$ )
|
||||
cat << EOF > docker-compose.yml
|
||||
|
||||
EOF
|
||||
cat docker-compose.yml
|
||||
|
||||
cat << EOF > Dockerfile
|
||||
|
||||
EOF
|
||||
cat Dockerfile
|
||||
|
||||
docker build -t your_username/fedora-web2py-paste .
|
||||
docker run -d -v applications:/home/web2py/web2py/applications -p 8000:8000 --name fedora-web2py-paste your_username/fedora-web2py-paste
|
||||
|
||||
docker-compose up -d
|
||||
docker-compose ps
|
||||
+12
@@ -0,0 +1,12 @@
|
||||
version: '3.1'
|
||||
|
||||
services:
|
||||
web2py-paste:
|
||||
build: .
|
||||
ports:
|
||||
- "8000:8000"
|
||||
volumes:
|
||||
- applications:/home/web2py/web2py/applications
|
||||
|
||||
volumes:
|
||||
applications:
|
||||
@@ -1,5 +1,7 @@
|
||||
FROM fedora:latest
|
||||
|
||||
#LABEL your_label
|
||||
|
||||
RUN dnf install -y python python-pip python-setuptools unzip wget --nogpgcheck && \
|
||||
pip install --upgrade pip && \
|
||||
pip install virtualenv
|
||||
|
||||
@@ -3,8 +3,8 @@
|
||||
|
||||
# Docker
|
||||
cd /Docker/Fedora/web2py-rocket
|
||||
docker build -t username/fedora-web2py-rocket .
|
||||
docker run -d -v applications:/home/web2py/web2py/applications -p 8000:8000 --name fedora-web2py-rocket username/fedora-web2py-rocket
|
||||
docker build -t your_username/fedora-web2py-rocket .
|
||||
docker run -d -v applications:/home/web2py/web2py/applications -p 8000:8000 --name fedora-web2py-rocket your_username/fedora-web2py-rocket
|
||||
docker ps
|
||||
docker volume ls
|
||||
docker volume inspect applications
|
||||
@@ -19,9 +19,9 @@
|
||||
|
||||
# Docker Cloud
|
||||
cd /Docker/Fedora/web2py-rocket
|
||||
docker login -u username
|
||||
docker build -t username/fedora-web2py-rocket .
|
||||
docker push username/fedora-web2py-rocket
|
||||
docker login -u your_username
|
||||
docker build -t your_username/fedora-web2py-rocket .
|
||||
docker push your_username/fedora-web2py-rocket
|
||||
|
||||
# Shell (Copy the content of the file into this scaffolding shell and replace the variable text $ with \$ )
|
||||
cat << EOF > docker-compose.yml
|
||||
@@ -34,8 +34,8 @@ cat << EOF > Dockerfile
|
||||
EOF
|
||||
cat Dockerfile
|
||||
|
||||
docker build -t username/fedora-web2py-rocket .
|
||||
docker run -d -v applications:/home/web2py/web2py/applications -p 8000:8000 --name fedora-web2py-rocket username/fedora-web2py-rocket
|
||||
docker build -t your_username/fedora-web2py-rocket .
|
||||
docker run -d -v applications:/home/web2py/web2py/applications -p 8000:8000 --name fedora-web2py-rocket your_username/fedora-web2py-rocket
|
||||
|
||||
docker-compose up -d
|
||||
docker-compose ps
|
||||
|
||||
@@ -1,5 +1,7 @@
|
||||
FROM fedora:latest
|
||||
|
||||
#LABEL your_label
|
||||
|
||||
RUN dnf install -y python python-pip python-setuptools unzip wget python-tornado --nogpgcheck && \
|
||||
pip install --upgrade pip && \
|
||||
pip install virtualenv
|
||||
|
||||
@@ -3,8 +3,8 @@
|
||||
|
||||
# Docker
|
||||
cd /Docker/Fedora/web2py-tornado
|
||||
docker build -t username/fedora-web2py-tornado .
|
||||
docker run -d -v applications:/home/web2py/web2py/applications -p 8000:8000 --name fedora-web2py-tornado username/fedora-web2py-tornado
|
||||
docker build -t your_username/fedora-web2py-tornado .
|
||||
docker run -d -v applications:/home/web2py/web2py/applications -p 8000:8000 --name fedora-web2py-tornado your_username/fedora-web2py-tornado
|
||||
docker ps
|
||||
docker volume ls
|
||||
docker volume inspect applications
|
||||
@@ -19,9 +19,9 @@
|
||||
|
||||
# Docker Cloud
|
||||
cd /Docker/Fedora/web2py-tornado
|
||||
docker login -u username
|
||||
docker build -t username/fedora-web2py-tornado .
|
||||
docker push username/fedora-web2py-tornado
|
||||
docker login -u your_username
|
||||
docker build -t your_username/fedora-web2py-tornado .
|
||||
docker push your_username/fedora-web2py-tornado
|
||||
|
||||
# Shell (Copy the content of the file into this scaffolding shell and replace the variable text $ with \$ )
|
||||
cat << EOF > docker-compose.yml
|
||||
@@ -34,8 +34,8 @@ cat << EOF > Dockerfile
|
||||
EOF
|
||||
cat Dockerfile
|
||||
|
||||
docker build -t username/fedora-web2py-tornado .
|
||||
docker run -d -v applications:/home/web2py/web2py/applications -p 8000:8000 --name fedora-web2py-tornado username/fedora-web2py-tornado
|
||||
docker build -t your_username/fedora-web2py-tornado .
|
||||
docker run -d -v applications:/home/web2py/web2py/applications -p 8000:8000 --name fedora-web2py-tornado your_username/fedora-web2py-tornado
|
||||
|
||||
docker-compose up -d
|
||||
docker-compose ps
|
||||
|
||||
Executable
+27
@@ -0,0 +1,27 @@
|
||||
FROM fedora:latest
|
||||
|
||||
#LABEL your_label
|
||||
|
||||
RUN dnf install -y python python-pip python-setuptools unzip wget python-twisted --nogpgcheck && \
|
||||
pip install --upgrade pip && \
|
||||
pip install virtualenv
|
||||
|
||||
RUN groupadd -r web2py && \
|
||||
useradd -m -r -g web2py web2py
|
||||
|
||||
USER web2py
|
||||
|
||||
RUN virtualenv /home/web2py && \
|
||||
rm -rf /home/web2py/web2py && \
|
||||
cd /home/web2py/ && \
|
||||
rm -f web2py_src.zip && \
|
||||
wget -c http://web2py.com/examples/static/web2py_src.zip && \
|
||||
unzip -o web2py_src.zip && \
|
||||
rm -rf /home/web2py/web2py/applications/examples && \
|
||||
chmod 755 -R /home/web2py/web2py
|
||||
|
||||
WORKDIR /home/web2py/web2py
|
||||
|
||||
EXPOSE 8000
|
||||
|
||||
CMD . /home/web2py/bin/activate && /usr/bin/python /home/web2py/web2py/anyserver.py -s twisted -i 0.0.0.0 -p 8000
|
||||
Executable
+41
@@ -0,0 +1,41 @@
|
||||
# Start Service
|
||||
systemctl start docker
|
||||
|
||||
# Docker
|
||||
cd /Docker/Fedora/web2py-twisted
|
||||
docker build -t your_username/fedora-web2py-twisted .
|
||||
docker run -d -v applications:/home/web2py/web2py/applications -p 8000:8000 --name fedora-web2py-twisted your_username/fedora-web2py-twisted
|
||||
docker ps
|
||||
docker volume ls
|
||||
docker volume inspect applications
|
||||
|
||||
# Docker Compose
|
||||
pip install docker-compose
|
||||
cd /Docker/Fedora/web2py-twisted
|
||||
docker-compose up -d
|
||||
docker-compose ps
|
||||
docker volume ls
|
||||
docker volume inspect root_applications
|
||||
|
||||
# Docker Cloud
|
||||
cd /Docker/Fedora/web2py-twisted
|
||||
docker login -u your_username
|
||||
docker build -t your_username/fedora-web2py-twisted .
|
||||
docker push your_username/fedora-web2py-twisted
|
||||
|
||||
# Shell (Copy the content of the file into this scaffolding shell and replace the variable text $ with \$ )
|
||||
cat << EOF > docker-compose.yml
|
||||
|
||||
EOF
|
||||
cat docker-compose.yml
|
||||
|
||||
cat << EOF > Dockerfile
|
||||
|
||||
EOF
|
||||
cat Dockerfile
|
||||
|
||||
docker build -t your_username/fedora-web2py-twisted .
|
||||
docker run -d -v applications:/home/web2py/web2py/applications -p 8000:8000 --name fedora-web2py-twisted your_username/fedora-web2py-twisted
|
||||
|
||||
docker-compose up -d
|
||||
docker-compose ps
|
||||
+12
@@ -0,0 +1,12 @@
|
||||
version: '3.1'
|
||||
|
||||
services:
|
||||
web2py-twisted:
|
||||
build: .
|
||||
ports:
|
||||
- "8000:8000"
|
||||
volumes:
|
||||
- applications:/home/web2py/web2py/applications
|
||||
|
||||
volumes:
|
||||
applications:
|
||||
Executable
+27
@@ -0,0 +1,27 @@
|
||||
FROM fedora:latest
|
||||
|
||||
#LABEL your_label
|
||||
|
||||
RUN dnf install -y python python-pip python-setuptools unzip wget python-waitress --nogpgcheck && \
|
||||
pip install --upgrade pip && \
|
||||
pip install virtualenv
|
||||
|
||||
RUN groupadd -r web2py && \
|
||||
useradd -m -r -g web2py web2py
|
||||
|
||||
USER web2py
|
||||
|
||||
RUN virtualenv /home/web2py && \
|
||||
rm -rf /home/web2py/web2py && \
|
||||
cd /home/web2py/ && \
|
||||
rm -f web2py_src.zip && \
|
||||
wget -c http://web2py.com/examples/static/web2py_src.zip && \
|
||||
unzip -o web2py_src.zip && \
|
||||
rm -rf /home/web2py/web2py/applications/examples && \
|
||||
chmod 755 -R /home/web2py/web2py
|
||||
|
||||
WORKDIR /home/web2py/web2py
|
||||
|
||||
EXPOSE 8000
|
||||
|
||||
CMD . /home/web2py/bin/activate && /usr/bin/python /home/web2py/web2py/anyserver.py -s waitress -i 0.0.0.0 -p 8000
|
||||
Executable
+41
@@ -0,0 +1,41 @@
|
||||
# Start Service
|
||||
systemctl start docker
|
||||
|
||||
# Docker
|
||||
cd /Docker/Fedora/web2py-waitress
|
||||
docker build -t your_username/fedora-web2py-waitress .
|
||||
docker run -d -v applications:/home/web2py/web2py/applications -p 8000:8000 --name fedora-web2py-waitress your_username/fedora-web2py-waitress
|
||||
docker ps
|
||||
docker volume ls
|
||||
docker volume inspect applications
|
||||
|
||||
# Docker Compose
|
||||
pip install docker-compose
|
||||
cd /Docker/Fedora/web2py-waitress
|
||||
docker-compose up -d
|
||||
docker-compose ps
|
||||
docker volume ls
|
||||
docker volume inspect root_applications
|
||||
|
||||
# Docker Cloud
|
||||
cd /Docker/Fedora/web2py-waitress
|
||||
docker login -u your_username
|
||||
docker build -t your_username/fedora-web2py-waitress .
|
||||
docker push your_username/fedora-web2py-waitress
|
||||
|
||||
# Shell (Copy the content of the file into this scaffolding shell and replace the variable text $ with \$ )
|
||||
cat << EOF > docker-compose.yml
|
||||
|
||||
EOF
|
||||
cat docker-compose.yml
|
||||
|
||||
cat << EOF > Dockerfile
|
||||
|
||||
EOF
|
||||
cat Dockerfile
|
||||
|
||||
docker build -t your_username/fedora-web2py-waitress .
|
||||
docker run -d -v applications:/home/web2py/web2py/applications -p 8000:8000 --name fedora-web2py-waitress your_username/fedora-web2py-waitress
|
||||
|
||||
docker-compose up -d
|
||||
docker-compose ps
|
||||
+12
@@ -0,0 +1,12 @@
|
||||
version: '3.1'
|
||||
|
||||
services:
|
||||
web2py-waitress:
|
||||
build: .
|
||||
ports:
|
||||
- "8000:8000"
|
||||
volumes:
|
||||
- applications:/home/web2py/web2py/applications
|
||||
|
||||
volumes:
|
||||
applications:
|
||||
Executable
+27
@@ -0,0 +1,27 @@
|
||||
FROM fedora:latest
|
||||
|
||||
#LABEL your_label
|
||||
|
||||
RUN dnf install -y python python-pip python-setuptools unzip wget --nogpgcheck && \
|
||||
pip install --upgrade pip && \
|
||||
pip install virtualenv wsgiref
|
||||
|
||||
RUN groupadd -r web2py && \
|
||||
useradd -m -r -g web2py web2py
|
||||
|
||||
USER web2py
|
||||
|
||||
RUN virtualenv /home/web2py && \
|
||||
rm -rf /home/web2py/web2py && \
|
||||
cd /home/web2py/ && \
|
||||
rm -f web2py_src.zip && \
|
||||
wget -c http://web2py.com/examples/static/web2py_src.zip && \
|
||||
unzip -o web2py_src.zip && \
|
||||
rm -rf /home/web2py/web2py/applications/examples && \
|
||||
chmod 755 -R /home/web2py/web2py
|
||||
|
||||
WORKDIR /home/web2py/web2py
|
||||
|
||||
EXPOSE 8000
|
||||
|
||||
CMD . /home/web2py/bin/activate && /usr/bin/python /home/web2py/web2py/anyserver.py -s wsgiref -i 0.0.0.0 -p 8000
|
||||
Executable
+41
@@ -0,0 +1,41 @@
|
||||
# Start Service
|
||||
systemctl start docker
|
||||
|
||||
# Docker
|
||||
cd /Docker/Fedora/web2py-wsgiref
|
||||
docker build -t your_username/fedora-web2py-wsgiref .
|
||||
docker run -d -v applications:/home/web2py/web2py/applications -p 8000:8000 --name fedora-web2py-wsgiref your_username/fedora-web2py-wsgiref
|
||||
docker ps
|
||||
docker volume ls
|
||||
docker volume inspect applications
|
||||
|
||||
# Docker Compose
|
||||
pip install docker-compose
|
||||
cd /Docker/Fedora/web2py-wsgiref
|
||||
docker-compose up -d
|
||||
docker-compose ps
|
||||
docker volume ls
|
||||
docker volume inspect root_applications
|
||||
|
||||
# Docker Cloud
|
||||
cd /Docker/Fedora/web2py-wsgiref
|
||||
docker login -u your_username
|
||||
docker build -t your_username/fedora-web2py-wsgiref .
|
||||
docker push your_username/fedora-web2py-wsgiref
|
||||
|
||||
# Shell (Copy the content of the file into this scaffolding shell and replace the variable text $ with \$ )
|
||||
cat << EOF > docker-compose.yml
|
||||
|
||||
EOF
|
||||
cat docker-compose.yml
|
||||
|
||||
cat << EOF > Dockerfile
|
||||
|
||||
EOF
|
||||
cat Dockerfile
|
||||
|
||||
docker build -t your_username/fedora-web2py-wsgiref .
|
||||
docker run -d -v applications:/home/web2py/web2py/applications -p 8000:8000 --name fedora-web2py-wsgiref your_username/fedora-web2py-wsgiref
|
||||
|
||||
docker-compose up -d
|
||||
docker-compose ps
|
||||
+12
@@ -0,0 +1,12 @@
|
||||
version: '3.1'
|
||||
|
||||
services:
|
||||
web2py-wsgiref:
|
||||
build: .
|
||||
ports:
|
||||
- "8000:8000"
|
||||
volumes:
|
||||
- applications:/home/web2py/web2py/applications
|
||||
|
||||
volumes:
|
||||
applications:
|
||||
Reference in New Issue
Block a user