This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
def produccion = [:] | |
produccion.name = 'curso' | |
produccion.host = '172.17.0.2' | |
produccion.user = 'root' | |
produccion.password = 'root' | |
produccion.allowAnyHosts = true | |
pipeline { | |
agent any | |
stages { | |
stage('Build') { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
version: '3' | |
services: | |
#------------------------------------------------------------------------- | |
# SERVICIO SERVIDOR WEB (php:7.4-apache con mysqli y c贸digo WP descargado | |
#------------------------------------------------------------------------- | |
web: | |
# IMAGEN USADA | |
image: jperjim398/miwp | |
# NOMBRE QUE LE VOY A DAR AL CONTENEDOR |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
FROM php:7.4-apache | |
RUN apt update && apt install -y git | |
WORKDIR /var/www/html | |
RUN git clone https://github.com/WordPress/WordPress.git . | |
RUN chown -R www-data:www-data /var/www/html |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
FROM python:3.8.7 | |
ARG DEBUG_PORT=5687 | |
ARG APP_PORT=8000 | |
COPY djangoapp /app | |
COPY ./startapp.sh /app/ | |
WORKDIR /app | |
RUN chmod +x startapp.sh |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
FROM tomcat:9.0.39-jdk11 | |
# Installing basic tools | |
RUN apt update && apt install -y nano && apt install -y vim | |
# Enable manager app, host manager app and docs apss | |
RUN mv /usr/local/tomcat/webapps.dist/* /usr/local/tomcat/webapps | |
RUN rm -rf /usr/local/tomcat/webapps.dist | |
# Copying my tomcat-users.xml to the container |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Debo ejecutarla desde el directorio donde tengo el fichero manage.py | |
# Debo tener instalado el m贸dulo de python debugpy (pip install debugpy) | |
# El puerto elegido (5678 en este caso) debe ser utilizado luego en la configuraci贸n del IDE | |
# El puerto 8000 es el puerto donde se va a ejecutar la aplicaci贸n Django | |
python -m debugpy --listen 0.0.0.0:5678 manage.py runserver 0.0.0.0:8000 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"version": "0.2.0", | |
"configurations": [ | |
{ | |
"name": "Run Django", | |
"type": "python", | |
"request": "attach", | |
"pathMappings": [ | |
{ | |
"localRoot": "/path/to/your/project/folder", |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
zend_extension=xdebug | |
xdebug.mode = debug | |
xdebug.start_with_request = yes | |
xdebug.log = /tmp/xdebug.log | |
xdebug.client_host = 172.17.0.1 | |
xdebug.client_port = 9003 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"version": "0.2.0", | |
"configurations": [ | |
{ | |
"name": "Listen for XDebug", | |
"type": "php", | |
"request": "launch", | |
"port": 9003, |