From 284113b9a652ccd4ff04c1e1ab1972a0f3b38af8 Mon Sep 17 00:00:00 2001 From: Mikel Martin Date: Mon, 28 Oct 2024 19:09:58 +0100 Subject: [PATCH] Script to get sources from the container --- .gitignore | 3 ++- bin/update-sources | 2 ++ docker-compose.yml | 1 + 3 files changed, 5 insertions(+), 1 deletion(-) create mode 100755 bin/update-sources diff --git a/.gitignore b/.gitignore index 00f831b..b32220e 100644 --- a/.gitignore +++ b/.gitignore @@ -4,4 +4,5 @@ docker-compose.override.yml .composer_cache .env default.vcl -id_rsa \ No newline at end of file +id_rsa +.magento-src \ No newline at end of file diff --git a/bin/update-sources b/bin/update-sources new file mode 100755 index 0000000..681bdc6 --- /dev/null +++ b/bin/update-sources @@ -0,0 +1,2 @@ +#!/bin/bash +docker cp ${COMPOSE_PROJECT_NAME:-sequra}-magento:/var/www/html .magento-src \ No newline at end of file diff --git a/docker-compose.yml b/docker-compose.yml index 771db95..46030d2 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -16,6 +16,7 @@ services: - path: ./.env required: false magento: + container_name: ${COMPOSE_PROJECT_NAME:-sequra}-magento image: docker.io/bitnami/magento:${MAGENTO_VERSION:-latest} ports: - "${MAGENTO_HTTP_PORT}:8080"