This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@function hsl-str($color) { | |
@return unquote("hsl(#{hue($color)/1deg}, #{saturation($color)}, #{lightness($color)})"); | |
} | |
.demo { | |
color: hsl-str(#ffcc99); | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
### Include | |
source vars.sh | |
### Due to possible file permission issues we mount the _backup folder in docker-composer.yml | |
### So we do not use the 'docker cp' command here - instead copy files in the container | |
echo -e $COL_START | |
echo -e " [STEP-1] Copy Contao composer.json file from Container $BACKUP_DIR directory"'\e[K' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
### Include | |
source vars.sh | |
echo -e $COL_START | |
echo -e " [STEP-1] Copy composer.* files from Container to Host $BACKUP_DIR directory"'\e[K' | |
echo -e $COL_STEP | |
eval 'docker cp '$CONTAINER_CONTAO':'$CONTAINER_WORKDIR'composer.json '$BACKUP_DIR'' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
### Get actual Data form .env file | |
### See https://gist.github.com/judy2k/7656bfe3b322d669ef75364a46327836 | |
PROJECT_NAME=$(grep COMPOSE_PROJECT_NAME .env | cut -d '=' -f2) | |
GLOBAL_PASS_NAME=$(grep GLOBAL_PASS_NAME .env | cut -d '=' -f2) | |
BACKUP_DIR=$(grep BACKUP_DIR .env | cut -d '=' -f2) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
### See: https://docs.docker.com/compose/env-file/ | |
### Check "docker-compose.yml" Syntax with "docker-compose config" | |
### Set existing Docker Image to use | |
### Create an actual Contao/PHP Image from local Dockefile like: docker build -t my/contao:4.4.32 --build-arg CONTAO_VERSION=4.4.* . | |
CONTAO_IMAGE=my/contao:4.4.32 | |
### Set to get unique Container Names | |
### Use only lowercase letters without special characters |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# see: https://docs.docker.com/compose/compose-file/compose-file-v2/ | |
version: '2.2' | |
services: | |
web: | |
image: ctsmedia/baseimage-web-apache:1.2.0 | |
container_name: &hostname ${COMPOSE_PROJECT_NAME}.local | |
environment: | |
DOCKER_DOMAIN: *hostname | |
PROJECT_NAME: &project ${COMPOSE_PROJECT_NAME} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
### See: https://hub.docker.com/r/ctsmedia/baseimage-web-php/tags/ | |
FROM ctsmedia/baseimage-web-php:7.2-fpm | |
MAINTAINER MODIFIED | Original by Daniel Schwiperich | ctsmedia <entwicklung@cts-media.eu> | |
### Contao Version to install | |
### Could be overwritten on build like: docker build -t my/contao:4.4.31 --build-arg CONTAO_VERSION=4.4.* . | |
ARG CONTAO_VERSION=4.4.* | |
WORKDIR /var/www/share/project |