@@ -1,3 +1,7 @@
|
|||||||
|
## 2.17.1
|
||||||
|
- pydal 18.08
|
||||||
|
- many small bug fixes
|
||||||
|
|
||||||
## 2.16.1
|
## 2.16.1
|
||||||
- pydal 17.11
|
- pydal 17.11
|
||||||
- bootstrap 4
|
- bootstrap 4
|
||||||
|
|||||||
@@ -44,7 +44,7 @@ rmfiles:
|
|||||||
rm -rf applications/examples/uploads/*
|
rm -rf applications/examples/uploads/*
|
||||||
src:
|
src:
|
||||||
### Use semantic versioning
|
### Use semantic versioning
|
||||||
echo 'Version 2.16.1-stable+timestamp.'`date +%Y.%m.%d.%H.%M.%S` > VERSION
|
echo 'Version 2.17.1-stable+timestamp.'`date +%Y.%m.%d.%H.%M.%S` > VERSION
|
||||||
### rm -f all junk files
|
### rm -f all junk files
|
||||||
#make clean
|
#make clean
|
||||||
# make rmfiles
|
# make rmfiles
|
||||||
|
|||||||
@@ -1 +1 @@
|
|||||||
Version 2.16.1-stable+timestamp.2018.05.24.15.00.45
|
Version 2.17.1-stable+timestamp.2018.08.05.17.57.00
|
||||||
|
|||||||
Executable
+27
@@ -0,0 +1,27 @@
|
|||||||
|
FROM alpine:latest
|
||||||
|
|
||||||
|
#LABEL your_label
|
||||||
|
|
||||||
|
RUN apk add --no-cache python py-pip py-setuptools unzip wget py-gevent && \
|
||||||
|
pip install --upgrade pip && \
|
||||||
|
pip install virtualenv
|
||||||
|
|
||||||
|
RUN addgroup -S web2py && \
|
||||||
|
adduser -D -S -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/Alpine/web2py-gevent
|
||||||
|
docker build -t your_username/alpine-web2py-gevent .
|
||||||
|
docker run -d -v applications:/home/web2py/web2py/applications -p 8000:8000 --name alpine-web2py-gevent your_username/alpine-web2py-gevent
|
||||||
|
docker ps
|
||||||
|
docker volume ls
|
||||||
|
docker volume inspect applications
|
||||||
|
|
||||||
|
# Docker Compose
|
||||||
|
pip install docker-compose
|
||||||
|
cd /Docker/Alpine/web2py-gevent
|
||||||
|
docker-compose up -d
|
||||||
|
docker-compose ps
|
||||||
|
docker volume ls
|
||||||
|
docker volume inspect root_applications
|
||||||
|
|
||||||
|
# Docker Cloud
|
||||||
|
cd /Docker/Alpine/web2py-gevent
|
||||||
|
docker login -u your_username
|
||||||
|
docker build -t your_username/alpine-web2py-gevent .
|
||||||
|
docker push your_username/alpine-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/alpine-web2py-gevent .
|
||||||
|
docker run -d -v applications:/home/web2py/web2py/applications -p 8000:8000 --name alpine-web2py-gevent your_username/alpine-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 alpine:latest
|
FROM alpine:latest
|
||||||
|
|
||||||
|
#LABEL your_label
|
||||||
|
|
||||||
RUN apk add --no-cache python py-pip py-setuptools unzip wget py-gunicorn && \
|
RUN apk add --no-cache python py-pip py-setuptools unzip wget py-gunicorn && \
|
||||||
pip install --upgrade pip && \
|
pip install --upgrade pip && \
|
||||||
pip install virtualenv
|
pip install virtualenv
|
||||||
|
|||||||
@@ -3,8 +3,8 @@
|
|||||||
|
|
||||||
# Docker
|
# Docker
|
||||||
cd /Docker/Alpine/web2py-gunicorn
|
cd /Docker/Alpine/web2py-gunicorn
|
||||||
docker build -t username/alpine-web2py-gunicorn .
|
docker build -t your_username/alpine-web2py-gunicorn .
|
||||||
docker run -d -v applications:/home/web2py/web2py/applications -p 8000:8000 --name alpine-web2py-gunicorn username/alpine-web2py-gunicorn
|
docker run -d -v applications:/home/web2py/web2py/applications -p 8000:8000 --name alpine-web2py-gunicorn your_username/alpine-web2py-gunicorn
|
||||||
docker ps
|
docker ps
|
||||||
docker volume ls
|
docker volume ls
|
||||||
docker volume inspect applications
|
docker volume inspect applications
|
||||||
@@ -19,9 +19,9 @@
|
|||||||
|
|
||||||
# Docker Cloud
|
# Docker Cloud
|
||||||
cd /Docker/Alpine/web2py-gunicorn
|
cd /Docker/Alpine/web2py-gunicorn
|
||||||
docker login -u username
|
docker login -u your_username
|
||||||
docker build -t username/alpine-web2py-gunicorn .
|
docker build -t your_username/alpine-web2py-gunicorn .
|
||||||
docker push username/alpine-web2py-gunicorn
|
docker push your_username/alpine-web2py-gunicorn
|
||||||
|
|
||||||
# Shell (Copy the content of the file into this scaffolding shell and replace the variable text $ with \$ )
|
# Shell (Copy the content of the file into this scaffolding shell and replace the variable text $ with \$ )
|
||||||
cat << EOF > docker-compose.yml
|
cat << EOF > docker-compose.yml
|
||||||
@@ -34,8 +34,8 @@ cat << EOF > Dockerfile
|
|||||||
EOF
|
EOF
|
||||||
cat Dockerfile
|
cat Dockerfile
|
||||||
|
|
||||||
docker build -t username/alpine-web2py-gunicorn .
|
docker build -t your_username/alpine-web2py-gunicorn .
|
||||||
docker run -d -v applications:/home/web2py/web2py/applications -p 8000:8000 --name alpine-web2py-gunicorn username/alpine-web2py-gunicorn
|
docker run -d -v applications:/home/web2py/web2py/applications -p 8000:8000 --name alpine-web2py-gunicorn your_username/alpine-web2py-gunicorn
|
||||||
|
|
||||||
docker-compose up -d
|
docker-compose up -d
|
||||||
docker-compose ps
|
docker-compose ps
|
||||||
|
|||||||
Executable
+27
@@ -0,0 +1,27 @@
|
|||||||
|
FROM alpine:latest
|
||||||
|
|
||||||
|
#LABEL your_label
|
||||||
|
|
||||||
|
RUN apk add --no-cache python py-pip py-setuptools unzip wget && \
|
||||||
|
pip install --upgrade pip && \
|
||||||
|
pip install virtualenv paste
|
||||||
|
|
||||||
|
RUN addgroup -S web2py && \
|
||||||
|
adduser -D -S -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/Alpine/web2py-paste
|
||||||
|
docker build -t your_username/alpine-web2py-paste .
|
||||||
|
docker run -d -v applications:/home/web2py/web2py/applications -p 8000:8000 --name alpine-web2py-paste your_username/alpine-web2py-paste
|
||||||
|
docker ps
|
||||||
|
docker volume ls
|
||||||
|
docker volume inspect applications
|
||||||
|
|
||||||
|
# Docker Compose
|
||||||
|
pip install docker-compose
|
||||||
|
cd /Docker/Alpine/web2py-paste
|
||||||
|
docker-compose up -d
|
||||||
|
docker-compose ps
|
||||||
|
docker volume ls
|
||||||
|
docker volume inspect root_applications
|
||||||
|
|
||||||
|
# Docker Cloud
|
||||||
|
cd /Docker/Alpine/web2py-paste
|
||||||
|
docker login -u your_username
|
||||||
|
docker build -t your_username/alpine-web2py-paste .
|
||||||
|
docker push your_username/alpine-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/alpine-web2py-paste .
|
||||||
|
docker run -d -v applications:/home/web2py/web2py/applications -p 8000:8000 --name alpine-web2py-paste your_username/alpine-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 alpine:latest
|
FROM alpine:latest
|
||||||
|
|
||||||
|
#LABEL your_label
|
||||||
|
|
||||||
RUN apk add --no-cache python py-pip py-setuptools unzip wget openssl && \
|
RUN apk add --no-cache python py-pip py-setuptools unzip wget openssl && \
|
||||||
pip install --upgrade pip && \
|
pip install --upgrade pip && \
|
||||||
pip install virtualenv
|
pip install virtualenv
|
||||||
@@ -9,7 +11,7 @@ RUN wget -c http://web2py.com/examples/static/web2py_src.zip && \
|
|||||||
rm -rf /web2py/applications/examples && \
|
rm -rf /web2py/applications/examples && \
|
||||||
cd /web2py && \
|
cd /web2py && \
|
||||||
openssl genrsa 1024 > web2py.key && chmod 400 web2py.key && \
|
openssl genrsa 1024 > web2py.key && chmod 400 web2py.key && \
|
||||||
openssl req -new -x509 -nodes -sha1 -days 1780 -subj '/C=c/ST=st/L=l/O=o/OU=ou/CN=cn.com' -key web2py.key > web2py.crt && \
|
openssl req -new -x509 -nodes -sha1 -days 1780 -subj '/C=ID/ST=Jakarta/L=Jakarta/O=stifix/OU=IT/CN=stifix.com' -key web2py.key > web2py.crt && \
|
||||||
openssl x509 -noout -fingerprint -text < web2py.crt > web2py.info && \
|
openssl x509 -noout -fingerprint -text < web2py.crt > web2py.info && \
|
||||||
chmod 755 -R /web2py
|
chmod 755 -R /web2py
|
||||||
|
|
||||||
|
|||||||
@@ -3,8 +3,8 @@
|
|||||||
|
|
||||||
# Docker
|
# Docker
|
||||||
cd /Docker/Alpine/web2py-rocket-ssl
|
cd /Docker/Alpine/web2py-rocket-ssl
|
||||||
docker build -t username/alpine-web2py-rocket-ssl .
|
docker build -t your_username/alpine-web2py-rocket-ssl .
|
||||||
docker run -d -v applications:/web2py/applications -p 443:443 --name alpine-web2py-rocket-ssl username/alpine-web2py-rocket-ssl
|
docker run -d -v applications:/web2py/applications -p 443:443 --name alpine-web2py-rocket-ssl your_username/alpine-web2py-rocket-ssl
|
||||||
docker ps
|
docker ps
|
||||||
docker volume ls
|
docker volume ls
|
||||||
docker volume inspect applications
|
docker volume inspect applications
|
||||||
@@ -19,9 +19,9 @@
|
|||||||
|
|
||||||
# Docker Cloud
|
# Docker Cloud
|
||||||
cd /Docker/Alpine/web2py-rocket-ssl
|
cd /Docker/Alpine/web2py-rocket-ssl
|
||||||
docker login -u username
|
docker login -u your_username
|
||||||
docker build -t username/alpine-web2py-rocket-ssl .
|
docker build -t your_username/alpine-web2py-rocket-ssl .
|
||||||
docker push username/alpine-web2py-rocket-ssl
|
docker push your_username/alpine-web2py-rocket-ssl
|
||||||
|
|
||||||
# Shell (Copy the content of the file into this scaffolding shell and replace the variable text $ with \$ )
|
# Shell (Copy the content of the file into this scaffolding shell and replace the variable text $ with \$ )
|
||||||
cat << EOF > docker-compose.yml
|
cat << EOF > docker-compose.yml
|
||||||
@@ -34,8 +34,8 @@ cat << EOF > Dockerfile
|
|||||||
EOF
|
EOF
|
||||||
cat Dockerfile
|
cat Dockerfile
|
||||||
|
|
||||||
docker build -t username/alpine-web2py-rocket-ssl .
|
docker build -t your_username/alpine-web2py-rocket-ssl .
|
||||||
docker run -d -v applications:/web2py/applications -p 443:443 --name alpine-web2py-rocket-ssl username/
|
docker run -d -v applications:/web2py/applications -p 443:443 --name alpine-web2py-rocket-ssl your_username/
|
||||||
|
|
||||||
docker-compose up -d
|
docker-compose up -d
|
||||||
docker-compose ps
|
docker-compose ps
|
||||||
|
|||||||
@@ -1,5 +1,7 @@
|
|||||||
FROM alpine:latest
|
FROM alpine:latest
|
||||||
|
|
||||||
|
#LABEL your_label
|
||||||
|
|
||||||
RUN apk add --no-cache python py-pip py-setuptools unzip wget && \
|
RUN apk add --no-cache python py-pip py-setuptools unzip wget && \
|
||||||
pip install --upgrade pip && \
|
pip install --upgrade pip && \
|
||||||
pip install virtualenv
|
pip install virtualenv
|
||||||
|
|||||||
@@ -3,8 +3,8 @@
|
|||||||
|
|
||||||
# Docker
|
# Docker
|
||||||
cd /Docker/Alpine/web2py-rocket
|
cd /Docker/Alpine/web2py-rocket
|
||||||
docker build -t username/alpine-web2py-rocket .
|
docker build -t your_username/alpine-web2py-rocket .
|
||||||
docker run -d -v applications:/home/web2py/web2py/applications -p 8000:8000 --name alpine-web2py-rocket username/alpine-web2py-rocket
|
docker run -d -v applications:/home/web2py/web2py/applications -p 8000:8000 --name alpine-web2py-rocket your_username/alpine-web2py-rocket
|
||||||
docker ps
|
docker ps
|
||||||
docker volume ls
|
docker volume ls
|
||||||
docker volume inspect applications
|
docker volume inspect applications
|
||||||
@@ -19,9 +19,9 @@
|
|||||||
|
|
||||||
# Docker Cloud
|
# Docker Cloud
|
||||||
cd /Docker/Alpine/web2py-rocket
|
cd /Docker/Alpine/web2py-rocket
|
||||||
docker login -u username
|
docker login -u your_username
|
||||||
docker build -t username/alpine-web2py-rocket .
|
docker build -t your_username/alpine-web2py-rocket .
|
||||||
docker push username/alpine-web2py-rocket
|
docker push your_username/alpine-web2py-rocket
|
||||||
|
|
||||||
# Shell (Copy the content of the file into this scaffolding shell and replace the variable text $ with \$ )
|
# Shell (Copy the content of the file into this scaffolding shell and replace the variable text $ with \$ )
|
||||||
cat << EOF > docker-compose.yml
|
cat << EOF > docker-compose.yml
|
||||||
@@ -34,8 +34,8 @@ cat << EOF > Dockerfile
|
|||||||
EOF
|
EOF
|
||||||
cat Dockerfile
|
cat Dockerfile
|
||||||
|
|
||||||
docker build -t username/alpine-web2py-rocket .
|
docker build -t your_username/alpine-web2py-rocket .
|
||||||
docker run -d -v applications:/home/web2py/web2py/applications -p 8000:8000 --name alpine-web2py-rocket username/
|
docker run -d -v applications:/home/web2py/web2py/applications -p 8000:8000 --name alpine-web2py-rocket your_username/
|
||||||
|
|
||||||
docker-compose up -d
|
docker-compose up -d
|
||||||
docker-compose ps
|
docker-compose ps
|
||||||
|
|||||||
@@ -1,5 +1,7 @@
|
|||||||
FROM alpine:latest
|
FROM alpine:latest
|
||||||
|
|
||||||
|
#LABEL your_label
|
||||||
|
|
||||||
RUN apk add --no-cache python py-pip py-setuptools unzip wget py-tornado && \
|
RUN apk add --no-cache python py-pip py-setuptools unzip wget py-tornado && \
|
||||||
pip install --upgrade pip && \
|
pip install --upgrade pip && \
|
||||||
pip install virtualenv
|
pip install virtualenv
|
||||||
|
|||||||
@@ -3,8 +3,8 @@
|
|||||||
|
|
||||||
# Docker
|
# Docker
|
||||||
cd /Docker/Alpine/web2py-tornado
|
cd /Docker/Alpine/web2py-tornado
|
||||||
docker build -t username/alpine-web2py-tornado .
|
docker build -t your_username/alpine-web2py-tornado .
|
||||||
docker run -d -v applications:/home/web2py/web2py/applications -p 8000:8000 --name alpine-web2py-tornado username/alpine-web2py-tornado
|
docker run -d -v applications:/home/web2py/web2py/applications -p 8000:8000 --name alpine-web2py-tornado your_username/alpine-web2py-tornado
|
||||||
docker ps
|
docker ps
|
||||||
docker volume ls
|
docker volume ls
|
||||||
docker volume inspect applications
|
docker volume inspect applications
|
||||||
@@ -19,9 +19,9 @@
|
|||||||
|
|
||||||
# Docker Cloud
|
# Docker Cloud
|
||||||
cd /Docker/Alpine/web2py-tornado
|
cd /Docker/Alpine/web2py-tornado
|
||||||
docker login -u username
|
docker login -u your_username
|
||||||
docker build -t username/alpine-web2py-tornado .
|
docker build -t your_username/alpine-web2py-tornado .
|
||||||
docker push username/alpine-web2py-tornado
|
docker push your_username/alpine-web2py-tornado
|
||||||
|
|
||||||
# Shell (Copy the content of the file into this scaffolding shell and replace the variable text $ with \$ )
|
# Shell (Copy the content of the file into this scaffolding shell and replace the variable text $ with \$ )
|
||||||
cat << EOF > docker-compose.yml
|
cat << EOF > docker-compose.yml
|
||||||
@@ -34,8 +34,8 @@ cat << EOF > Dockerfile
|
|||||||
EOF
|
EOF
|
||||||
cat Dockerfile
|
cat Dockerfile
|
||||||
|
|
||||||
docker build -t username/alpine-web2py-tornado .
|
docker build -t your_username/alpine-web2py-tornado .
|
||||||
docker run -d -v applications:/home/web2py/web2py/applications -p 8000:8000 --name alpine-web2py-tornado username/
|
docker run -d -v applications:/home/web2py/web2py/applications -p 8000:8000 --name alpine-web2py-tornado your_username/
|
||||||
|
|
||||||
docker-compose up -d
|
docker-compose up -d
|
||||||
docker-compose ps
|
docker-compose ps
|
||||||
|
|||||||
Executable
+27
@@ -0,0 +1,27 @@
|
|||||||
|
FROM alpine:latest
|
||||||
|
|
||||||
|
#LABEL your_label
|
||||||
|
|
||||||
|
RUN apk add --no-cache python py-pip py-setuptools unzip wget py-waitress && \
|
||||||
|
pip install --upgrade pip && \
|
||||||
|
pip install virtualenv
|
||||||
|
|
||||||
|
RUN addgroup -S web2py && \
|
||||||
|
adduser -D -S -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/Alpine/web2py-waitress
|
||||||
|
docker build -t your_username/alpine-web2py-waitress .
|
||||||
|
docker run -d -v applications:/home/web2py/web2py/applications -p 8000:8000 --name alpine-web2py-waitress your_username/alpine-web2py-waitress
|
||||||
|
docker ps
|
||||||
|
docker volume ls
|
||||||
|
docker volume inspect applications
|
||||||
|
|
||||||
|
# Docker Compose
|
||||||
|
pip install docker-compose
|
||||||
|
cd /Docker/Alpine/web2py-waitress
|
||||||
|
docker-compose up -d
|
||||||
|
docker-compose ps
|
||||||
|
docker volume ls
|
||||||
|
docker volume inspect root_applications
|
||||||
|
|
||||||
|
# Docker Cloud
|
||||||
|
cd /Docker/Alpine/web2py-waitress
|
||||||
|
docker login -u your_username
|
||||||
|
docker build -t your_username/alpine-web2py-waitress .
|
||||||
|
docker push your_username/alpine-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/alpine-web2py-waitress .
|
||||||
|
docker run -d -v applications:/home/web2py/web2py/applications -p 8000:8000 --name alpine-web2py-waitress your_username/alpine-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 alpine:latest
|
||||||
|
|
||||||
|
#LABEL your_label
|
||||||
|
|
||||||
|
RUN apk add --no-cache python py-pip py-setuptools unzip wget && \
|
||||||
|
pip install --upgrade pip && \
|
||||||
|
pip install virtualenv wsgiref
|
||||||
|
|
||||||
|
RUN addgroup -S web2py && \
|
||||||
|
adduser -D -S -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/Alpine/web2py-wsgiref
|
||||||
|
docker build -t your_username/alpine-web2py-wsgiref .
|
||||||
|
docker run -d -v applications:/home/web2py/web2py/applications -p 8000:8000 --name alpine-web2py-wsgiref your_username/alpine-web2py-wsgiref
|
||||||
|
docker ps
|
||||||
|
docker volume ls
|
||||||
|
docker volume inspect applications
|
||||||
|
|
||||||
|
# Docker Compose
|
||||||
|
pip install docker-compose
|
||||||
|
cd /Docker/Alpine/web2py-wsgiref
|
||||||
|
docker-compose up -d
|
||||||
|
docker-compose ps
|
||||||
|
docker volume ls
|
||||||
|
docker volume inspect root_applications
|
||||||
|
|
||||||
|
# Docker Cloud
|
||||||
|
cd /Docker/Alpine/web2py-wsgiref
|
||||||
|
docker login -u your_username
|
||||||
|
docker build -t your_username/alpine-web2py-wsgiref .
|
||||||
|
docker push your_username/alpine-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/alpine-web2py-wsgiref .
|
||||||
|
docker run -d -v applications:/home/web2py/web2py/applications -p 8000:8000 --name alpine-web2py-wsgiref your_username/alpine-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:
|
||||||
Executable
+28
@@ -0,0 +1,28 @@
|
|||||||
|
FROM centos:latest
|
||||||
|
|
||||||
|
#LABEL your_label
|
||||||
|
|
||||||
|
RUN yum install -y epel-release && \
|
||||||
|
yum 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/Centos/web2py-eventlet
|
||||||
|
docker build -t your_username/centos-web2py-eventlet .
|
||||||
|
docker run -d -v applications:/home/web2py/web2py/applications -p 8000:8000 --name centos-web2py-eventlet your_username/centos-web2py-eventlet
|
||||||
|
docker ps
|
||||||
|
docker volume ls
|
||||||
|
docker volume inspect applications
|
||||||
|
|
||||||
|
# Docker Compose
|
||||||
|
pip install docker-compose
|
||||||
|
cd /Docker/Centos/web2py-eventlet
|
||||||
|
docker-compose up -d
|
||||||
|
docker-compose ps
|
||||||
|
docker volume ls
|
||||||
|
docker volume inspect root_applications
|
||||||
|
|
||||||
|
# Docker Cloud
|
||||||
|
cd /Docker/Centos/web2py-eventlet
|
||||||
|
docker login -u your_username
|
||||||
|
docker build -t your_username/centos-web2py-eventlet .
|
||||||
|
docker push your_username/centos-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/centos-web2py-eventlet .
|
||||||
|
docker run -d -v applications:/home/web2py/web2py/applications -p 8000:8000 --name centos-web2py-eventlet your_username/centos-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
+28
@@ -0,0 +1,28 @@
|
|||||||
|
FROM centos:latest
|
||||||
|
|
||||||
|
#LABEL your_label
|
||||||
|
|
||||||
|
RUN yum install -y epel-release && \
|
||||||
|
yum 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/Centos/web2py-gevent
|
||||||
|
docker build -t your_username/centos-web2py-gevent .
|
||||||
|
docker run -d -v applications:/home/web2py/web2py/applications -p 8000:8000 --name centos-web2py-gevent your_username/centos-web2py-gevent
|
||||||
|
docker ps
|
||||||
|
docker volume ls
|
||||||
|
docker volume inspect applications
|
||||||
|
|
||||||
|
# Docker Compose
|
||||||
|
pip install docker-compose
|
||||||
|
cd /Docker/Centos/web2py-gevent
|
||||||
|
docker-compose up -d
|
||||||
|
docker-compose ps
|
||||||
|
docker volume ls
|
||||||
|
docker volume inspect root_applications
|
||||||
|
|
||||||
|
# Docker Cloud
|
||||||
|
cd /Docker/Centos/web2py-gevent
|
||||||
|
docker login -u your_username
|
||||||
|
docker build -t your_username/centos-web2py-gevent .
|
||||||
|
docker push your_username/centos-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/centos-web2py-gevent .
|
||||||
|
docker run -d -v applications:/home/web2py/web2py/applications -p 8000:8000 --name centos-web2py-gevent your_username/centos-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 centos:latest
|
FROM centos:latest
|
||||||
|
|
||||||
|
#LABEL your_label
|
||||||
|
|
||||||
RUN yum install -y epel-release && \
|
RUN yum install -y epel-release && \
|
||||||
yum install -y python python-pip python-setuptools unzip wget python-gunicorn --nogpgcheck && \
|
yum install -y python python-pip python-setuptools unzip wget python-gunicorn --nogpgcheck && \
|
||||||
pip install --upgrade pip && \
|
pip install --upgrade pip && \
|
||||||
|
|||||||
@@ -3,8 +3,8 @@
|
|||||||
|
|
||||||
# Docker
|
# Docker
|
||||||
cd /Docker/Centos/web2py-gunicorn
|
cd /Docker/Centos/web2py-gunicorn
|
||||||
docker build -t username/centos-web2py-gunicorn .
|
docker build -t your_username/centos-web2py-gunicorn .
|
||||||
docker run -d -v applications:/home/web2py/web2py/applications -p 8000:8000 --name centos-web2py-gunicorn username/centos-web2py-gunicorn
|
docker run -d -v applications:/home/web2py/web2py/applications -p 8000:8000 --name centos-web2py-gunicorn your_username/centos-web2py-gunicorn
|
||||||
docker ps
|
docker ps
|
||||||
docker volume ls
|
docker volume ls
|
||||||
docker volume inspect applications
|
docker volume inspect applications
|
||||||
@@ -19,9 +19,9 @@
|
|||||||
|
|
||||||
# Docker Cloud
|
# Docker Cloud
|
||||||
cd /Docker/Centos/web2py-gunicorn
|
cd /Docker/Centos/web2py-gunicorn
|
||||||
docker login -u username
|
docker login -u your_username
|
||||||
docker build -t username/centos-web2py-gunicorn .
|
docker build -t your_username/centos-web2py-gunicorn .
|
||||||
docker push username/centos-web2py-gunicorn
|
docker push your_username/centos-web2py-gunicorn
|
||||||
|
|
||||||
# Shell (Copy the content of the file into this scaffolding shell and replace the variable text $ with \$ )
|
# Shell (Copy the content of the file into this scaffolding shell and replace the variable text $ with \$ )
|
||||||
cat << EOF > docker-compose.yml
|
cat << EOF > docker-compose.yml
|
||||||
@@ -34,8 +34,8 @@ cat << EOF > Dockerfile
|
|||||||
EOF
|
EOF
|
||||||
cat Dockerfile
|
cat Dockerfile
|
||||||
|
|
||||||
docker build -t username/centos-web2py-gunicorn .
|
docker build -t your_username/centos-web2py-gunicorn .
|
||||||
docker run -d -v applications:/home/web2py/web2py/applications -p 8000:8000 --name centos-web2py-gunicorn username/centos-web2py-gunicorn
|
docker run -d -v applications:/home/web2py/web2py/applications -p 8000:8000 --name centos-web2py-gunicorn your_username/centos-web2py-gunicorn
|
||||||
|
|
||||||
docker-compose up -d
|
docker-compose up -d
|
||||||
docker-compose ps
|
docker-compose ps
|
||||||
|
|||||||
Executable
+28
@@ -0,0 +1,28 @@
|
|||||||
|
FROM centos:latest
|
||||||
|
|
||||||
|
#LABEL your_label
|
||||||
|
|
||||||
|
RUN yum install -y epel-release && \
|
||||||
|
yum 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/Centos/web2py-paste
|
||||||
|
docker build -t your_username/centos-web2py-paste .
|
||||||
|
docker run -d -v applications:/home/web2py/web2py/applications -p 8000:8000 --name centos-web2py-paste your_username/centos-web2py-paste
|
||||||
|
docker ps
|
||||||
|
docker volume ls
|
||||||
|
docker volume inspect applications
|
||||||
|
|
||||||
|
# Docker Compose
|
||||||
|
pip install docker-compose
|
||||||
|
cd /Docker/Centos/web2py-paste
|
||||||
|
docker-compose up -d
|
||||||
|
docker-compose ps
|
||||||
|
docker volume ls
|
||||||
|
docker volume inspect root_applications
|
||||||
|
|
||||||
|
# Docker Cloud
|
||||||
|
cd /Docker/Centos/web2py-paste
|
||||||
|
docker login -u your_username
|
||||||
|
docker build -t your_username/centos-web2py-paste .
|
||||||
|
docker push your_username/centos-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/centos-web2py-paste .
|
||||||
|
docker run -d -v applications:/home/web2py/web2py/applications -p 8000:8000 --name centos-web2py-paste your_username/centos-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 centos:latest
|
FROM centos:latest
|
||||||
|
|
||||||
|
#LABEL your_label
|
||||||
|
|
||||||
RUN yum install -y epel-release && \
|
RUN yum install -y epel-release && \
|
||||||
yum install -y python python-pip python-setuptools unzip wget --nogpgcheck && \
|
yum install -y python python-pip python-setuptools unzip wget --nogpgcheck && \
|
||||||
pip install --upgrade pip && \
|
pip install --upgrade pip && \
|
||||||
|
|||||||
@@ -3,8 +3,8 @@
|
|||||||
|
|
||||||
# Docker
|
# Docker
|
||||||
cd /Docker/Centos/web2py-rocket
|
cd /Docker/Centos/web2py-rocket
|
||||||
docker build -t username/centos-web2py-rocket .
|
docker build -t your_username/centos-web2py-rocket .
|
||||||
docker run -d -v applications:/home/web2py/web2py/applications -p 8000:8000 --name centos-web2py-rocket username/centos-web2py-rocket
|
docker run -d -v applications:/home/web2py/web2py/applications -p 8000:8000 --name centos-web2py-rocket your_username/centos-web2py-rocket
|
||||||
docker ps
|
docker ps
|
||||||
docker volume ls
|
docker volume ls
|
||||||
docker volume inspect applications
|
docker volume inspect applications
|
||||||
@@ -19,9 +19,9 @@
|
|||||||
|
|
||||||
# Docker Cloud
|
# Docker Cloud
|
||||||
cd /Docker/Centos/web2py-rocket
|
cd /Docker/Centos/web2py-rocket
|
||||||
docker login -u username
|
docker login -u your_username
|
||||||
docker build -t username/centos-web2py-rocket .
|
docker build -t your_username/centos-web2py-rocket .
|
||||||
docker push username/centos-web2py-rocket
|
docker push your_username/centos-web2py-rocket
|
||||||
|
|
||||||
# Shell (Copy the content of the file into this scaffolding shell and replace the variable text $ with \$ )
|
# Shell (Copy the content of the file into this scaffolding shell and replace the variable text $ with \$ )
|
||||||
cat << EOF > docker-compose.yml
|
cat << EOF > docker-compose.yml
|
||||||
@@ -34,8 +34,8 @@ cat << EOF > Dockerfile
|
|||||||
EOF
|
EOF
|
||||||
cat Dockerfile
|
cat Dockerfile
|
||||||
|
|
||||||
docker build -t username/centos-web2py-rocket .
|
docker build -t your_username/centos-web2py-rocket .
|
||||||
docker run -d -v applications:/home/web2py/web2py/applications -p 8000:8000 --name centos-web2py-rocket username/centos-web2py-rocket
|
docker run -d -v applications:/home/web2py/web2py/applications -p 8000:8000 --name centos-web2py-rocket your_username/centos-web2py-rocket
|
||||||
|
|
||||||
docker-compose up -d
|
docker-compose up -d
|
||||||
docker-compose ps
|
docker-compose ps
|
||||||
|
|||||||
@@ -1,5 +1,7 @@
|
|||||||
FROM centos:latest
|
FROM centos:latest
|
||||||
|
|
||||||
|
#LABEL your_label
|
||||||
|
|
||||||
RUN yum install -y epel-release && \
|
RUN yum install -y epel-release && \
|
||||||
yum install -y python python-pip python-setuptools unzip wget python-tornado --nogpgcheck && \
|
yum install -y python python-pip python-setuptools unzip wget python-tornado --nogpgcheck && \
|
||||||
pip install --upgrade pip && \
|
pip install --upgrade pip && \
|
||||||
|
|||||||
@@ -3,8 +3,8 @@
|
|||||||
|
|
||||||
# Docker
|
# Docker
|
||||||
cd /Docker/Centos/web2py-tornado
|
cd /Docker/Centos/web2py-tornado
|
||||||
docker build -t username/centos-web2py-tornado .
|
docker build -t your_username/centos-web2py-tornado .
|
||||||
docker run -d -v applications:/home/web2py/web2py/applications -p 8000:8000 --name centos-web2py-tornado username/centos-web2py-tornado
|
docker run -d -v applications:/home/web2py/web2py/applications -p 8000:8000 --name centos-web2py-tornado your_username/centos-web2py-tornado
|
||||||
docker ps
|
docker ps
|
||||||
docker volume ls
|
docker volume ls
|
||||||
docker volume inspect applications
|
docker volume inspect applications
|
||||||
@@ -19,9 +19,9 @@
|
|||||||
|
|
||||||
# Docker Cloud
|
# Docker Cloud
|
||||||
cd /Docker/Centos/web2py-tornado
|
cd /Docker/Centos/web2py-tornado
|
||||||
docker login -u username
|
docker login -u your_username
|
||||||
docker build -t username/centos-web2py-tornado .
|
docker build -t your_username/centos-web2py-tornado .
|
||||||
docker push username/centos-web2py-tornado
|
docker push your_username/centos-web2py-tornado
|
||||||
|
|
||||||
# Shell (Copy the content of the file into this scaffolding shell and replace the variable text $ with \$ )
|
# Shell (Copy the content of the file into this scaffolding shell and replace the variable text $ with \$ )
|
||||||
cat << EOF > docker-compose.yml
|
cat << EOF > docker-compose.yml
|
||||||
@@ -34,8 +34,8 @@ cat << EOF > Dockerfile
|
|||||||
EOF
|
EOF
|
||||||
cat Dockerfile
|
cat Dockerfile
|
||||||
|
|
||||||
docker build -t username/centos-web2py-tornado .
|
docker build -t your_username/centos-web2py-tornado .
|
||||||
docker run -d -v applications:/home/web2py/web2py/applications -p 8000:8000 --name centos-web2py-tornado username/centos-web2py-tornado
|
docker run -d -v applications:/home/web2py/web2py/applications -p 8000:8000 --name centos-web2py-tornado your_username/centos-web2py-tornado
|
||||||
|
|
||||||
docker-compose up -d
|
docker-compose up -d
|
||||||
docker-compose ps
|
docker-compose ps
|
||||||
|
|||||||
Executable
+28
@@ -0,0 +1,28 @@
|
|||||||
|
FROM centos:latest
|
||||||
|
|
||||||
|
#LABEL your_label
|
||||||
|
|
||||||
|
RUN yum install -y epel-release && \
|
||||||
|
yum install -y python python-pip python-setuptools unzip wget python-twisted-web --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/Centos/web2py-twisted
|
||||||
|
docker build -t your_username/centos-web2py-twisted .
|
||||||
|
docker run -d -v applications:/home/web2py/web2py/applications -p 8000:8000 --name centos-web2py-twisted your_username/centos-web2py-twisted
|
||||||
|
docker ps
|
||||||
|
docker volume ls
|
||||||
|
docker volume inspect applications
|
||||||
|
|
||||||
|
# Docker Compose
|
||||||
|
pip install docker-compose
|
||||||
|
cd /Docker/Centos/web2py-twisted
|
||||||
|
docker-compose up -d
|
||||||
|
docker-compose ps
|
||||||
|
docker volume ls
|
||||||
|
docker volume inspect root_applications
|
||||||
|
|
||||||
|
# Docker Cloud
|
||||||
|
cd /Docker/Centos/web2py-twisted
|
||||||
|
docker login -u your_username
|
||||||
|
docker build -t your_username/centos-web2py-twisted .
|
||||||
|
docker push your_username/centos-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/centos-web2py-twisted .
|
||||||
|
docker run -d -v applications:/home/web2py/web2py/applications -p 8000:8000 --name centos-web2py-twisted your_username/centos-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
+28
@@ -0,0 +1,28 @@
|
|||||||
|
FROM centos:latest
|
||||||
|
|
||||||
|
#LABEL your_label
|
||||||
|
|
||||||
|
RUN yum install -y epel-release && \
|
||||||
|
yum 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/Centos/web2py-waitress
|
||||||
|
docker build -t your_username/centos-web2py-waitress .
|
||||||
|
docker run -d -v applications:/home/web2py/web2py/applications -p 8000:8000 --name centos-web2py-waitress your_username/centos-web2py-waitress
|
||||||
|
docker ps
|
||||||
|
docker volume ls
|
||||||
|
docker volume inspect applications
|
||||||
|
|
||||||
|
# Docker Compose
|
||||||
|
pip install docker-compose
|
||||||
|
cd /Docker/Centos/web2py-waitress
|
||||||
|
docker-compose up -d
|
||||||
|
docker-compose ps
|
||||||
|
docker volume ls
|
||||||
|
docker volume inspect root_applications
|
||||||
|
|
||||||
|
# Docker Cloud
|
||||||
|
cd /Docker/Centos/web2py-waitress
|
||||||
|
docker login -u your_username
|
||||||
|
docker build -t your_username/centos-web2py-waitress .
|
||||||
|
docker push your_username/centos-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/centos-web2py-waitress .
|
||||||
|
docker run -d -v applications:/home/web2py/web2py/applications -p 8000:8000 --name centos-web2py-waitress your_username/centos-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
+28
@@ -0,0 +1,28 @@
|
|||||||
|
FROM centos:latest
|
||||||
|
|
||||||
|
#LABEL your_label
|
||||||
|
|
||||||
|
RUN yum install -y epel-release && \
|
||||||
|
yum 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/Centos/web2py-wsgiref
|
||||||
|
docker build -t your_username/centos-web2py-wsgiref .
|
||||||
|
docker run -d -v applications:/home/web2py/web2py/applications -p 8000:8000 --name centos-web2py-wsgiref your_username/centos-web2py-wsgiref
|
||||||
|
docker ps
|
||||||
|
docker volume ls
|
||||||
|
docker volume inspect applications
|
||||||
|
|
||||||
|
# Docker Compose
|
||||||
|
pip install docker-compose
|
||||||
|
cd /Docker/Centos/web2py-wsgiref
|
||||||
|
docker-compose up -d
|
||||||
|
docker-compose ps
|
||||||
|
docker volume ls
|
||||||
|
docker volume inspect root_applications
|
||||||
|
|
||||||
|
# Docker Cloud
|
||||||
|
cd /Docker/Centos/web2py-wsgiref
|
||||||
|
docker login -u your_username
|
||||||
|
docker build -t your_username/centos-web2py-wsgiref .
|
||||||
|
docker push your_username/centos-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/centos-web2py-wsgiref .
|
||||||
|
docker run -d -v applications:/home/web2py/web2py/applications -p 8000:8000 --name centos-web2py-wsgiref your_username/centos-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:
|
||||||
Executable
+27
@@ -0,0 +1,27 @@
|
|||||||
|
FROM debian:latest
|
||||||
|
|
||||||
|
#LABEL your_label
|
||||||
|
|
||||||
|
RUN apt update && \
|
||||||
|
apt install -y python python-pip python-setuptools unzip wget && \
|
||||||
|
pip install virtualenv diesel
|
||||||
|
|
||||||
|
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 diesel -i 0.0.0.0 -p 8000
|
||||||
Executable
+41
@@ -0,0 +1,41 @@
|
|||||||
|
# Start Service
|
||||||
|
systemctl start docker
|
||||||
|
|
||||||
|
# Docker
|
||||||
|
cd /Docker/Debian/web2py-diesel
|
||||||
|
docker build -t your_username/debian-web2py-diesel .
|
||||||
|
docker run -d -v applications:/home/web2py/web2py/applications -p 8000:8000 --name debian-web2py-diesel your_username/debian-web2py-diesel
|
||||||
|
docker ps
|
||||||
|
docker volume ls
|
||||||
|
docker volume inspect applications
|
||||||
|
|
||||||
|
# Docker Compose
|
||||||
|
pip install docker-compose
|
||||||
|
cd /Docker/Debian/web2py-diesel
|
||||||
|
docker-compose up -d
|
||||||
|
docker-compose ps
|
||||||
|
docker volume ls
|
||||||
|
docker volume inspect root_applications
|
||||||
|
|
||||||
|
# Docker Cloud
|
||||||
|
cd /Docker/Debian/web2py-diesel
|
||||||
|
docker login -u your_username
|
||||||
|
docker build -t your_username/debian-web2py-diesel .
|
||||||
|
docker push your_username/debian-web2py-diesel
|
||||||
|
|
||||||
|
# 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/debian-web2py-diesel .
|
||||||
|
docker run -d -v applications:/home/web2py/web2py/applications -p 8000:8000 --name debian-web2py-diesel your_username/debian-web2py-diesel
|
||||||
|
|
||||||
|
docker-compose up -d
|
||||||
|
docker-compose ps
|
||||||
+12
@@ -0,0 +1,12 @@
|
|||||||
|
version: '3.1'
|
||||||
|
|
||||||
|
services:
|
||||||
|
web2py-diesel:
|
||||||
|
build: .
|
||||||
|
ports:
|
||||||
|
- "8000:8000"
|
||||||
|
volumes:
|
||||||
|
- applications:/home/web2py/web2py/applications
|
||||||
|
|
||||||
|
volumes:
|
||||||
|
applications:
|
||||||
Executable
+27
@@ -0,0 +1,27 @@
|
|||||||
|
FROM debian:latest
|
||||||
|
|
||||||
|
#LABEL your_label
|
||||||
|
|
||||||
|
RUN apt update && \
|
||||||
|
apt install -y python python-pip python-setuptools unzip wget python-eventlet && \
|
||||||
|
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/Debian/web2py-eventlet
|
||||||
|
docker build -t your_username/debian-web2py-eventlet .
|
||||||
|
docker run -d -v applications:/home/web2py/web2py/applications -p 8000:8000 --name debian-web2py-eventlet your_username/debian-web2py-eventlet
|
||||||
|
docker ps
|
||||||
|
docker volume ls
|
||||||
|
docker volume inspect applications
|
||||||
|
|
||||||
|
# Docker Compose
|
||||||
|
pip install docker-compose
|
||||||
|
cd /Docker/Debian/web2py-eventlet
|
||||||
|
docker-compose up -d
|
||||||
|
docker-compose ps
|
||||||
|
docker volume ls
|
||||||
|
docker volume inspect root_applications
|
||||||
|
|
||||||
|
# Docker Cloud
|
||||||
|
cd /Docker/Debian/web2py-eventlet
|
||||||
|
docker login -u your_username
|
||||||
|
docker build -t your_username/debian-web2py-eventlet .
|
||||||
|
docker push your_username/debian-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/debian-web2py-eventlet .
|
||||||
|
docker run -d -v applications:/home/web2py/web2py/applications -p 8000:8000 --name debian-web2py-eventlet your_username/debian-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 debian:latest
|
||||||
|
|
||||||
|
#LABEL your_label
|
||||||
|
|
||||||
|
RUN apt update && \
|
||||||
|
apt install -y python python-pip python-setuptools unzip wget python-gevent && \
|
||||||
|
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/Debian/web2py-gevent
|
||||||
|
docker build -t your_username/debian-web2py-gevent .
|
||||||
|
docker run -d -v applications:/home/web2py/web2py/applications -p 8000:8000 --name debian-web2py-gevent your_username/debian-web2py-gevent
|
||||||
|
docker ps
|
||||||
|
docker volume ls
|
||||||
|
docker volume inspect applications
|
||||||
|
|
||||||
|
# Docker Compose
|
||||||
|
pip install docker-compose
|
||||||
|
cd /Docker/Debian/web2py-gevent
|
||||||
|
docker-compose up -d
|
||||||
|
docker-compose ps
|
||||||
|
docker volume ls
|
||||||
|
docker volume inspect root_applications
|
||||||
|
|
||||||
|
# Docker Cloud
|
||||||
|
cd /Docker/Debian/web2py-gevent
|
||||||
|
docker login -u your_username
|
||||||
|
docker build -t your_username/debian-web2py-gevent .
|
||||||
|
docker push your_username/debian-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/debian-web2py-gevent .
|
||||||
|
docker run -d -v applications:/home/web2py/web2py/applications -p 8000:8000 --name debian-web2py-gevent your_username/debian-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,8 +1,9 @@
|
|||||||
FROM debian:latest
|
FROM debian:latest
|
||||||
|
|
||||||
|
#LABEL your_label
|
||||||
|
|
||||||
RUN apt update && \
|
RUN apt update && \
|
||||||
apt install -y python python-pip python-setuptools unzip wget gunicorn && \
|
apt install -y python python-pip python-setuptools unzip wget python-gunicorn && \
|
||||||
pip install --upgrade pip && \
|
|
||||||
pip install virtualenv
|
pip install virtualenv
|
||||||
|
|
||||||
RUN groupadd -r web2py && \
|
RUN groupadd -r web2py && \
|
||||||
|
|||||||
@@ -3,8 +3,8 @@
|
|||||||
|
|
||||||
# Docker
|
# Docker
|
||||||
cd /Docker/Debian/web2py-gunicorn
|
cd /Docker/Debian/web2py-gunicorn
|
||||||
docker build -t username/debian-web2py-gunicorn .
|
docker build -t your_username/debian-web2py-gunicorn .
|
||||||
docker run -d -v applications:/home/web2py/web2py/applications -p 8000:8000 --name debian-web2py-gunicorn username/debian-web2py-gunicorn
|
docker run -d -v applications:/home/web2py/web2py/applications -p 8000:8000 --name debian-web2py-gunicorn your_username/debian-web2py-gunicorn
|
||||||
docker ps
|
docker ps
|
||||||
docker volume ls
|
docker volume ls
|
||||||
docker volume inspect applications
|
docker volume inspect applications
|
||||||
@@ -19,9 +19,9 @@
|
|||||||
|
|
||||||
# Docker Cloud
|
# Docker Cloud
|
||||||
cd /Docker/Debian/web2py-gunicorn
|
cd /Docker/Debian/web2py-gunicorn
|
||||||
docker login -u username
|
docker login -u your_username
|
||||||
docker build -t username/debian-web2py-gunicorn .
|
docker build -t your_username/debian-web2py-gunicorn .
|
||||||
docker push username/debian-web2py-gunicorn
|
docker push your_username/debian-web2py-gunicorn
|
||||||
|
|
||||||
# Shell (Copy the content of the file into this scaffolding shell and replace the variable text $ with \$ )
|
# Shell (Copy the content of the file into this scaffolding shell and replace the variable text $ with \$ )
|
||||||
cat << EOF > docker-compose.yml
|
cat << EOF > docker-compose.yml
|
||||||
@@ -34,8 +34,8 @@ cat << EOF > Dockerfile
|
|||||||
EOF
|
EOF
|
||||||
cat Dockerfile
|
cat Dockerfile
|
||||||
|
|
||||||
docker build -t username/debian-web2py-gunicorn .
|
docker build -t your_username/debian-web2py-gunicorn .
|
||||||
docker run -d -v applications:/home/web2py/web2py/applications -p 8000:8000 --name debian-web2py-gunicorn username/debian-web2py-gunicorn
|
docker run -d -v applications:/home/web2py/web2py/applications -p 8000:8000 --name debian-web2py-gunicorn your_username/debian-web2py-gunicorn
|
||||||
|
|
||||||
docker-compose up -d
|
docker-compose up -d
|
||||||
docker-compose ps
|
docker-compose ps
|
||||||
|
|||||||
Executable
+27
@@ -0,0 +1,27 @@
|
|||||||
|
FROM debian:latest
|
||||||
|
|
||||||
|
#LABEL your_label
|
||||||
|
|
||||||
|
RUN apt update && \
|
||||||
|
apt install -y python python-pip python-setuptools unzip wget python-paste && \
|
||||||
|
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/Debian/web2py-paste
|
||||||
|
docker build -t your_username/debian-web2py-paste .
|
||||||
|
docker run -d -v applications:/home/web2py/web2py/applications -p 8000:8000 --name debian-web2py-paste your_username/debian-web2py-paste
|
||||||
|
docker ps
|
||||||
|
docker volume ls
|
||||||
|
docker volume inspect applications
|
||||||
|
|
||||||
|
# Docker Compose
|
||||||
|
pip install docker-compose
|
||||||
|
cd /Docker/Debian/web2py-paste
|
||||||
|
docker-compose up -d
|
||||||
|
docker-compose ps
|
||||||
|
docker volume ls
|
||||||
|
docker volume inspect root_applications
|
||||||
|
|
||||||
|
# Docker Cloud
|
||||||
|
cd /Docker/Debian/web2py-paste
|
||||||
|
docker login -u your_username
|
||||||
|
docker build -t your_username/debian-web2py-paste .
|
||||||
|
docker push your_username/debian-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/debian-web2py-paste .
|
||||||
|
docker run -d -v applications:/home/web2py/web2py/applications -p 8000:8000 --name debian-web2py-paste your_username/debian-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 debian:latest
|
FROM debian:latest
|
||||||
|
|
||||||
|
#LABEL your_label
|
||||||
|
|
||||||
RUN apt update && \
|
RUN apt update && \
|
||||||
apt install -y python python-pip python-setuptools unzip wget && \
|
apt install -y python python-pip python-setuptools unzip wget && \
|
||||||
pip install --upgrade pip && \
|
pip install --upgrade pip && \
|
||||||
|
|||||||
@@ -3,8 +3,8 @@
|
|||||||
|
|
||||||
# Docker
|
# Docker
|
||||||
cd /Docker/Debian/web2py-rocket
|
cd /Docker/Debian/web2py-rocket
|
||||||
docker build -t username/debian-web2py-rocket .
|
docker build -t your_username/debian-web2py-rocket .
|
||||||
docker run -d -v applications:/home/web2py/web2py/applications -p 8000:8000 --name debian-web2py-rocket username/debian-web2py-rocket
|
docker run -d -v applications:/home/web2py/web2py/applications -p 8000:8000 --name debian-web2py-rocket your_username/debian-web2py-rocket
|
||||||
docker ps
|
docker ps
|
||||||
docker volume ls
|
docker volume ls
|
||||||
docker volume inspect applications
|
docker volume inspect applications
|
||||||
@@ -19,9 +19,9 @@
|
|||||||
|
|
||||||
# Docker Cloud
|
# Docker Cloud
|
||||||
cd /Docker/Debian/web2py-rocket
|
cd /Docker/Debian/web2py-rocket
|
||||||
docker login -u username
|
docker login -u your_username
|
||||||
docker build -t username/debian-web2py-rocket .
|
docker build -t your_username/debian-web2py-rocket .
|
||||||
docker push username/debian-web2py-rocket
|
docker push your_username/debian-web2py-rocket
|
||||||
|
|
||||||
# Shell (Copy the content of the file into this scaffolding shell and replace the variable text $ with \$ )
|
# Shell (Copy the content of the file into this scaffolding shell and replace the variable text $ with \$ )
|
||||||
cat << EOF > docker-compose.yml
|
cat << EOF > docker-compose.yml
|
||||||
@@ -34,8 +34,8 @@ cat << EOF > Dockerfile
|
|||||||
EOF
|
EOF
|
||||||
cat Dockerfile
|
cat Dockerfile
|
||||||
|
|
||||||
docker build -t username/debian-web2py-rocket .
|
docker build -t your_username/debian-web2py-rocket .
|
||||||
docker run -d -v applications:/home/web2py/web2py/applications -p 8000:8000 --name debian-web2py-rocket username/debian-web2py-rocket
|
docker run -d -v applications:/home/web2py/web2py/applications -p 8000:8000 --name debian-web2py-rocket your_username/debian-web2py-rocket
|
||||||
|
|
||||||
docker-compose up -d
|
docker-compose up -d
|
||||||
docker-compose ps
|
docker-compose ps
|
||||||
|
|||||||
@@ -1,8 +1,9 @@
|
|||||||
FROM debian:latest
|
FROM debian:latest
|
||||||
|
|
||||||
|
#LABEL your_label
|
||||||
|
|
||||||
RUN apt update && \
|
RUN apt update && \
|
||||||
apt install -y python python-pip python-setuptools unzip wget python-tornado && \
|
apt install -y python python-pip python-setuptools unzip wget python-tornado && \
|
||||||
pip install --upgrade pip && \
|
|
||||||
pip install virtualenv
|
pip install virtualenv
|
||||||
|
|
||||||
RUN groupadd -r web2py && \
|
RUN groupadd -r web2py && \
|
||||||
|
|||||||
@@ -3,8 +3,8 @@
|
|||||||
|
|
||||||
# Docker
|
# Docker
|
||||||
cd /Docker/Debian/web2py-tornado
|
cd /Docker/Debian/web2py-tornado
|
||||||
docker build -t username/debian-web2py-tornado .
|
docker build -t your_username/debian-web2py-tornado .
|
||||||
docker run -d -v applications:/home/web2py/web2py/applications -p 8000:8000 --name debian-web2py-tornado username/debian-web2py-tornado
|
docker run -d -v applications:/home/web2py/web2py/applications -p 8000:8000 --name debian-web2py-tornado your_username/debian-web2py-tornado
|
||||||
docker ps
|
docker ps
|
||||||
docker volume ls
|
docker volume ls
|
||||||
docker volume inspect applications
|
docker volume inspect applications
|
||||||
@@ -19,9 +19,9 @@
|
|||||||
|
|
||||||
# Docker Cloud
|
# Docker Cloud
|
||||||
cd /Docker/Debian/web2py-tornado
|
cd /Docker/Debian/web2py-tornado
|
||||||
docker login -u username
|
docker login -u your_username
|
||||||
docker build -t username/debian-web2py-tornado .
|
docker build -t your_username/debian-web2py-tornado .
|
||||||
docker push username/debian-web2py-tornado
|
docker push your_username/debian-web2py-tornado
|
||||||
|
|
||||||
# Shell (Copy the content of the file into this scaffolding shell and replace the variable text $ with \$ )
|
# Shell (Copy the content of the file into this scaffolding shell and replace the variable text $ with \$ )
|
||||||
cat << EOF > docker-compose.yml
|
cat << EOF > docker-compose.yml
|
||||||
@@ -34,8 +34,8 @@ cat << EOF > Dockerfile
|
|||||||
EOF
|
EOF
|
||||||
cat Dockerfile
|
cat Dockerfile
|
||||||
|
|
||||||
docker build -t username/debian-web2py-tornado .
|
docker build -t your_username/debian-web2py-tornado .
|
||||||
docker run -d -v applications:/home/web2py/web2py/applications -p 8000:8000 --name debian-web2py-tornado username/debian-web2py-tornado
|
docker run -d -v applications:/home/web2py/web2py/applications -p 8000:8000 --name debian-web2py-tornado your_username/debian-web2py-tornado
|
||||||
|
|
||||||
docker-compose up -d
|
docker-compose up -d
|
||||||
docker-compose ps
|
docker-compose ps
|
||||||
|
|||||||
Executable
+27
@@ -0,0 +1,27 @@
|
|||||||
|
FROM debian:latest
|
||||||
|
|
||||||
|
#LABEL your_label
|
||||||
|
|
||||||
|
RUN apt update && \
|
||||||
|
apt install -y python python-pip python-setuptools unzip wget python-twisted && \
|
||||||
|
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/Debian/web2py-twisted
|
||||||
|
docker build -t your_username/debian-web2py-twisted .
|
||||||
|
docker run -d -v applications:/home/web2py/web2py/applications -p 8000:8000 --name debian-web2py-twisted your_username/debian-web2py-twisted
|
||||||
|
docker ps
|
||||||
|
docker volume ls
|
||||||
|
docker volume inspect applications
|
||||||
|
|
||||||
|
# Docker Compose
|
||||||
|
pip install docker-compose
|
||||||
|
cd /Docker/Debian/web2py-twisted
|
||||||
|
docker-compose up -d
|
||||||
|
docker-compose ps
|
||||||
|
docker volume ls
|
||||||
|
docker volume inspect root_applications
|
||||||
|
|
||||||
|
# Docker Cloud
|
||||||
|
cd /Docker/Debian/web2py-twisted
|
||||||
|
docker login -u your_username
|
||||||
|
docker build -t your_username/debian-web2py-twisted .
|
||||||
|
docker push your_username/debian-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/debian-web2py-twisted .
|
||||||
|
docker run -d -v applications:/home/web2py/web2py/applications -p 8000:8000 --name debian-web2py-twisted your_username/debian-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 debian:latest
|
||||||
|
|
||||||
|
#LABEL your_label
|
||||||
|
|
||||||
|
RUN apt update && \
|
||||||
|
apt install -y python python-pip python-setuptools unzip wget && \
|
||||||
|
pip install virtualenv waitress
|
||||||
|
|
||||||
|
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/Debian/web2py-waitress
|
||||||
|
docker build -t your_username/debian-web2py-waitress .
|
||||||
|
docker run -d -v applications:/home/web2py/web2py/applications -p 8000:8000 --name debian-web2py-waitress your_username/debian-web2py-waitress
|
||||||
|
docker ps
|
||||||
|
docker volume ls
|
||||||
|
docker volume inspect applications
|
||||||
|
|
||||||
|
# Docker Compose
|
||||||
|
pip install docker-compose
|
||||||
|
cd /Docker/Debian/web2py-waitress
|
||||||
|
docker-compose up -d
|
||||||
|
docker-compose ps
|
||||||
|
docker volume ls
|
||||||
|
docker volume inspect root_applications
|
||||||
|
|
||||||
|
# Docker Cloud
|
||||||
|
cd /Docker/Debian/web2py-waitress
|
||||||
|
docker login -u your_username
|
||||||
|
docker build -t your_username/debian-web2py-waitress .
|
||||||
|
docker push your_username/debian-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/debian-web2py-waitress .
|
||||||
|
docker run -d -v applications:/home/web2py/web2py/applications -p 8000:8000 --name debian-web2py-waitress your_username/debian-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 debian:latest
|
||||||
|
|
||||||
|
#LABEL your_label
|
||||||
|
|
||||||
|
RUN apt update && \
|
||||||
|
apt install -y python python-pip python-setuptools unzip wget && \
|
||||||
|
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/Debian/web2py-wsgiref
|
||||||
|
docker build -t your_username/debian-web2py-wsgiref .
|
||||||
|
docker run -d -v applications:/home/web2py/web2py/applications -p 8000:8000 --name debian-web2py-wsgiref your_username/debian-web2py-wsgiref
|
||||||
|
docker ps
|
||||||
|
docker volume ls
|
||||||
|
docker volume inspect applications
|
||||||
|
|
||||||
|
# Docker Compose
|
||||||
|
pip install docker-compose
|
||||||
|
cd /Docker/Debian/web2py-wsgiref
|
||||||
|
docker-compose up -d
|
||||||
|
docker-compose ps
|
||||||
|
docker volume ls
|
||||||
|
docker volume inspect root_applications
|
||||||
|
|
||||||
|
# Docker Cloud
|
||||||
|
cd /Docker/Debian/web2py-wsgiref
|
||||||
|
docker login -u your_username
|
||||||
|
docker build -t your_username/debian-web2py-wsgiref .
|
||||||
|
docker push your_username/debian-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/debian-web2py-wsgiref .
|
||||||
|
docker run -d -v applications:/home/web2py/web2py/applications -p 8000:8000 --name debian-web2py-wsgiref your_username/debian-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:
|
||||||
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
|
FROM fedora:latest
|
||||||
|
|
||||||
|
#LABEL your_label
|
||||||
|
|
||||||
RUN dnf install -y python python-pip python-setuptools unzip wget python-gunicorn --nogpgcheck && \
|
RUN dnf install -y python python-pip python-setuptools unzip wget python-gunicorn --nogpgcheck && \
|
||||||
pip install --upgrade pip && \
|
pip install --upgrade pip && \
|
||||||
pip install virtualenv
|
pip install virtualenv
|
||||||
|
|||||||
@@ -3,8 +3,8 @@
|
|||||||
|
|
||||||
# Docker
|
# Docker
|
||||||
cd /Docker/Fedora/web2py-gunicorn
|
cd /Docker/Fedora/web2py-gunicorn
|
||||||
docker build -t 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 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 ps
|
||||||
docker volume ls
|
docker volume ls
|
||||||
docker volume inspect applications
|
docker volume inspect applications
|
||||||
@@ -19,9 +19,9 @@
|
|||||||
|
|
||||||
# Docker Cloud
|
# Docker Cloud
|
||||||
cd /Docker/Fedora/web2py-gunicorn
|
cd /Docker/Fedora/web2py-gunicorn
|
||||||
docker login -u username
|
docker login -u your_username
|
||||||
docker build -t username/fedora-web2py-gunicorn .
|
docker build -t your_username/fedora-web2py-gunicorn .
|
||||||
docker push 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 \$ )
|
# Shell (Copy the content of the file into this scaffolding shell and replace the variable text $ with \$ )
|
||||||
cat << EOF > docker-compose.yml
|
cat << EOF > docker-compose.yml
|
||||||
@@ -34,8 +34,8 @@ cat << EOF > Dockerfile
|
|||||||
EOF
|
EOF
|
||||||
cat Dockerfile
|
cat Dockerfile
|
||||||
|
|
||||||
docker build -t 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 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 up -d
|
||||||
docker-compose ps
|
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
|
FROM fedora:latest
|
||||||
|
|
||||||
|
#LABEL your_label
|
||||||
|
|
||||||
RUN dnf install -y python python-pip python-setuptools unzip wget --nogpgcheck && \
|
RUN dnf install -y python python-pip python-setuptools unzip wget --nogpgcheck && \
|
||||||
pip install --upgrade pip && \
|
pip install --upgrade pip && \
|
||||||
pip install virtualenv
|
pip install virtualenv
|
||||||
|
|||||||
@@ -3,8 +3,8 @@
|
|||||||
|
|
||||||
# Docker
|
# Docker
|
||||||
cd /Docker/Fedora/web2py-rocket
|
cd /Docker/Fedora/web2py-rocket
|
||||||
docker build -t 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 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 ps
|
||||||
docker volume ls
|
docker volume ls
|
||||||
docker volume inspect applications
|
docker volume inspect applications
|
||||||
@@ -19,9 +19,9 @@
|
|||||||
|
|
||||||
# Docker Cloud
|
# Docker Cloud
|
||||||
cd /Docker/Fedora/web2py-rocket
|
cd /Docker/Fedora/web2py-rocket
|
||||||
docker login -u username
|
docker login -u your_username
|
||||||
docker build -t username/fedora-web2py-rocket .
|
docker build -t your_username/fedora-web2py-rocket .
|
||||||
docker push 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 \$ )
|
# Shell (Copy the content of the file into this scaffolding shell and replace the variable text $ with \$ )
|
||||||
cat << EOF > docker-compose.yml
|
cat << EOF > docker-compose.yml
|
||||||
@@ -34,8 +34,8 @@ cat << EOF > Dockerfile
|
|||||||
EOF
|
EOF
|
||||||
cat Dockerfile
|
cat Dockerfile
|
||||||
|
|
||||||
docker build -t 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 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 up -d
|
||||||
docker-compose ps
|
docker-compose ps
|
||||||
|
|||||||
@@ -1,5 +1,7 @@
|
|||||||
FROM fedora:latest
|
FROM fedora:latest
|
||||||
|
|
||||||
|
#LABEL your_label
|
||||||
|
|
||||||
RUN dnf install -y python python-pip python-setuptools unzip wget python-tornado --nogpgcheck && \
|
RUN dnf install -y python python-pip python-setuptools unzip wget python-tornado --nogpgcheck && \
|
||||||
pip install --upgrade pip && \
|
pip install --upgrade pip && \
|
||||||
pip install virtualenv
|
pip install virtualenv
|
||||||
|
|||||||
@@ -3,8 +3,8 @@
|
|||||||
|
|
||||||
# Docker
|
# Docker
|
||||||
cd /Docker/Fedora/web2py-tornado
|
cd /Docker/Fedora/web2py-tornado
|
||||||
docker build -t 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 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 ps
|
||||||
docker volume ls
|
docker volume ls
|
||||||
docker volume inspect applications
|
docker volume inspect applications
|
||||||
@@ -19,9 +19,9 @@
|
|||||||
|
|
||||||
# Docker Cloud
|
# Docker Cloud
|
||||||
cd /Docker/Fedora/web2py-tornado
|
cd /Docker/Fedora/web2py-tornado
|
||||||
docker login -u username
|
docker login -u your_username
|
||||||
docker build -t username/fedora-web2py-tornado .
|
docker build -t your_username/fedora-web2py-tornado .
|
||||||
docker push 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 \$ )
|
# Shell (Copy the content of the file into this scaffolding shell and replace the variable text $ with \$ )
|
||||||
cat << EOF > docker-compose.yml
|
cat << EOF > docker-compose.yml
|
||||||
@@ -34,8 +34,8 @@ cat << EOF > Dockerfile
|
|||||||
EOF
|
EOF
|
||||||
cat Dockerfile
|
cat Dockerfile
|
||||||
|
|
||||||
docker build -t 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 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 up -d
|
||||||
docker-compose ps
|
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:
|
||||||
Executable
+27
@@ -0,0 +1,27 @@
|
|||||||
|
FROM opensuse:latest
|
||||||
|
|
||||||
|
#LABEL your_label
|
||||||
|
|
||||||
|
RUN zypper in -y python python-pip python-setuptools unzip wget python-eventlet && \
|
||||||
|
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/OpenSuse/web2py-eventlet
|
||||||
|
docker build -t your_username/opensuse-web2py-eventlet .
|
||||||
|
docker run -d -v applications:/home/web2py/web2py/applications -p 8000:8000 --name opensuse-web2py-eventlet your_username/opensuse-web2py-eventlet
|
||||||
|
docker ps
|
||||||
|
docker volume ls
|
||||||
|
docker volume inspect applications
|
||||||
|
|
||||||
|
# Docker Compose
|
||||||
|
pip install docker-compose
|
||||||
|
cd /Docker/OpenSuse/web2py-eventlet
|
||||||
|
docker-compose up -d
|
||||||
|
docker-compose ps
|
||||||
|
docker volume ls
|
||||||
|
docker volume inspect root_applications
|
||||||
|
|
||||||
|
# Docker Cloud
|
||||||
|
cd /Docker/OpenSuse/web2py-eventlet
|
||||||
|
docker login -u your_username
|
||||||
|
docker build -t your_username/opensuse-web2py-eventlet .
|
||||||
|
docker push your_username/opensuse-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/opensuse-web2py-eventlet .
|
||||||
|
docker run -d -v applications:/home/web2py/web2py/applications -p 8000:8000 --name opensuse-web2py-eventlet your_username/opensuse-web2py-eventlet
|
||||||
|
|
||||||
|
docker-compose up -d
|
||||||
|
docker-compose ps
|
||||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user