Skip to content

Commit 1da4e5a

Browse files
author
Doug Hatcher
committed
basic tools work
1 parent 53e21b6 commit 1da4e5a

11 files changed

+28
-261
lines changed

cmd/root.go

-62
This file was deleted.

cmd/root_test.go

-46
This file was deleted.

cmd/serve.go

-68
This file was deleted.

cmd/serve_test.go

-60
This file was deleted.

scripts/install.sh

-20
This file was deleted.

services/database.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
services:
22
db:
3-
image: ${MAGECLI__DB_IMAGE}:${MAGECLI__DB_TAG}
3+
image: ${MAGECLI_DB_IMAGE}:${MAGECLI_DB_TAG}
44
volumes:
55
- database:/var/lib/mysql
66
restart: on-failure:5

services/elasticsearch.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
services:
22
elasticsearch:
3-
image: ${MAGECLI__ES_IMAGE}:${MAGECLI__ES_TAG}
3+
image: ${MAGECLI_ES_IMAGE}:${MAGECLI_ES_TAG}
44
restart: on-failure:5
55
environment:
66
- discovery.type=single-node

tasks/down.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -8,4 +8,4 @@ tasks:
88
description: project slug
99
default: localhost
1010
script: |
11-
docker-compose --project-name {{ get "project" }} -f $MAGECLI__PATH/services/database.yaml -f $MAGECLI__PATH/services/elasticsearch.yaml down
11+
docker-compose --project-name {{ get "project" }} -f $MAGECLI_PATH/services/database.yaml -f $MAGECLI_PATH/services/elasticsearch.yaml down

tasks/install.yaml

+23
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
#!/usr/bin/env variant
2+
tasks:
3+
install:
4+
description: installs magento to the backend services
5+
script: |
6+
php -d memory_limit=-1 bin/magento setup:install \
7+
--base-url=http://$MAGECLI_BASE_URL \
8+
--db-host=$MAGECLI_DB_HOST \
9+
--db-name=$MAGECLI_DB_NAME \
10+
--db-user=$MAGECLI_DB_USER \
11+
--db-password=$MAGECLI_DB_PASS \
12+
--admin-firstname=$MAGECLI_ADMIN_FIRSTNAME \
13+
--admin-lastname=$MAGECLI_ADMIN_LASTNAME \
14+
--admin-email=$MAGECLI_ADMIN_EMAIL \
15+
--admin-user=$MAGECLI_ADMIN_USER \
16+
--admin-password=$MAGECLI_ADMIN_PASSWORD \
17+
--language=$MAGECLI_LANGUAGE \
18+
--currency=$MAGECLI_CURRENCY \
19+
--timezone=$MAGECLI_TIMEZONE \
20+
--use-rewrites=$MAGECLI_USE_REWRITES \
21+
--search-engine=$MAGECLI_SEARCH_ENGINE \
22+
--elasticsearch-host=$MAGECLI_ELASTICSEARCH_HOST \
23+
--elasticsearch-port=$MAGECLI_ELASTICSEARCH_PORT

tasks/serve.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,6 @@ tasks:
55
- name: baseurl
66
type: string
77
description: "base url"
8-
default: "localhost:8200"
8+
default: "localhost:8080"
99
script: |
1010
php -S {{ get "baseurl" }} -t $(pwd)/pub/ $(pwd)/phpserver/router.php

tasks/up.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -8,4 +8,4 @@ tasks:
88
description: project slug
99
default: localhost
1010
script: |
11-
docker-compose --project-name {{ get "project" }} -f $MAGECLI__PATH/services/database.yaml -f $MAGECLI__PATH/services/elasticsearch.yaml up -d && sleep 3
11+
docker-compose --project-name {{ get "project" }} -f $MAGECLI_PATH/services/database.yaml -f $MAGECLI_PATH/services/elasticsearch.yaml up -d && sleep 3

0 commit comments

Comments
 (0)