Commit 4e5ff275 authored by Sascha Marcel Schmidt's avatar Sascha Marcel Schmidt

removes environment and leaves just the typo3 stuff

parent 6e12b74a
TYPO3_SITENAME=TYPO3 Extension Repository
TYPO3_CONTEXT=Development
DATABASE_USER=t3o
DATABASE_USER_PASSWORD=k6mdcMp0MATlzKAE1RW6qFmmilqt2HNkQhbVgztu
DATABASE_HOST_NAME=db
DATABASE_PORT=3306
DATABASE_NAME=t3o
DATABASE_ROOT_PASSWORD=uf5c92eCULghtfdEdqH0hsfvnPSuEY7cnPKk5MAz
ADMIN_USER_NAME=t3o
ADMIN_PASSWORD=x2VsAVQNJd8UiDdu9a76
# Makefile for t3o/ter
#
# Type 'make' for help.
#
DOCKER_COMPOSE="$$(pwd)/data/scripts/docker-compose.sh"
COMPOSER="$$(pwd)/data/scripts/composer.sh"
include .env
.PHONY: help
help:
@echo "Please use 'make <target>' where <target> is one of"
@echo " help to show this menu."
@echo " help2 for more help."
@echo " init for: composer-install, install-typo3"
@echo " reset for: kill, down, init"
@echo " pull docker-compose: Pull images for services."
@echo " build docker-compose: Build or rebuild services."
@echo " ps docker-compose: List containers."
@echo " up docker-compose: Build, (re)create, start, and attach"
@echo " to containers for a service."
@echo " down docker-compose: Stops containers and removes containers, networks,"
@echo " volumes, and images created by 'up'."
@echo " stop docker-compose: Stop running containers without removing them."
@echo " kill docker-compose: Force stop service containers."
@echo
@echo " install-typo3 docker-compose: Start TYPO3"
@echo " clear-cache Command Line: Empty typo3temp/"
@echo
@echo " log Constantly echo log items to the console."
@echo " composer-install PHP Composer: Install."
@echo " composer-update PHP Composer: Update."
@echo
@echo "Recommended:"
@echo " make init up log"
.PHONY: help2
help2:
@echo
@echo "help2"
@echo "====="
@echo
@echo "Once TYPO3 is running direct your browser to one of:"
@echo " https://ter.typo3.127.0.0.1.xip.io/typo3/"
@echo " https://ter.typo3.127.0.0.1.xip.io/typo3/sysext/install/Start/Install.php"
@echo
@echo "For a local installation it may be necessary to have file:"
@echo " ./data/typo3/html/typo3conf/AdditionalConfiguration.sample.php"
@echo "being active as file:"
@echo " ./data/typo3/html/typo3conf/AdditionalConfiguration.php"
@echo "Copy if necessary."
@echo
@echo "End of help2."
@echo
.PHONY: init
init: composer-install install-typo3
@echo
@echo "Direct your browser to:"
@echo " https://ter.typo3.127.0.0.1.xip.io/typo3/"
@echo
@echo "Type 'make help2' for more help."
@echo
.PHONY: reset
reset: kill down clear-cache init
.PHONY: pull
pull:
$(DOCKER_COMPOSE) pull
.PHONY: build
build:
$(DOCKER_COMPOSE) build --no-cache
.PHONY: ps
ps:
$(DOCKER_COMPOSE) ps
.PHONY: up
up:
$(DOCKER_COMPOSE) up -d
.PHONY: down
down:
$(DOCKER_COMPOSE) down --remove-orphans
.PHONY: stop
stop:
$(DOCKER_COMPOSE) stop
.PHONY: kill
kill:
$(DOCKER_COMPOSE) kill
.PHONY: install-typo3
install-typo3: up
$(DOCKER_COMPOSE) run --rm db /src/data/scripts/wait-for-it.sh -h $(DATABASE_HOST_NAME) -p $(DATABASE_PORT) -t 30
$(DOCKER_COMPOSE) run --rm php ./bin/typo3cms install:setup \
--non-interactive \
--force \
--database-user-name $(DATABASE_USER) \
--database-user-password $(DATABASE_USER_PASSWORD) \
--database-host-name $(DATABASE_HOST_NAME) \
--database-port $(DATABASE_PORT) \
--database-name $(DATABASE_NAME) \
--use-existing-database \
--admin-user-name $(ADMIN_USER_NAME) \
--admin-password $(ADMIN_PASSWORD) \
--site-name $(TYPO3_SITENAME) \
--site-setup-type site
.PHONY: log
log:
$(DOCKER_COMPOSE) logs -f --tail=100
.PHONY: composer-install
composer-install:
$(COMPOSER) --working-dir=data/typo3 install
.PHONY: composer-update
composer-update:
$(COMPOSER) --working-dir=data/typo3 up
.PHONY: clear-cache
clear-cache:
rm -rf data/typo3/html/typo3temp/*
# TYPO3 Extension Repository
## ter.typo3.org
### Prerequisites
[docker engine](https://docs.docker.com/engine/installation/)
Make sure to have an instance of [jwilder/nginx-proxy](https://github.com/jwilder/nginx-proxy) running on your development box.
An easy way to get it up and running is using [torvitas/nginx-proxy-configuration](https://github.com/torvitas/docker-nginx-proxy-configuration).
### Quickstart
`
git clone https://git-t3o.typo3.org/t3o/ter.git
go in "ter" directory
make init up log
`
... and finally [click here](https://ter.typo3.127.0.0.1.xip.io)
### Composer
Example:
`
./data/scripts/composer.sh --working-dir=data/typo3/ info
`
For your convenience there are the following make jobs:
`
make composer-install
make composer-update
`
### Solr
To get the solr connection working, you need to add the "Search - Base Configuration (solr)" to the root template, and the "Initialize Solr Connections" in the "cache-menu" top right.
access_log /proc/self/fd/1;
error_log /proc/self/fd/2;
server {
server_name ter.typo3.localhost;
listen 80;
index index.php index.html;
root /var/www/html/;
include /etc/nginx/conf.d/typo3.base;
}
location = /favicon.ico {
log_not_found off;
access_log off;
}
location = /robots.txt {
allow all;
log_not_found off;
access_log off;
}
# Deny all attempts to access hidden files such as .htaccess, .htpasswd, .DS_Store (Mac).
location ~ /\. {
deny all;
access_log off;
log_not_found off;
}
location ~ \.php$ {
try_files $uri =404;
include /etc/nginx/fastcgi_params;
fastcgi_param TYPO3_CONTEXT Development;
fastcgi_pass php:9000;
fastcgi_index index.php;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
fastcgi_intercept_errors on;
fastcgi_buffer_size 128k;
fastcgi_buffers 256 16k;
fastcgi_busy_buffers_size 256k;
fastcgi_temp_file_write_size 256k;
fastcgi_read_timeout 1200;
}
client_max_body_size 100M;
location ~ /\.(js|css)$ {
expires 604800s;
}
if (!-e $request_filename){
rewrite ^/(.+)\.(\d+)\.(php|js|css|png|jpg|gif|gzip)$ /$1.$3 last;
}
location ~* ^/fileadmin/(.*/)?_recycler_/ {
deny all;
}
location ~* ^/fileadmin/templates/.*(\.txt|\.ts)$ {
deny all;
}
location ~* ^/typo3conf/ext/[^/]+/Resources/Private/ {
deny all;
}
location ~* ^/(typo3/|fileadmin/|typo3conf/|typo3temp/|uploads/|favicon\.ico) {
}
location / {
if ($query_string ~ ".+") {
return 405;
}
if ($http_cookie ~ 'nc_staticfilecache|be_typo_user|fe_typo_user' ) {
return 405;
} # pass POST requests to PHP
if ($request_method !~ ^(GET|HEAD)$ ) {
return 405;
}
if ($http_pragma = 'no-cache') {
return 405;
}
if ($http_cache_control = 'no-cache') {
return 405;
}
error_page 405 = @nocache;
try_files /typo3temp/tx_ncstaticfilecache/$host${request_uri}index.html @nocache;
}
location @nocache {
try_files $uri $uri/ /index.php$is_args$args;
}
{
"initArgs":{"ignoreCase":false},
"managedList":[]}
\ No newline at end of file
<!-- The content of this page will be statically included into the top
of the admin page. Uncomment this as an example to see there the content