diff --git a/codebase/.DS_Store b/codebase/.DS_Store deleted file mode 100644 index b2fba77..0000000 Binary files a/codebase/.DS_Store and /dev/null differ diff --git a/codebase/docker/Dockerfile b/docker/Dockerfile similarity index 87% rename from codebase/docker/Dockerfile rename to docker/Dockerfile index 64e3ac9..16a0657 100644 --- a/codebase/docker/Dockerfile +++ b/docker/Dockerfile @@ -25,7 +25,7 @@ RUN DEBIAN_FRONTEND=noninteractive TZ=Europe/Lisbon apt install php8.2 php8.2-si ENV DB_CONNECTION=mysql ENV DB_HOST=laraveldb ENV DB_DATABASE=laravel -ENV DB_USERNAME=root +ENV DB_USERNAME=myuser ENV DB_PASSWORD=password RUN composer install @@ -35,7 +35,10 @@ RUN php artisan key:generate # seed data if build arg is provided RUN if [ "$SEED_DATA" = true ]; then php artisan migrate --seed; fi +EXPOSE 8000 + RUN npm install RUN npm run build -EXPOSE 8000 +#Open on port 8000 to all addresses +ENTRYPOINT php artisan serve --port=8000 --host=0.0.0.0 diff --git a/codebase/docker/start.sh b/docker/start.sh similarity index 100% rename from codebase/docker/start.sh rename to docker/start.sh diff --git a/codebase/gke-cluster-create.yml b/gke-cluster-create.yml similarity index 100% rename from codebase/gke-cluster-create.yml rename to gke-cluster-create.yml diff --git a/codebase/gke-cluster-destroy.yml b/gke-cluster-destroy.yml similarity index 100% rename from codebase/gke-cluster-destroy.yml rename to gke-cluster-destroy.yml diff --git a/codebase/inventory/gcp.yml b/inventory/gcp.yml similarity index 100% rename from codebase/inventory/gcp.yml rename to inventory/gcp.yml diff --git a/codebase/laravelio-deploy.yml b/laravelio-deploy.yml similarity index 100% rename from codebase/laravelio-deploy.yml rename to laravelio-deploy.yml diff --git a/codebase/laravelio-undeploy.yml b/laravelio-undeploy.yml similarity index 100% rename from codebase/laravelio-undeploy.yml rename to laravelio-undeploy.yml diff --git a/codebase/roles/.DS_Store b/roles/.DS_Store similarity index 100% rename from codebase/roles/.DS_Store rename to roles/.DS_Store diff --git a/codebase/roles/gke_cluster_create/tasks/main.yml b/roles/gke_cluster_create/tasks/main.yml similarity index 100% rename from codebase/roles/gke_cluster_create/tasks/main.yml rename to roles/gke_cluster_create/tasks/main.yml diff --git a/codebase/roles/gke_cluster_destroy/tasks/main.yml b/roles/gke_cluster_destroy/tasks/main.yml similarity index 100% rename from codebase/roles/gke_cluster_destroy/tasks/main.yml rename to roles/gke_cluster_destroy/tasks/main.yml diff --git a/codebase/roles/test_laravelio/tasks/main.yml b/roles/test_laravelio/tasks/main.yml similarity index 100% rename from codebase/roles/test_laravelio/tasks/main.yml rename to roles/test_laravelio/tasks/main.yml diff --git a/codebase/test-all.yml b/test-all.yml similarity index 100% rename from codebase/test-all.yml rename to test-all.yml