-
Notifications
You must be signed in to change notification settings - Fork 17
Agregados los ficheros para testear otras versiones. #2
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: master
Are you sure you want to change the base?
Conversation
docker-compose.yml
Outdated
@@ -22,3 +22,30 @@ services: | |||
restart: always | |||
ports: | |||
- 8080:8080 | |||
|
|||
# facturascripts74: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Te has dejado un montón de código comentado. Mejor quítalo.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
El código comentado se refiere a las demás versiones.
test/php74/Dockerfile
Outdated
|
||
COPY facturascripts.sh /usr/local/bin/facturascripts | ||
RUN chmod +x /usr/local/bin/facturascripts | ||
CMD ["../../facturascripts"] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Por qué ../../ ???
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
porque referencia al script original, así se evita copiar y pegar el archivo 3 veces.
Ya he removido el código que me has pedido, si hay que realizar algo más avisame. |
@abdedarghal111 revisa que si solo lo que cambia es la versión de php, puedes reutilizar el Dockerfile pasandole como argumento la versión de php ARG PHP_VERSION=7.4 y cuando construyas el contenedor le pasas la versión. de esta forma no vas a tener que tocar el achivo aunque vaya por la vesión 9.2 igual pasa con la vesión de FacturaScripts. si la configuras como argumento se la vas pasando desde fuera y ya no tienes que tocar los archivos en cada versión |
Acabo de investigarlo en un momento (búsquedas rápidas y chatgpt) y al parecer no es posible. No se puede agregar variables de entorno para buscar imágenes de docker, pero lo que si se podría hacer es construir la imagen desde cero e instalar esa versión ya que se consideran instrucciones de terminal y si admiten variables de entorno, aunque es más tedioso. |
Temas relevantes: